[英]How to force nuget package reference dlls to be copied to output directory?
I added the System.Memory
Nuget Package to my net48
Azure Function V1 project to provide the missing dlls for a referenced netstandard2.0
package. I added the
System.Memory
Nuget Package to my net48
Azure Function V1 project to provide the missing dlls for a referenced netstandard2.0
package. But as the package is not directly used in my code, the dlls are not copied to the output folder.但是由于我的代码中没有直接使用 package,因此没有将 dll 复制到 output 文件夹中。
How can I force the dlls of the System.Memory
package to be copied to the output folder on build?如何在构建时强制将
System.Memory
package 的 dll 复制到 output 文件夹中? I already tried with <IncludeAssets>all</IncludeAssets>
but this only copies the dlls to output folder in some cases (eg rebuild project).我已经尝试过使用
<IncludeAssets>all</IncludeAssets>
但这只会在某些情况下将 dll 复制到 output 文件夹(例如重建项目)。 But if I run the Azure Function debugger, the dlls are getting deleted again from output folder.但是,如果我运行 Azure Function 调试器,则 dll 将从 output 文件夹中再次删除。
Copy local does not exist for package references: package 引用不存在本地复制:
Select the reference in the Solution
/ Project
/ References
. Select
Solution
/ Project
/参考中的References
。
Right click
/ Menu
/ Properties
Right click
/ Menu
/ Properties
Copy local: True
More:更多的:
Project
, use Clean
and then Rebuild
Project
上,使用Clean
然后Rebuild
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.