Visual Studio 2019显示.NET 5 Preview 8的黄色惊叹号 [英] Visual Studio 2019 showing yellow exclamation for .NET 5 Preview 8

查看:74
本文介绍了Visual Studio 2019显示.NET 5 Preview 8的黄色惊叹号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装了.NET 5 Preview 8并在Visual Studio 2019 16.8 Preview 2中创建了一个新的ASP.NET Core MVC项目.

I recently installed .NET 5 Preview 8 and created a new ASP.NET Core MVC project in Visual Studio 2019 16.8 Preview 2.

对于所有NuGet软件包,它都显示黄色感叹号.没有编译错误,没有警告.该应用程序工作正常.没有错误.但是VS一直显示黄色惊叹号.此问题仅适用于.NET 5项目.ASP.NET Core 3.1项目不会出现此问题.

For all the NuGet packages it is showing yellow exclamation mark. There are no compilation errors, no warnings. The application works fine. No errors. But VS keeps showing yellow exclamation. This problem comes only for .NET 5 projects. ASP.NET Core 3.1 projects don't give this problem.

我的项目文件如下所示:

My project file is shown below :

<Project Sdk="Microsoft.NET.Sdk.Web"> 
<PropertyGroup> 
<TargetFramework>net5.0</TargetFramework> 
</PropertyGroup> 
<ItemGroup> 
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.0-preview.8.20414.8" /> 
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.0-preview.8.20407.4" /> 
</ItemGroup> 
</Project>

什么原因以及如何解决?

What's the reason and how to fix it ??

谢谢.

推荐答案

这是

  1. 解决方案资源管理器中依赖项"节点中的警告图标

  • 对于面向.NET 5的项目,警告图标可能会显示在解决方案资源管理器依赖关系"节点中列出的软件包上
  • 我认为目前没有可用的修复程序.

    I don't think there's a fix available at the moment.

    这篇关于Visual Studio 2019显示.NET 5 Preview 8的黄色惊叹号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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