5469ece012
TrustVerdictCache keyed on the code hash alone while the verdict also depends on the analysis reference set (and its degraded-fallback mode). The key is now (code SHA-256, degraded flag, base-reference fingerprint, extra-reference digest), length-prefixed. File-backed extra references are digested (path/size/mtime/kind/aliases/embed) so the Central UI run gate's calls are cached under their own key; an extra reference with no stable identity stays uncacheable. The old extras test passed a PortableExecutableReference[] positionally, which binds to the explicit-base overload, so it never exercised the extras path; the tests now use the named argument.
24 lines
689 B
XML
24 lines
689 B
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" />
|
|
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<InternalsVisibleTo Include="ZB.MOM.WW.ScadaBridge.ScriptAnalysis.Tests" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="../ZB.MOM.WW.ScadaBridge.Commons/ZB.MOM.WW.ScadaBridge.Commons.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|