[英]Visual Studio 2017 Copy too many files when using a .net standard library
I have two projects: 我有两个项目:
if I reference project TestStandardLib in TestMain, the compile result is 100+ files: 如果我在TestMain中引用项目TestStandardLib,则编译结果为100多个文件:
TestMain.exe TestMain.exe
TestStandardLib.dll TestStandardLib.dll
System.Runtime.*.dll System.Runtime。*。dll的
System.Threading.*.dll 的System.Threading。*。dll的
... ...
... ...
But I think I only need 2 files: 但我认为我只需要2个文件:
TestMain.exe and TestStandardLib.dll TestMain.exe和TestStandardLib.dll
because I think the .Net Framework 4.6 should have included .net standard relative dll. 因为我认为.Net Framework 4.6应该包含.net标准相对dll。 And I do test that if I delete the other 100+ files, remaining only TestMain.exe and TestStandardLib.dll, it works ok! 我会测试是否删除了其他100多个文件,仅剩下TestMain.exe和TestStandardLib.dll,那么一切正常!
How to solve this? 怎么解决这个?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.