I've set up a build step using msbuild (Microsoft BuildTools 2019, ToolsVersion 16.0)
If I set build target to Release, I get the error in the title. If I set build target to Debug, I get the equivalent error.
If I don't set a build target at all, I get:
NETSDK1004: Assets file 'C:\TeamCity\buildAgent\work\b8126aa0ba178445\Test\Application\Matisa.Test.ApplicationEnums\obj\project.assets.json' not found
I've tried switching to .NET CLI builder, but it gives the same error.
It seems that you need to run dotnet restore in your pipeline somehow. You can try to add .NET CLI step with restore command to your build definition and place it before your msbuild step.
Sorry, silly me...
The target isn't Debug or Release, it's Build/Restore etc... Got mixed up.
Debug or Release goes in Parameters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With