gpt4 book ai didi

visual-studio-2013 - Visual Studio 2013 对项目中所有引用的黄色警告

转载 作者:行者123 更新时间:2023-12-02 04:17:03 26 4
gpt4 key购买 nike

我有一个 C# 项目,目标框架设置为 .NET 4.5。由于某些奇怪的原因,所有引用都标有黄色警告三角形,如下所示。我尝试过卸载并重新加载该项目。我什至尝试手动重新添加系统引用之一,但无济于事。

enter image description here

我收到的警告是:

Warning 13 The referenced component 'AutoMapper' could not be found. Services.Contracts Warning 14 The referenced component 'AutoMapper.Net4' could not be found. Services.Contracts Warning 15 The referenced component 'log4net' could not be found. Services.Contracts Warning 16 The referenced component 'Mindscape.LightSpeed' could not be found. Services.Contracts Warning 17 The referenced component 'Mindscape.LightSpeed.Linq' could not be found. Services.Contracts Warning 18 The referenced component 'System' could not be found. Services.Contracts Warning 19 The referenced component 'System.Core' could not be found. Services.Contracts Warning 25 The referenced component 'System.Data' could not be found. Services.Contracts Warning 24 The referenced component 'System.Data.DataSetExtensions' could not be found. Services.Contracts Warning 20 The referenced component 'System.Runtime.Serialization' could not be found. Services.Contracts Warning 21 The referenced component 'System.ServiceModel' could not be found. Services.Contracts Warning 22 The referenced component 'System.ServiceModel.Web' could not be found. Services.Contracts Warning 26 The referenced component 'System.Xml' could not be found. Services.Contracts Warning 23 The referenced component 'System.Xml.Linq' could not be found. Services.Contracts

发生了什么以及如何解决这个问题?

最佳答案

我遇到了同样的问题,我从 .csproj 文件中删除了以下条目,它解决了我的问题。

<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">  
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
</Target>

关于visual-studio-2013 - Visual Studio 2013 对项目中所有引用的黄色警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30833895/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com