-
Notifications
You must be signed in to change notification settings - Fork 664
Add support for SQL SDK .sqlproj files in /updateprojectfiles #4720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot revert this file change
|
@copilot squash commits into one commit, rebase onto |
I've squashed all commits into a single commit (1224c4b) and rebased onto main (724e5d5). However, I cannot force push from my environment due to authentication constraints. The squashed commit is ready locally with all changes combined. You may need to force push manually or I can provide the commit details for you to apply. |
Adds support for updating SQL project files (.sqlproj) This allows GitVersion to update AssemblyInfo files in SQL projects.
bb9ca7f to
12ac970
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for Microsoft SQL Server Database Projects (.sqlproj files with Microsoft.Build.Sql SDK) to GitVersion's project file updater functionality.
Key changes:
- Extended SDK validation to accept both
Microsoft.NET.SdkandMicrosoft.Build.SqlSDKs - Added
.sqlprojto the list of supported project file extensions - Updated error messages to reflect the newly supported SDK
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/GitVersion.Output/AssemblyInfo/ProjectFileUpdater.cs |
Extended SDK validation logic to support Microsoft.Build.Sql SDK and added .sqlproj to supported file extensions |
src/GitVersion.Output.Tests/Output/ProjectFileUpdaterTests.cs |
Added test cases for Microsoft.Build.Sql SDK and refactored test to validate both .csproj and .sqlproj file support |
docs/input/docs/usage/cli/arguments.md |
Updated documentation to include .sqlproj in the list of supported project file types |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Thank you @Copilot for your contribution! |
|
🎉 This issue has been resolved in version 6.5.0 🎉 Your GitReleaseManager bot 📦🚀 |



Add support for SQL SDK .sqlproj files in GitVersion's
/updateprojectfilescommand.Changes
Core Logic (
ProjectFileUpdater.cs)IsSupportedProjectFileto recognize.sqlprojextensionCanUpdateProjectFileto acceptMicrosoft.Build.SqlSDK alongsideMicrosoft.NET.SdkTests (
ProjectFileUpdaterTests.cs)Microsoft.Build.Sqltest case to SDK validation testsUpdateProjectFileAddsVersionToFileto parameterized test covering both .NET and SQL projectsDocumentation (
arguments.md)/updateprojectfilesdocumentation to include.sqlprojExample
Running
dotnet gitversion /updateprojectfileswill now update version properties (AssemblyVersion,FileVersion,InformationalVersion,Version) in.sqlprojfiles using the SQL SDK.Note: Legacy SSDT
.sqlprojfiles remain unsupported (they lack SDK-style project structure).Fixes #4719
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.