Getting Started
Architecture
NServiceBus
Transports
ServiceInsight
ServicePulse
ServiceControl
Monitoring
Samples

SQL Persistence Upgrade Version 4.2 to 4.3

Component: Sql Persistence
This page targets a pre-release version. Pre-releases are subject to change and samples are not guaranteed to be fully functional.

In SQL Persistence version 4.3, the NServiceBus.Persistence.Sql.MsBuild NuGet package is deprecated, and the generation of SQL installation scripts is merged into the NServiceBus.Persistence.Sql package.

Version 4.3.0 of NServiceBus.Persistence.Sql.MsBuild will be the last release of this package. When included in a project, it will produce this warning at compile time:

The NServiceBus.Persistence.Sql.MsBuild package is deprecated and should be removed from the project. The functionality was merged into the NServiceBus.Persistence.Sql package.

In all projects where the NServiceBus.Persistence.Sql.MsBuild package is in use, it can be removed when upgrading to SQL Persistence 4.3, and scripts will continue to be generated.

For projects where NServiceBus.Persistence.Sql is used without NServiceBus.Persistence.Sql.MsBuild, and where generation of scripts is not desired, script generation can be disabled by including the following in the project file:

8-pre NServiceBus.Persistence.Sql
<PropertyGroup>
    <SqlPersistenceGenerateScripts>false</SqlPersistenceGenerateScripts>
</PropertyGroup>
7.x NServiceBus.Persistence.Sql
<PropertyGroup>
    <SqlPersistenceGenerateScripts>false</SqlPersistenceGenerateScripts>
</PropertyGroup>
6.x NServiceBus.Persistence.Sql
<PropertyGroup>
    <SqlPersistenceGenerateScripts>false</SqlPersistenceGenerateScripts>
</PropertyGroup>
5.x NServiceBus.Persistence.Sql
<PropertyGroup>
    <SqlPersistenceGenerateScripts>false</SqlPersistenceGenerateScripts>
</PropertyGroup>
4.x NServiceBus.Persistence.Sql
<PropertyGroup>
    <SqlPersistenceGenerateScripts>false</SqlPersistenceGenerateScripts>
</PropertyGroup>

For more ways to control script generation, see Controlling script generation.


Last modified