sdk: dotnet publish is slow
Steps to reproduce
Create a small console app and add some NuGet packages. Run dotnet publish to publish app
Expected behavior
The publish step should perform roughly similar to a robocopy operation on newer files
Actual behavior
Dotnet publish is considerably slower
Environment data
dotnet --info output:
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 6
- Comments: 18 (3 by maintainers)
A lot of people now use Docker, where the publish is only meant to package the app.
The following takes really long time:
I am also experiencing this. I use docker to build, then publish a console application. The publish call takes ~10 seconds on my dev windows machine, but it takes >30 MINUTES on a micro VM. During that time the machine is practically idle. It gets stuck in between two projects, as if one particular project is the culprit (which is not the same one as publish was called on). I totally expect terrible performance on a micro VM, but this is not just performance, it’s something gone terribly wrong…