microsoft / DacFx

DacFx, SqlPackage, and other SQL development libraries enable declarative database development and database portability across SQL versions and environments. Share feedback here on dacpacs, bacpacs, and SQL projects.
https://aka.ms/sqlpackage-ref
MIT License
362 stars 21 forks source link

Code analysis with external libraries not working in VS SDK style project #532

Open ErikEJ opened 5 days ago

ErikEJ commented 5 days ago

Steps to Reproduce:

Using this (but maybe my expectations are too high?)

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build">
  <Sdk Name="Microsoft.Build.Sql" Version="0.2.5-preview" />
  <PropertyGroup>
    <Name>Database1</Name>
    <DSP>Microsoft.Data.Tools.Schema.Sql.Sql160DatabaseSchemaProvider</DSP>
    <ModelCollation>1033, CI</ModelCollation>
    <RootNamespace>Database1</RootNamespace>
    <AssemblyName>Database1</AssemblyName>
    <RunSqlCodeAnalysis>true</RunSqlCodeAnalysis>
  </PropertyGroup>

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