Open-XML-SDK: Cannot open projects with VS 2015
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.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 19 (8 by maintainers)
Commits related to this issue
- Updated README build instructions Fixes #187: Updated build instructions to reflect the move to 2017. — committed to ClareMSYanGit/Open-XML-SDK by deleted user 7 years ago
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
You can see history of commits by the following line
In this case are reverting to commit id 3f36da8
Now try opening the solution in Visual Studio 2015 and it should work!