VSTS - Building ASP.NET Core 2.0, compile error: Could not locate the assembly “Microsoft.AspNetCore.Mvc.ViewFeatures”

后端 未结 1 1745
Happy的楠姐
Happy的楠姐 2021-01-18 08:50

VSTS build of my ASP.NET Core 2.0 MVC app fails with these warnings:

Warning MSB3245: Could not resolve this reference. Could not loc

1条回答
  •  感情败类
    2021-01-18 09:32

    • First please make sure the PackageReference in .csproj are not refer the local paths. It should like:

      
      
      
      
      
      

    • Then please use ASP.Net Core template to define your build definition:

      With the .NET Core tasks to restore, build, test and publish, and you can also add other tasks for your needs.

    0 讨论(0)
提交回复
热议问题