gtezini Asked: 2025-02-19 04:48:10 +0800 CST2025-02-19 04:48:10 +0800 CST 2025-02-19 04:48:10 +0800 CST VS 2022 - 如何防止在发布时创建 .gz 文件 772 .gz将我的 ASP.NET MVC 项目发布到磁盘后,我在 VS 2022 中遇到了奇怪的行为。该工具为每个相关文件创建了大量文件.js。 更不用说它还创建了许多.js.br文件。 我正在使用最新的 VS 2022 社区版,v17.13.0。 请问如何防止发布时出现这种奇怪的行为? asp.net-mvc 1 个回答 Voted Best Answer mathertel 2025-02-19T05:54:55+08:002025-02-19T05:54:55+08:00 选项名为CompressionEnabled。将其设置为false 请参阅https://learn.microsoft.com/en-us/aspnet/core/migration/70-80?view=aspnetcore-9.0&tabs=visual-studio
选项名为
CompressionEnabled
。将其设置为false
请参阅https://learn.microsoft.com/en-us/aspnet/core/migration/70-80?view=aspnetcore-9.0&tabs=visual-studio