Solution Explorer (damaging csproj file)
See original GitHub issueAfter updating to version 0.2.23, when adding a new file, my csproj file will be damage, even my visual studio (2015 & 2017) cannot open the csproj file.
Here are the error output:
D:\- FADHLY\- WORKS\MIC (DotNet)\Web\Web.csproj : error : The imported project "$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" was not found. Also, tried to find "$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" in the fallback search path(s) for $(VSToolsPath) - "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0" . These search paths are defined in "C:\Users\SOBAR\AppData\Local\Microsoft\VisualStudio\15.0_15993ca8\devenv.exe.config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths. D:\- FADHLY\- WORKS\MIC (DotNet)\Web\Web.csproj
Can you help me with this problem?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Great news: Now I can see it is a problem with the “xml2js” library. It does not keep the elements order. I’m going to look for another library to read xml in js.
Thank you very much for your help!
I’ve been looking in my demo .csproj files and I have referenced the targets in the same way as my demo files. Now it is working right with vscode-solution-explorer, but I haven’t been able to test it in a Visual Studio Enterprise Edition yet. The modified .csproj is this one: Web.1 copy.txt
Update: I have tested it in a Visual Studio 2017 and it has worked fine.