After latest VS2017 Update, dotnet publish fails on this task GetDotNetHost
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 133
Description
Works fine on private pool:
Microsoft (R) Build Engine version 15.4.8.50001 for .NET Core
Works fine on VSTS Hosted Agent with VS2017
Microsoft (R) Build Engine version 15.7.177.53362 for .NET Core
Doesn't work on Private pool:
Microsoft (R) Build Engine version 15.7.179.6572 for .NET Core
The command we run is:
dotnet publish --configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)
Fails with this error message:
> C:\Users\Administrator\.nuget\packages\microsoft.aspnetcore.mvc.razor.viewcompilation\2.0.3\build\netstandard2.0\Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.targets(45,5): error MSB4062: The "GetDotNetHost" task could not be loaded from the assembly C:\Users\Administrator\.nuget\packages\microsoft.aspnetcore.mvc.razor.viewcompilation\2.0.3\build\netstandard2.0\Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Tasks.dll. Assembly with same name is already loaded Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [D:\VSTS\agent-work\79\s\api\WebApi.csproj]
> 2018-06-04T14:17:03.7761691Z ##[error]Error: C:\Program Files\dotnet\dotnet.exe failed with return code: 1
Any idea on how to troubleshoot that?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.