Skip to content

Conversation

@joem-msft
Copy link
Contributor

@joem-msft joem-msft commented Jan 20, 2026

Modernize MSBuild configuration
- Enable ManagePackageVersionsCentrally
- csproj should explicitly set TargetFramework or TargetFrameworks property
- move AssemblyOriginatorKeyFile to root config
- use dotnet cli instead of custom build script
- use dotnet test to run test projects
- use global-json-file to control dotnet version
- Remove targets.csproj, as we should just recommend using dotnet locally
- add tasks to build nuget packages during CI builds to validate any build errors or warnings during pack.
- Make types/members internal now that InternalsVisibleToAttribute is being used for test projects.
- standardize formatting of msbuild file indentations
- Versioning is controlled using .Net SDK properties by default. Only in official build pipelines is PipelineAssemblyInfo.cs used

@joem-msft joem-msft requested review from a team as code owners January 20, 2026 19:53
@joem-msft joem-msft changed the title Modernize MSBuild configuration [DRAFT] Modernize MSBuild configuration Jan 20, 2026
@joem-msft joem-msft force-pushed the users/joemay/fix-BA2004 branch 10 times, most recently from 73e27b5 to 38475e0 Compare January 22, 2026 20:15
- Enable `ManagePackageVersionsCentrally`
- csproj should explicitly set `TargetFramework` or `TargetFrameworks` property
- move `AssemblyOriginatorKeyFile` to root config
- use dotnet cli instead of custom build script
- use `dotnet test` to run test projects
- use global-json-file to control dotnet version
- Remove targets.csproj, as we should just recommend using dotnet locally
- add tasks to build nuget packages during CI builds to validate any build errors or warnings during pack.
- Make types/members `internal` now that `InternalsVisibleToAttribute` is being used for test projects.
- standardize formatting of msbuild file indentations
- Versioning is controlled using .Net SDK properties by default. Only in official build pipelines is `PipelineAssemblyInfo.cs` used
@joem-msft joem-msft force-pushed the users/joemay/fix-BA2004 branch from 38475e0 to 13c78c8 Compare January 22, 2026 20:29
@joem-msft joem-msft changed the title [DRAFT] Modernize MSBuild configuration Modernize MSBuild configuration Jan 22, 2026
@joem-msft joem-msft merged commit a6db2d5 into master Jan 22, 2026
6 checks passed
@joem-msft joem-msft deleted the users/joemay/fix-BA2004 branch January 22, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants