question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Solution Explorer (damaging csproj file)

See original GitHub issue

After 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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fernandoescolarcommented, May 23, 2018

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!

1reaction
fernandoescolarcommented, May 23, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

csproj file in solution explorer - visual studio 2010
csproj is the project(s) icons that show up below your solution root. You edit the .csproj right clicking the project icon in solution...
Read more >
csproj File Not Being Displayed in Solution Explorer
csproj file is present in the folder tree; however it is not being displayed in any of the Visual Studio projects I have...
Read more >
Copy-pasting files matching globbing patterns produces ...
In the Visual Studio Solution Explorer, click on App.config , press control + C , control + V (doing copy-paste) results in a...
Read more >
1. Solutions and Projects - Mastering Visual Studio .NET [Book]
You can add a new file to your project by right-clicking on the project in the Solution Explorer and selecting an item the...
Read more >
PC - Compiling my mod doesn't work because of an error in a ...
lifeMax = 900690069000; //boss life npc.damage = 140; ... open the .csproj file and then in the Solution Explorer find the file and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found