mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 13:27:21 +00:00
60 lines
2.7 KiB
XML
60 lines
2.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<LangVersion>latest</LangVersion>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<RootNamespace>AIStudio.Tests</RootNamespace>
|
|
<IsPackable>false</IsPackable>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="coverlet.collector" Version="10.1.0" />
|
|
<!--
|
|
Held at the version the two analyzer projects build against, so that a test compiling a
|
|
snippet uses the same Roslyn the analyzers themselves were written for. Raise all three
|
|
together, and never above the Roslyn of the .NET SDK in metadata.txt (5.0 for 10.0.1xx).
|
|
-->
|
|
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.11.0" />
|
|
<!--
|
|
NUnit 4.6 broke Assert.That for plain values under C# 13: with Assert.That(Action, ...) added,
|
|
even Assert.That(1, Is.EqualTo(1)) failed with "argument 1: cannot convert int to System.Action".
|
|
NUnit 5 with C# 14 picks the value overload again. Should that message come back after an update,
|
|
this is where it comes from.
|
|
-->
|
|
<PackageReference Include="NUnit" Version="5.0.0" />
|
|
<PackageReference Include="NUnit.Analyzers" Version="4.15.0">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="NUnit3TestAdapter" Version="6.3.1" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\MindWork AI Studio\MindWork AI Studio.csproj" />
|
|
|
|
<!--
|
|
Referenced as plain libraries, not as analyzers: the tests run the generator and the
|
|
analyzer themselves, against a snippet they compile in memory. Building them into this
|
|
project as analyzers would have them judge the test code instead, which is not what is
|
|
being checked here.
|
|
-->
|
|
<ProjectReference Include="..\SourceCodeRules\SourceCodeRules\SourceCodeRules.csproj" />
|
|
<ProjectReference Include="..\SourceGeneratedMappings\SourceGeneratedMappings.csproj" />
|
|
</ItemGroup>
|
|
|
|
<!--
|
|
Compiled here as well, so that the tests check the same options of the app which the trim smoke test finds.
|
|
-->
|
|
<ItemGroup>
|
|
<Compile Include="..\TrimSmokeTest\AppJsonOptions.cs" Link="Serialization\AppJsonOptions.cs" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Using Include="NUnit.Framework" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|