3F / MvsSln

🧩 Customizable VisualStudio .sln parser with project support (.vcxproj, .csproj., …). Pluggable lightweight r/w handlers at runtime, and more …
MIT License
135 stars 27 forks source link

[Bug] Inbuild MsBuild macro not recognized #32

Closed JKamsker closed 3 years ago

JKamsker commented 3 years ago

Hey, hope you are well!

When loading an sln with new Sln(@"C:\Users\JK\source\repos\path\to\my.sln", SlnItems.All & ~SlnItems.ProjectDependencies)

Following error occurs: Microsoft.Build.Exceptions.InvalidProjectFileException: 'The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the expression in the Import declaration "\Microsoft.Cpp.Default.props" is correct, and that the file exists on disk. C:\Users\JK\source\repos\path\to\Client\Client.vcxproj'

I think its following statement, which is responsible in the vcxproj: <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />

In vs, VCTargetsPath resolves to C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\ and not C:\

Is there any way for me to fix that issue or is it really a bug?

3F commented 3 years ago

Hello @JKamsker

This is duplicate of #1 and it will be completely resolved only after #23 ( IeXod 0.1 beta is already rolled out )

Before planned 3.0 please consider the following solutions for 2.x

hope you are well!

Thank you! I am in the progress... hope so o_o

Let me know if you still have the problems, I can try something https://twitter.com/GitHub3F/status/1320425255291265026

Thanks for using,