加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-core – VSTS – 构建ASP.NET Core 2.0应用程序失败,包M

发布时间:2020-12-15 19:01:09 所属栏目:asp.Net 来源:网络整理
导读:我正在尝试为我的ASP.NET Core 2.0 Web应用程序设置Build on VSTS,但它在Nuget Restore阶段失败: Package Microsoft.Extensions.FileProviders.Physical 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.Extens
我正在尝试为我的ASP.NET Core 2.0 Web应用程序设置Build on VSTS,但它在Nuget Restore阶段失败:

Package Microsoft.Extensions.FileProviders.Physical 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.Extensions.FileProviders.Physical 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)

Package Microsoft.VisualStudio.Web.CodeGeneration.Contracts 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.VisualStudio.Web.CodeGeneration.Contracts 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)

当我创建构建时,我选择了Azure中的App Service(或类似的东西).那么,我该如何设置Build呢?

解决方法

而是使用.Net Core还原任务.

关于NuGet还原,您需要用户4.3版本:

>添加NuGet Tool Installer任务(要安装的NuGet.exe版本:4.3.0)> NuGet恢复任务(版本2. *)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读