dotnet publish takes too long, about 5 minutes
See original GitHub issueI am using following command
dotnet publish -p:PublishProfile=Properties\PublishProfiles\FolderProfile.pubxml -v:d
then it hangs since
1:7>Done building target "_RazorGetCopyToPublishDirectoryItems" in project "project.csproj".
Other projects publish so quick. I removed all not necessary folders from project.
Time Elapsed 00:04:48.26
Further technical details
- ASP.NET Core version 3.1.3
- IDE VS 16.5
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Net core web application publish take too long
Even it takes more time to run local iis when compare to other .net framework applications. But publish task became painful, since it...
Read more >aspnet core build slow only when publishing
Publish can take a long time if your App generates temp files and you don't remove these files regularly. Try to check 'Remove...
Read more >DotNet core slow restore : r/docker
recently I'm facing a increase on the build time (+5 minutes from initial ~1 minute) when doing . There was no major changes...
Read more >How to Optimize .NET Pipelines in Azure DevOps ... - Tinkerer
If you'll notice our git checkout takes a long time. 2 minutes is an eternity for a checkout. This was due to two...
Read more >ASP.NET Tutorial | Hello World in 5 minutes
Step-by-step instructions for installing .NET and building your first Hello World web application. Develop with free tools for Linux, macOS, and Windows.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Your project has a fair number of “Content” files and it appears this one target that’s inspecting them might be taking way too long.
Could you try an experiment to see if it helps? To your project file add:
@vijayrkn 68.272 Files, 273 Folders but I have following in csproj
This should remove it from project and also from publishing or not? If I dont count Themes & uploads then its totally 2523 files