您的位置:首页 > 理论基础 > 计算机网络

Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. T

2017-02-15 11:10 1111 查看
错误提示:

SeverityCodeDescriptionProjectFileLineSuppressionState
Error ThisprojectreferencesNuGetpackage(s)thataremissingonthiscomputer.UseNuGetPackageRestoretodownloadthem.Formoreinformation,seehttp://go.microsoft.com/fwlink/?LinkID=322105.Themissingfileis..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props. Luck100C:\Goods.csproj 315

解决办法:
参考:
http://docs.nuget.org/ndocs/consume-packages/package-restore

找到项目文件.csproj,打开后,移除下面的内容


<TargetName="EnsureNuGetPackageBuildImports"BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>ThisprojectreferencesNuGetpackage(s)thataremissingonthiscomputer.EnableNuGetPackageRestoretodownloadthem.Formoreinformation,seehttp://go.microsoft.com/fwlink/?LinkID=322105.Themissingfileis{0}.</ErrorText>
</PropertyGroup>
<ErrorCondition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')"Text="$([System.String]::Format('$(ErrorText)','$(SolutionDir)\.nuget\NuGet.targets'))"/>
</Target>



                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐