dll - 如何防止代码分析 dll 在生产服务器上发布?
问题描述
使用 Visual Studio 2019发布 ASP.NET Core 3 API netcoreapp3.1项目时,也会发布几个代码分析 dll。此外,这些 dll 以 13 种语言和英文版发布。
如何防止 Visual Studio 在生产服务器上发布代码分析 dll,包括英文版?
这些dll是:
Microsoft.CodeAnalysis.CSharp.resources.dll
Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
Microsoft.CodeAnalysis.resources.dll
Microsoft.CodeAnalysis.Workspaces.resources.dll
我在 Window 10 上使用 Microsoft Visual Studio Enterprise 2019 版本 16.4.5。
发布配置为:
Configuration: Release x64
Target framework: netcoreapp3.1
Deployment mode: Framework dependent
Target runtime: win-x64
File Publish Options:
Produce single file: no
Enable ReadyToRun compilation: yes
Delete all existing files prior to publish: yes
解决方案
推荐阅读
- android - 如何编写模拟 GPS 位置的 Espresso 测试并在 Google Testlab 中使用它们?
- angular - rxjs__WEBPACK_IMPORTED_MODULE_3__.Observable.throw 不是函数
- mysql - MySQL引用同一表中的行
- spring-boot - 在 QuartzJobBean 扩展类中通过依赖注入获取 NULL 指针
- import - 将数据从 Google Drive 文件夹导入 Power BI
- angular - 将管道应用于数组但保留原始索引
- tsql - 使用子查询填充 IN 列表
- ios - 在 iOS 12 上的 scrollView.contentInset 之后,scrollView.setContentOffset 不起作用
- vba - VLookup 结果未显示
- java - signing.properties 错误(系统找不到指定的文件)