C#C
C#16mo ago
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 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 on the project level. However, some commands like dotnet publish or 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?
Was this page helpful?