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.

Cannot open projects with VS 2015

See original GitHub issue

Not sure whether everybody has already upgraded to VS 2017, given that it has only been released very recently. Anyhow, the recent commit entitled “Update projects to VS 2017” (dbaddb57) changed the .csproj files so that those projects can no longer be opened with VS 2015.

Using DocumentFormat.OpenXml.csproj as an example, here is the error message I get (with [...] meaning I omitted that part of the path):

[...]\Open-XML-SDK\DocumentFormat.OpenXml\DocumentFormat.OpenXml.csproj : error  : The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.  [...]\Open-XML-SDK\DocumentFormat.OpenXml\DocumentFormat.OpenXml.csproj

I get the same error message for the other two projects contained in the solution.

Did you mean to only support VS 2017 going forward (which could be fine)? Otherwise, we need another solution referencing VS 2015 compatible .csproj files.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
vibs2006commented, Apr 13, 2018

To run the project in Visual Studio 2015 please revert to a commit in which Visual Studio 2015 was used.

If you are not sure then run the following command on git command line.

Navigate to git master branch

git checkout master
  1. Please ensure that you backup current directory to another location before executing the following step.
  2. You have closed your visual studio completely so that there are no file access errors.

You can see history of commits by the following line

git log --oneline --graph --decorate

image

In this case are reverting to commit id 3f36da8

git reset --hard 3f36da8 && git clean -f -d

Now try opening the solution in Visual Studio 2015 and it should work!

0reactions
twsouthwickcommented, Apr 14, 2018

Would something like https://github.com/KirillOsenkov/SourceBrowser be helpful for this (such as at http://source.dot.net)? I’ve been thinking of setting that up for this project for easy browsing and searching via symbols

Read more comments on GitHub >

github_iconTop Results From Across the Web

Projects load failed in Visual Studio 2015
Open the Output window ( View -> Output or Ctrl+Alt+O ). · Then right-click one of the failed projects and select Reload Project...
Read more >
Cannot open VS 2015 Web project in VS 2017
Brand new installs of Visual Studio 2017 do not seem to be able to open some older web projects created in Visual Studio...
Read more >
"Unknown error" when loading VS 2015 projects in VS 2019
In the project explorer one cannot see (Visual Studio 2015) anymore on the side of the project name and when one tries to...
Read more >
Project migration and upgrade reference for Visual Studio
The user can open the project in Visual Studio 2015, Visual Studio 2017, Visual Studio 2019, or Visual Studio 2022, and the resource...
Read more >
I cannot open a Visual Studio Project or Solution - YouTube
If you are having problems opening a VS project of solution try this.
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