Update dependencies and lang version #793
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I started out making changes to the solution dependencies. I then noticed that there were some other stylistic/modernizations that could be made. I isolated the commits in this PR and detailed each commit. I also converted namespaces to be file-scoped which is the reason for the heavy diff.
In summary:
In Detail
chore(deps): bump Microsoft.SqlServer.DacFx from 170.1.61 to 170.2.70
Updated the DacFx package reference to the latest patch version to incorporate upstream fixes and improvements.
build(tests): migrate to MSTest v4 and adopt Assert.ThrowsExactly; update test SDK
using Microsoft.SqlServer.Management.HadrModel;Rationale: MSTest v4 removes deprecated ThrowsException APIs; tests updated in lockstep with package upgrades to keep the build passing.
build(tests): enable nullable refs and bump LangVersion to C# 12 in test project
Aims to modernize the test project to current C# features and improve null-safety.
style: cleanup code using analyzers and fix spelling error
seperated→separatedstyle: modernize project and source formatting