Build failed with error MSB4041: The default XML namespace of the project must be the MSBuild XML namespace.

ray247's Avatar

ray247

30 Jul, 2018 03:09 PM

I have a failed build https://ci.appveyor.com/project/FanrayMedia/fanray showing this error

```
C:\projects\fanray\test\Fan.UnitTests\Fan.UnitTests.csproj(1,1): error MSB4041: 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.
```

I looked through all my .csproj files and don't see anything abnormal. What could be the cause of this? Thank you!

  1. ray247 closed this discussion on 30 Jul, 2018 04:37 PM.

  2. Owen McDonnell re-opened this discussion on 30 Jul, 2018 06:12 PM

  3. Support Staff 1 Posted by Owen McDonnell on 30 Jul, 2018 06:12 PM

    Owen McDonnell's Avatar

    So your problem was resolved by switching to dotnet cli?

  4. 2 Posted by ray247 on 30 Jul, 2018 06:16 PM

    ray247's Avatar

    Yes, my problem was resolved by switching to dotnet cli. Thanks.

  5. Support Staff 3 Posted by Owen McDonnell on 30 Jul, 2018 06:16 PM

    Owen McDonnell's Avatar

    Ok. Thanks for letting us know.

  6. Owen McDonnell closed this discussion on 30 Jul, 2018 06:16 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac