Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Parsing headers of nuget packages
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

[email protected]
New Member

Germany
7 Posts

Posted - Aug 14 2019 :  03:36:39 AM  Show Profile  Reply with Quote
Hello,

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?

Thanks
Rasmus

- 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>

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Aug 14 2019 :  05:48:27 AM  Show Profile  Reply with Quote
As a first thought, do you have:

VA Options -> Performance -> Parse all files when opening a project

turned On or Off? If this is turned On, does turning this Off make any difference?

zen is the art of being at one with the two'ness
Go to Top of Page

[email protected]
New Member

Germany
7 Posts

Posted - Aug 14 2019 :  05:53:11 AM  Show Profile  Reply with Quote
Tried this already: The option is Off.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Aug 15 2019 :  11:21:29 PM  Show Profile  Reply with Quote
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.

Edited by - sean on Aug 16 2019 12:17:31 AM
Go to Top of Page

[email protected]
New Member

Germany
7 Posts

Posted - Aug 16 2019 :  05:05:08 AM  Show Profile  Reply with Quote
Thank you the the tipp - this resolved the problem.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000