Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2022 - How to prevent creating .gz files on publish

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.

enter image description here

How to prevent this weird behavior on publishing, please?

like image 266
gtezini Avatar asked Dec 09 '25 16:12

gtezini


1 Answers

Option is called CompressionEnabled. Set it to false

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

like image 73
mathertel Avatar answered Dec 11 '25 19:12

mathertel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!