Steeltoe
Steeltoe copied to clipboard
Produce NuGet packages on release build
This enables to detect packaging issues early in pull requests, without increasing build times during debug.
- Because the default for
IsPackablevaries per SDK, we should:- Explicitly set
<IsPackable>true</IsPackable>in every project we'd like to produce a NuGet package for - Explicitly set
<IsPackable>false</IsPackable>in every other project (except tests), such as utilities, benchmarks, examples, etc.
- Explicitly set
- Move packaging-related settings from
sharedproject.propsinto new filesharedpackage.props- In
sharedtest.props:- Set
<IsPackable>false</IsPackable>
- Set
- In
shared.props:- Import
sharedpackage.propsonly whenIsPackableis true
- Import
- In
sharedpackage.props:- Set
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>for release builds - Consider to activate EnablePackageValidation for extra checks.
- Set
- In
- Update
azure-pipelines.ymlto take above changes into account