-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
- SqlPackage or DacFx Version: 170.2.70
- .NET Framework (Windows-only) or .NET Core: .NET 8.0
- Environment (local platform and source/target platforms): VS2022 17.14.20, .NET 8.0.4xx, Microsoft.Build.Sql 2.0.0
Steps to Reproduce:
- Create a custom SQL Code Analysis library built with target framework .NET 8.0
- Create a SQL Project targeting Microsoft.Build.Sql SDK 1.0.0, DacFx 162.5.57
- Reference the custom rules dll
- It should work fine, load the custom rules, validate the code, and all work fine.
- Upgrade SDK version to 2.0.0, upgrade your custom rules dll to use DacFx 170.2.70
- Try building again, using either custom rules dll, with DacFx version 162.5.57 or 170.2.70: the following error:
error NU1202: Package YOUR.CUSTOM.RULES.DLL 1.0.0 is not compatible with netstandard2.1 (.NE TStandard,Version=v2.1). Package YOUR.CUSTOM.RULES.DLL 1.0.0 supports: net8.0 (.NETCoreApp,Version=v8.0)
Did this occur in prior versions? If not - which version(s) did it work in?
It works fine in SDK version 1.0.0, using DacFx 162.5.57.
(DacFx/SDK/SQL Code Analysis)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working