Closed ErikEJ closed 1 week ago
But maybe 0.2.3 does not include that?
It does not. I wish the release proces / release notes were more transparent.
Hi @ErikEJ yeah we're working on having the SDK release notes on GitHub. Which package are you trying to use? We currently support analyzer packages that are built using the C# way with analyzers in analyzers/dotnet/cs
@zijchen Does 0.2.3 support analyzer packages??
I am using my own package and the files are in the correct location
0.2.3 should support it, I just verified it locally as well. Do you mind sharing your binlog file?
I am testing with an updated .sqlprojx. Let me do a simpler test in ADS.
Sounds good, let us know your findings. Also, make sure you have <RunSqlCodeAnalysis>true</RunSqlCodeAnalysis>
in your project, it's easy to miss.
If everything's working correctly, you should see the analyzer assembly added during the ResolveLockFileAnalyzers
target in the binlog
@zijchen A plain dotnet build
in ADS (no .sqlprojx involvement) works as expected! 🎉
Guess .sqlprojx needs the latest DacFX somwhere?
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build">
<Sdk Name="Microsoft.Build.Sql" Version="0.2.3-preview" />
<PropertyGroup>
<Name>TestCA</Name>
<ProjectGuid>{F6384BD0-0462-45C9-90FF-80BF08AB39CA}</ProjectGuid>
<DSP>Microsoft.Data.Tools.Schema.Sql.Sql160DatabaseSchemaProvider</DSP>
<ModelCollation>1033, CI</ModelCollation>
<RunSqlCodeAnalysis>true</RunSqlCodeAnalysis>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ErikEJ.DacFX.SqlServer.Rules" Version="1.1.0" />
<PackageReference Include="ErikEJ.DacFX.TSQLSmellSCA" Version="1.1.0" />
</ItemGroup>
</Project>
Steps to Reproduce:
Did this occur in prior versions? If not - which version(s) did it work in?
(DacFx/SqlPackage/SSMS/Azure Data Studio)