Skip to content

Releases: rr-wfm/MSBuild.Sdk.SqlProj

v2.9.1

09 Oct 10:07
a237ebc
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.9.0...v2.9.1

v2.9.0

01 Oct 13:45
Compare
Choose a tag to compare

Use Nuget based code analyzers

In this release we have added support for NuGet based code analyzers, simply add a reference to a rules Nuget package in your project file:

<ItemGroup>
    <PackageReference Include="ErikEJ.DacFX.SqlServer.Rules" Version="1.1.0" />
    <PackageReference Include="ErikEJ.DacFX.TSQLSmellSCA" Version="1.1.0" />
</ItemGroup>

Notice that you should set your target framework to netstandard2.1 if you consume NuGet based rules!

<TargetFramework>netstandard2.1</TargetFramework>

  • Report DacModelExceptions better, and continue processing all files by @ErikEJ in #598
  • Verify that GenerateCreateScript works by @ErikEJ in #599
  • Enable .NET Analyzers in DacpacTool by @ErikEJ in #604
  • Support NuGet based code analyzers by @ErikEJ in #625

Full Changelog: v2.6.0...v2.9.0

Bring your own rules

11 Mar 10:07
Compare
Choose a tag to compare

We've now added the ability to "bring your own rules" for the new code analysis feature introduced in 2.7.0. Please see our updated docs for more details. Thanks to @ErikEJ for the contribution.

In this release we've also included some bug fixes.

Introducing code analysis

29 Feb 14:19
Compare
Choose a tag to compare

Starting with release 2.7.0 we now have the ability to run code analysis rules on your SQL projects. Out of the box we support the following rules:

At this time we do not have the ability to add custom rules, but if you feel this is important please don't hesitate to file an issue. Make sure you read through our docs on this new feature.

Thanks to @ErikEJ for his contribution on this feature.

Escape SQLCMD parameter values

18 Aug 12:05
Compare
Choose a tag to compare

We've fixed a small issue (#458) that caused a build error if a SQLCMD parameter's value had spaces in them. Thanks to @Aaronontheweb for reporting this issue.

Full Changelog: v2.6.0...v2.6.1

.NET 8 support

16 May 09:08
Compare
Choose a tag to compare

In this release we've added support for .NET 8, which is currently in preview. Note that we've also dropped our support for .NET Core 3.1 in this release as that is no longer supported by Microsoft. If you're still using .NET Core 3.1 we recommend you stay on an older version of MSBuild.Sdk.SqlProj.

As part of this release we've also updated some of our third-party dependencies and we've introduced a capability in the SDK that will allow Visual Studio extensions to check if a project is using this SDK.

Please see all changes below:

What's Changed

New Contributors

Full Changelog: v2.5.0...v2.6.0

Allow overriding dacpac filename for a package reference

20 Feb 10:10
Compare
Choose a tag to compare

Up until version 2.5.0 MSBuild.Sdk.SqlProj has assumed that the name of the .dacpac file in a PackageReference is the same as the ID of the package being referenced. Although this is the case in many scenarios, there are scenarios where a referenced package might contain multiple .dacpac's or the filenames might not be the same. Therefore we now support specifying a DacpacName attribute on a PackageReference that allows for overriding the name of the .dacpac being referenced from that package.

This is especially useful for referencing the new Microsoft.SqlServer.Dacpacs packages released by Microsoft, which contain the definitions of the master and msdb databases.

Default values for SQLCMD variables

02 Dec 12:57
Compare
Choose a tag to compare

In this release we've made sure that any default values configured in the MSBuild.Sdk.SqlProj project are also embedded in the resulting .dacpac so that they may be used during deployment. Thanks to @Geims83 for his contribution.

SQL Server 2022 support

23 Nov 08:31
Compare
Choose a tag to compare

Starting with version 2.3.0 we now support targeting SQL Server 2022 with MSBuild.Sdk.SqlProj. Thanks to @ErikEJ for his contribution.

Note: In this release we've made a change so that when using dotnet publish to deploy your project to a development SQL Server we're not using an encrypted connection by default (ie. the connection string's Encrypt property is set to False). As development SQL Servers typically don't have a TLS certificate and our dotnet publish support is targeted at development scenario's we feel that this is a good default. For production deployments we recommend using the sqlpackage tool, which fully supports encrypted connections.

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.