Rambalac
Rambalac

Reputation: 2841

Building Core2.0 project in Visual Studio Team Services fails with numerous assembly import errors

I have Build Definition

While I was using Core1.1 it worked without any issue. But after upgrading project to Core2.0 it fails with multiple errors like

Solution is perfectly building locally. I tried to add task Use .NET Core runtime 2.0.0 in the beginning but without any success.

Upvotes: 2

Views: 449

Answers (1)

Marina Liu
Marina Liu

Reputation: 38096

You should add .NET Core Tool Installer task at the beginning of the build steps. Then install the SDK not only runtime. Then save your build definition and queue again.

enter image description here

Upvotes: 3

Related Questions