admin管理员组

文章数量:1241096

I'm facing a weird behavior in VS 2022, after publishing my ASP.NET MVC project to disk. The tool creates a lot of .gz files, for each related .js file.

Not to mention that it also creates many .js.br files.

I'm using the latest VS 2022 Community edition, v17.13.0.

How to prevent this weird behavior on publishing, please?

I'm facing a weird behavior in VS 2022, after publishing my ASP.NET MVC project to disk. The tool creates a lot of .gz files, for each related .js file.

Not to mention that it also creates many .js.br files.

I'm using the latest VS 2022 Community edition, v17.13.0.

How to prevent this weird behavior on publishing, please?

Share Improve this question edited yesterday marc_s 755k184 gold badges1.4k silver badges1.5k bronze badges asked yesterday gtezinigtezini 434 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Option is called CompressionEnabled. Set it to false

see https://learn.microsoft/en-us/aspnet/core/migration/70-80?view=aspnetcore-9.0&tabs=visual-studio

本文标签: aspnet mvcVS 2022How to prevent creating gz files on publishStack Overflow