Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Msbuild 如何在输出文件夹中保留引用的nuget包的相对路径?_Msbuild_Nuget - Fatal编程技术网

Msbuild 如何在输出文件夹中保留引用的nuget包的相对路径?

Msbuild 如何在输出文件夹中保留引用的nuget包的相对路径?,msbuild,nuget,Msbuild,Nuget,我有一个引用了一些nuget包的项目 当msbuild将引用的nugets复制到输出文件夹时,只复制DLL本身 有没有办法指示msbuild即使在输出文件夹中也保持nuget相对路径 例如,当newtonsoft.json numget从 [nugetcache]\newtonsoft.json\12.0.3\lib\netstandard2.0\newtonsoft.json.dll,然后我希望它像这样放在输出bin文件夹中:*\bin\Release\newtonsoft.json\12.0

我有一个引用了一些nuget包的项目

当msbuild将引用的nugets复制到输出文件夹时,只复制DLL本身

有没有办法指示msbuild即使在输出文件夹中也保持nuget相对路径

例如,当newtonsoft.json numget从 [nugetcache]\newtonsoft.json\12.0.3\lib\netstandard2.0\newtonsoft.json.dll,然后我希望它像这样放在输出bin文件夹中:*\bin\Release\newtonsoft.json\12.0.3\lib\netstandard2.0\newtonsoft.json.dll

(*.deps.json已经知道这个相对路径,所以我接下来要做的就是将额外的ProbingPath添加到*.runtimeconfig.json,所有这些都应该可以正常工作)