Open rouke-broersma opened 12 months ago
With GitHub actions I'm setting the Configuration
environment variable to Release
to make sure that all (build, test, pack) commands are performed with the release configuration:
(I'm also setting ContinuousIntegrationBuild to true
)
This works because MSBuild reads environment variables as MSBuild properties.
I guess setting environment variables should be straightforward with Azure Pipelines too.
Describe the bug We publish the nuget package with a DEBUG build instead of RELEASE. This causes some fatal exceptions to not be caught.
Expected behavior We should pack the release artifact using the RELEASE profile
Additional context https://learn.microsoft.com/en-us/dotnet/core/compatibility/sdk/8.0/dotnet-pack-config#new-behavior