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
356 stars 20 forks source link

Warning from analyzer "loader" #503

Open ErikEJ opened 1 month ago

ErikEJ commented 1 month ago

Steps to Reproduce:

  1. Build this project:
<?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" />
  </ItemGroup>
</Project>

stdout: C:\Users\user\.nuget\packages\microsoft.build.sql\0.2.3-preview\tools\netstandard2.1\Microsoft.Data.Tools.Schema.SqlTasks.targets(1338,7): StaticCodeAnalysis warning : Path [C:\Users\user\.nuget\packages\erikej.dacfx.sqlserver.rules\1.1.0\analyzers\dotnet\cs\SqlServer.Dac.dll] is not a valid directory or assembly.

SqlServer.Dac.dll is a "helper" .dll neeeded by SqlServer.Rules.dll

Did this occur in prior versions? If not - which version(s) did it work in? N/A (new feature)