© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
39 replies
Davaaron

Build order with dotnet build ...?

Hi,

Im using VS code for my C# development. I have some MSBuild Tasks that create assets that are used by other projects. Now, when I run
dotnet build
dotnet build
at solution level, the asset producing projects always run late. So I have to run it twice. I created a script to build each project in order by calling
dotnet build
dotnet build
on the project level. However, some commands like
dotnet publish
dotnet publish
or
dotnet release
dotnet release
seem to work better and easier on the solution level.
So I wonder is there maybe a trick to define the order? Maybe in the *.sln file? Or can I define it in the debug|release section somewhere?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ dotnet build
C#CC# / help
4y ago
✅ docker build with dotnet 8
C#CC# / help
3y ago
`dotnet build` errors NU1202 but building in IDE works
C#CC# / help
3y ago