when opening my solution VaX always parses the includes of the nuget packages installed in the packages folder. Since I have a lot of packages this takes a long time. Is there any way to suppress this?
- Visual Studio 2017 - unmanaged c++ projects - Nuget packages for unmanaged c++ libraries - Includes of Nuget packages are added to the AdditionalIncludeDirectories of the projects using a props file. E.g.
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!-- Additional includes and source files. --> <ItemDefinitionGroup> <ClCompile> <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)native;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> </ClCompile> </ItemDefinitionGroup> </Project>
In the registry, you can change the value of "ParseNuGetRepositoryFiles2" from 01 to 00 to disable parsing of the nuget dirs.
That will stop VA from doing a file search in the nuget dirs and parsing the files it finds, but it won't stop VA from resolving include directives and parsing files from the nuget dirs that are included in your project, so the end result is dependent upon how 'connected' the nuget files are to your own source files.