我有一个 asp.net core 2.0 应用程序,它引用包 Microsoft.AspNetCore.All
当我发布它时没有创建 TargetManifest
发布大小约为 40MB,它包含应用程序中未使用的包有什么方法可以识别和删除未使用的包。
最佳答案
is there any way to identify and remove the packages that are not used
不,因为它是 nuget 中的元数据包。为实现这一点,我建议手动选择您需要的包并添加到项目中以替换 Microsoft.AspNetCore.All
您可以在 nuget.org 上找到所有包含的软件包列表在 Dependencies
部分
关于c# - 如何从 Microsoft.AspNetCore.All 元包中删除额外的引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48256950/