gpt4 book ai didi

c# - Nuget project.json 与 packages.config

转载 作者:行者123 更新时间:2023-11-30 18:20:28 30 4
gpt4 key购买 nike

这是我在 W10 通用应用程序中收到的错误。

Warning Could not locate C:\Users...\Examplinvi.UniversalApp\packages.config.
Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file. Examplinvi.UniversalApp

我的应用有一个 project.json(类似于新的 packages.config)。但我不明白这个警告试图警告我什么。我还安装了 Microsoft.Bcl.Build 并由项目和 project.json 引用。

此外,如果我创建一个 packages.config,我会收到新的警告,例如:

Warning Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190. Examplinvi

有解决此警告的想法吗?

最佳答案

添加这个:

<SkipValidatePackageReferences>true</SkipValidatePackageReferences> 

在您的 csproj/vbproj 的顶部。它应该工作。为我工作。

关于c# - Nuget project.json 与 packages.config,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37258982/

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