TFS 2017 Build Definition with .NET 4.6 and ASP.NET Core

lumberjack4

I'm trying to create a build definition in TFS for a solution with both Windows client .NET 4.6 libraries and an ASP.NET Core web project. Currently when I try to run the NuGet Restore portion of the build I get the following error message.

WebApplication.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 element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.

The error occurs when trying to restore the NuGet packages on the ASP.NET Core project.

Everything builds fine on my local development environment, its just the build definition that isn't working.

enter image description hereenter image description here

lumberjack4

Manually pointing to Nuget 4.1 instead of the built-in 3.5 resolved the issue.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

TFS 2017 ASP.NETコアの展開

分類Dev

VS 2017 + ASP.Net Core + Angular4カントビルド

分類Dev

Build failing on .net Core app due to missing definition

分類Dev

VSTS/TFS set environment variable ASP.NET core

分類Dev

How to simply create a folder with a task on TFS 2017 build definition?

分類Dev

VS 2017 .NET Core BinaryFormatter

分類Dev

gitlab-ci build asp.net core docker

分類Dev

Deleted view in ASP.NET Core causing build errors

分類Dev

ODP.NET and EF6 configuration on ASP.NET Core targeting .NET 4.7.2

分類Dev

.NET CoreとASP.NET Core

分類Dev

Debugging Asp.Net Core app with Angular 4 in vscode

分類Dev

ASP.Net Core 2.0 IdentityServer4

分類Dev

Bootstrap4をVisualStudio 2017 ASP.NET Core Webアプリケーションに統合する方法は?

分類Dev

Asp.Net does not contain a definition for buttonClick?

分類Dev

Visual Studio 2017 Asp.Net Core 2.1 TypeScript Vue Setup - Not SPA

分類Dev

Asp.Net Core 2 Web API shows HTTP 404 error on Visual Studio 2017, Windows 10

分類Dev

ASP.NET MVC TFS 分岐

分類Dev

Visual Studio 2017 ASP.Net Publish 自己完結型 Dot Net Core アプリ

分類Dev

UnityとASP.NET CoreおよびMVC6(Core)

分類Dev

ASP.NET Core ToHtmlString

分類Dev

Cookieless ASP.NET Core

分類Dev

TFS 2017 How to delete Build?

分類Dev

VSTS Build for Asp.Net Core solution fails with error MSB3554: Cannot write to the output file

分類Dev

Visual Studio won't build the ASP.NET Core project it created

分類Dev

ASP.NET MVC Core / 6:複数の送信ボタン

分類Dev

ASP.NET MVC Core / 6:複数の送信ボタン

分類Dev

ASP.NET MVC Core / 6:複数の送信ボタン

分類Dev

How can I read version of project in dotnet core (formerly asp.net mvc6)

分類Dev

ASP.NET Core / MVC 6 ViewModelの依存性注入(DI)

Related 関連記事

  1. 1

    TFS 2017 ASP.NETコアの展開

  2. 2

    VS 2017 + ASP.Net Core + Angular4カントビルド

  3. 3

    Build failing on .net Core app due to missing definition

  4. 4

    VSTS/TFS set environment variable ASP.NET core

  5. 5

    How to simply create a folder with a task on TFS 2017 build definition?

  6. 6

    VS 2017 .NET Core BinaryFormatter

  7. 7

    gitlab-ci build asp.net core docker

  8. 8

    Deleted view in ASP.NET Core causing build errors

  9. 9

    ODP.NET and EF6 configuration on ASP.NET Core targeting .NET 4.7.2

  10. 10

    .NET CoreとASP.NET Core

  11. 11

    Debugging Asp.Net Core app with Angular 4 in vscode

  12. 12

    ASP.Net Core 2.0 IdentityServer4

  13. 13

    Bootstrap4をVisualStudio 2017 ASP.NET Core Webアプリケーションに統合する方法は?

  14. 14

    Asp.Net does not contain a definition for buttonClick?

  15. 15

    Visual Studio 2017 Asp.Net Core 2.1 TypeScript Vue Setup - Not SPA

  16. 16

    Asp.Net Core 2 Web API shows HTTP 404 error on Visual Studio 2017, Windows 10

  17. 17

    ASP.NET MVC TFS 分岐

  18. 18

    Visual Studio 2017 ASP.Net Publish 自己完結型 Dot Net Core アプリ

  19. 19

    UnityとASP.NET CoreおよびMVC6(Core)

  20. 20

    ASP.NET Core ToHtmlString

  21. 21

    Cookieless ASP.NET Core

  22. 22

    TFS 2017 How to delete Build?

  23. 23

    VSTS Build for Asp.Net Core solution fails with error MSB3554: Cannot write to the output file

  24. 24

    Visual Studio won't build the ASP.NET Core project it created

  25. 25

    ASP.NET MVC Core / 6:複数の送信ボタン

  26. 26

    ASP.NET MVC Core / 6:複数の送信ボタン

  27. 27

    ASP.NET MVC Core / 6:複数の送信ボタン

  28. 28

    How can I read version of project in dotnet core (formerly asp.net mvc6)

  29. 29

    ASP.NET Core / MVC 6 ViewModelの依存性注入(DI)

ホットタグ

アーカイブ