找不到AspNetCore:2.1 [英] AspNetCore:2.1 not found

查看:88
本文介绍了找不到AspNetCore:2.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建了一个新的.NET CORE 2.1(预览版)Web应用程序。使用Linux容器
在本地docker中运行它,我得到编译器错误:

Created a new .NET CORE 2.1 (preview) web app. Running it in local docker with Linux container I am getting compiler error:

错误构建blobtest

服务'blobtest'无法构建:找不到microsoft / aspnetcore:2.1的清单。

Error Building blobtest
Service 'blobtest' failed to build: manifest for microsoft/aspnetcore:2.1 not found.

我的dotnetversion

C:\WINDOWS\system32> dotnet --version
2.1.300-preview2-008530

My dotnetversion
C:\WINDOWS\system32>dotnet --version 2.1.300-preview2-008530

推荐答案

他们已将.NET Core 2.1及更高版本的存储库更改为 microsoft / dotnet
使用以下标记将FROM语句更改为引用microsoft / dotnet:

They have changed the repo for .NET Core 2.1 onwards to microsoft/dotnet. Change your FROM statement to reference microsoft/dotnet using the following tags:


  • 2.1-sdk

  • 2.1-aspnetcore-runtime

  • 2.1-runtime

有关如何操作的文档可以在此处

Documentation on how to upgrade can be found here

这篇关于找不到AspNetCore:2.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆