Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Resolving .vcxproj dependencies with c# project doesn't return included folders

$
0
0

I'm trying to write a C# tool which will resolve dependencies between c++ and c# projects. I am usingMicrosoft.Build.BuildEngine.Project class to analyze vcxproj files.When I try to get folders included in vcxproj, it returns everything but included folders. I searched, where I would expect to find them:

ItemDefinitions->ClCompile->AdditionalIncludeDirectories

But they are not there, or anywhere else.

Project proj =newProject(projectFileName);ProjectItemDefinition tp = proj.ItemDefinitions.First(pid =>String.Compare(pid.Key,"ClCompile",true)==0).Value;ProjectMetadata tpPMD = tp.Metadata.First(pmd =>String.Compare(pmd.Name,"AdditionalIncludeDirectories",true)==0);


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>