Skip to content

Releases: rr-wfm/MSBuild.Sdk.SqlProj

Support for .NET 7

11 Nov 08:38
Compare
Choose a tag to compare

With version 2.2.0 we now support building using the .NET 7 SDK. Thanks to @ErikEJ for his contribution.

Please note that with this release we've also dropped support for .NET 5 as it is no longer supported by Microsoft. If you're still using .NET 5 we recommend you keep using your current version of MSBuild.Sdk.SqlProj until you're ready to upgrade to .NET 6 or 7.

.NET 6 support

29 Jan 14:50
Compare
Choose a tag to compare

Version 2.0.0 is the first official release to support the .NET 6.0 SDK.

This is breaking version in the sense that we've dropped support for the .NET Core 2.1 SDK, since that has gone out of support itself. If you're still required to use the .NET Core 2.1 SDK we recommend you stay on the 1.x release of MSBuild.Sdk.SqlProj, but beware that new features and bugfixes will only come to newer 2.x versions going forward. Feel free to open an issue if this is blocking you in anyway.

Other than that, no functional changes have been made in this release and upgrading should be as easy as updating your project file. We do however still recommend using netstandard2.0 as the target framework in your MSBuild.Sdk.SqlProj projects, instead of net6.0.

Deployment properties during script generation

10 Jan 14:12
Compare
Choose a tag to compare

With 1.17.3 we now take all of the deployment properties configured into the project into account when generating a deployment script as part of the build. Thanks to @dovic95 for this contribution on this feature.

Script generation includes composite objects

02 Dec 18:33
Compare
Choose a tag to compare

This releases ensures that if IncludeCompositeObjects is set to true (which is the default) it will also be applied when generating a create script using the GenerateCreateScript option. Previously the value of IncludeCompositeObjects was ignored entirely.

Thanks to @dovic95 for his contribution on this feature.

Support for .NET 6

16 Nov 12:48
d001e7e
Compare
Choose a tag to compare
Support for .NET 6 Pre-release
Pre-release

Version 2.0 will be the first version that will have support for .NET 6, but since some of our dependencies are not yet ready for .NET 6 we're shipping this as a preview version. We encourage you to test this release and please report any issues you encounter here on GitHub.

Note: We've also dropped our support for .NET Core 2.1 in this release since it is no longer being supported by Microsoft. If you're still on .NET Core 2.1 we recommend staying on the 1.x releases.

Small improvements

01 Oct 13:40
Compare
Choose a tag to compare

Version 1.17.0 includes a bunch of small but nonetheless useful new features thanks to contributions from @AroglDarthu:

  • We now apply the value of the property TargetDatabaseName when generating a script using GenerateCreateScript. Previously that property was ignored during script generation and it would always use the name of the project file
  • We now allow a regular C# project to reference an MSBuild.Sdk.SqlProj project by using a <ProjectReference> with the ReferenceOutputAssembly attribute set to False. This will make it so that the .dacpac ends up in the bin folder of the referencing project.
  • Finally we've fixed an issue where TreatTSqlWarningsAsErrors would be overridden by TreatWarningsAsErrors. Setting the latter to True no longer also implies that TreatTSqlWarningsAsErrors is set to True.

Please note that this will probably be the last release with support for .NET Core 2.1. Future versions will drop this support since .NET Core 2.1 itself has also gone out of support.

Improved error message

16 Jul 08:11
Compare
Choose a tag to compare

In this release we've improved the error message in case you're using an SDK that bundles a newer or older version of the runtime which we do not support. We now point you to the ability to write a global.json to force a specific SDK version.

Thanks to @ErikEJ for his contribution.

Improved error handling

16 Jul 08:08
Compare
Choose a tag to compare

In this release we've improved the error handling for pre-/post-deployment scripts in case they cannot be parsed. You should now be able to quickly find out which file cannot be parsed, which is especially important when including files through the :r <file>.sql syntax.

Thanks to @jeffrosenberg for his contribution.

Bugfixes and dependency updates

02 Jun 13:12
Compare
Choose a tag to compare

This releases incorporates a bug fix for the generate script in 1.15.0 where the generated script wasn't being properly copied to the output folder. We've also updated some of our dependencies to their latest versions to increase security and stability.

Support for generating scripts

20 May 14:32
Compare
Choose a tag to compare

We now have the ability to generate a script to create the entire database at build-time. This is similar in functionality to what SQL Server projects offered. No comparison will be made with a target database, just a script for creating all the objects defined within the project. It can be enabled by adding <GenerateCreateScript>True</GenerateCreateScript> to the project file.

Thanks to @markalroberts for his contribution on this feature.