Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TFS build error #252

Open
gholami3000 opened this issue Apr 7, 2021 · 1 comment
Open

TFS build error #252

gholami3000 opened this issue Apr 7, 2021 · 1 comment

Comments

@gholami3000
Copy link

build on local machine success but when build with TFS error

.NET Framework 4.6.1
Capture
Capture

packages\DlibDotNet.19.21.0.20210302\build\DlibDotNet.props(2,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 element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.

@valerysntx
Copy link
Contributor

valerysntx commented Apr 8, 2021

check *.nuspec files, for the line
<file src="build\DlibDotNet.Native.props" target="build\DlibDotNet.props" />

@gholami3000
This issue is about making changes to the DlibDotNet.Native.props format to be compatible with fallback to older build tools.
Start from checking if TFS has proper version of BuildTools for x86 platform, v15 or v16, and install accordingly to fix this issue.

Replacing <Project version="4.0"> line with the following
<Project version="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> should fix the issue, and make package compatible with older build tools.

@takuya-takeuchi if trying to declaring minimum build tools needed, it could broke existing projects I suppose,
that needed to be investigated further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants