Francesco
Francesco

Reputation: 11

Visual Studio Team Services ASPNET CORE build failure

I'm trying to setup a build definition for a new ASPNET Core webapp.

The setup of the build definition is exactly this: Official Docs

The build fails at building the solution with this error:

Issues
Build 

File name doesn't indicate a full path to a executable file.

GETSDKTOOLINGINFO (0, 0) 
The project is configured to use .NET Core SDK version 1.0.0-preview2-003131 which is not installed or cannot be found under the path C:\Program Files\dotnet. These components are required to build and run this project. Download the version of .NET Core SDK specified in global.json or update the SDK version in global.json to the version that is installed.

Process 'msbuild.exe' exited with code '1'.

Any guess on how to solve this? Thanks Francesco

Upvotes: 1

Views: 576

Answers (3)

starian chen-MSFT
starian chen-MSFT

Reputation: 33698

You need to install the corresponding version of .Net SDK to build agent machine.

You can refer to this article to download .Net Core 1.0.0-preview2-003131 and install it on your build machine.

Upvotes: 1

Kees Schollaart
Kees Schollaart

Reputation: 836

In my case, it was just a change in global.config:

{
  "projects": [ "src", "test" ],
  "sdk": {
    "version": "1.0.0-preview2-003121"
  }
}

As long as 1.0.0-preview2-003131 is not available on VSO build hosts

Upvotes: 0

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31003

Assuming you are using hosted build agent. According to Software on the hosted build server, the hosted build server is deployed with the following .NET Framework:

  • .NET 4.6
  • .NET 4.5.2
  • .NET 4.5.1
  • .NET 4.5
  • .NET 3.5 SP1
  • .NET Core 1.0 with Preview 2 Tooling

You may try to deploy an on-premises build agent and install .NET Core 1.0.1 SDK 1.0.0-preview2-003131 to work with VSTS: https://www.visualstudio.com/en-us/docs/build/admin/index#deploy_agent.

If you insist on using hosted build agent, then you need to use version of Microsoft.NETCore.App that is installed in VSTS, for example:

"dependencies": {
    "Microsoft.NETCore.App": {
        "version": "1.0.0-rc2-3002702",
        "type": "platform"
    },

Upvotes: 0

Related Questions