我在一个解决方案中有一个.Net标准项目,我想让msbuild在我们的构建服务器上构建它。如果我不先运行"nuget restore“,我会收到错误消息"project.assets.json‘not found. run a NuGet package restore”。我已经在解决方案级别的" packages“文件夹中拥有了所有必需的NuGet包。我想以某种方式指出,msbuild应该只使用本地“包”文件</
我知道我可以将不同的位置添加到nuget.targets文件中,并且我知道NuGet将通过读取文件共享来工作。
但是,我可以将文件共享放在nuget.targets文件中吗?这是为了让我的构建服务器可以使用nuget.targets文件来提取nupkg。By default will used the registered sources und