TFS Build Server Integration For .NET Core Platform Projects RRS feed

  • Question

  • Hi, 
    We have a build server which has Visual Studio 2015 Update Package 3 installed.

    We need to build a .net core project via build server with a build definition. After searching about how to integrate build server for .net core platform projects,  we learned that Visual Studio 2017 or Visual Studio 2017 Build Tools should be installed. In a few forum posts, it is said that TFS 2017 setup is a must to be able to build .net core projects.

    Is it right or is there any alternative solution for this type of problem without having to install TFS 2017 ?

    We made a build after installing Visual Studio 2017 on our build server, and got the following error; 

    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've checked the MyProjectName.csproj.user file, it is as follows;

    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

    The project is .Net Core 2.0 project.

    Could you please help about the possible solution of this problem ?

    Thanks in advance,

    Best Regards..

    • Edited by questionerr Thursday, November 2, 2017 7:33 AM
    Thursday, November 2, 2017 7:24 AM

All replies

  • if you're using TFS Build vNext and not XAML build than you can just start the .NET Core command line build (dotnet build) from within a PowerShell task instead of using a VS Build task.

    you need to install .NET Core 2.0 SDK on the build agent.

    Please use "Mark as Answer" if my post solved your problem and use "Vote As Helpful" if a post was useful.

    Thursday, November 2, 2017 7:56 AM
  • Hi, 

    Could you please share a link or tutorial about how to run builds by using CLI commands on a build server environment ?  

    Thanks in advance, 

    Best Regards

    Thursday, November 2, 2017 9:11 AM
  • e.g. How to Build ASP.NET Core RC2 Code with Visual Studio Team Services

    the same steps with TFS 2015 Build vNext.

    Please use "Mark as Answer" if my post solved your problem and use "Vote As Helpful" if a post was useful.

    Thursday, November 2, 2017 4:56 PM
  • Hi,

    Which version of TFS are you using? Could you describle your environment?

    .NET Core templates are available in Visual Studio 2017 if you install ".NET Core cross-platform development" workload. Visual Studio 2015 will only support .NET Core <= 1.1.

    If you don't want to install TFS 2017, you can use VSTS (https://www.visualstudio.com/team-services/) instead. If you are using other on-premise TFS version, you can try Daniel's suggestion.

    Best regards,

    MSDN Community Support Please remember to click &amp;quot;Mark as Answer&amp;quot; the responses that resolved your issue, and to click &amp;quot;Unmark as Answer&amp;quot; if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Friday, November 3, 2017 2:48 AM