.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

69 lines
3.5 KiB

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Windows-targeted TFM unlocks Microsoft.DiaSymReader (native COM) + System.Windows
registry APIs without conditional package gates. EnableWindowsTargeting lets the
build satisfy the -windows reference assemblies on non-Windows OSes via the
cross-targeting pack, so `dotnet build ILSpy.sln` succeeds on Linux/macOS; the
tests still only execute on Windows because the binaries P/Invoke into Win32. -->
<TargetFramework>net11.0-windows</TargetFramework>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<OutputType>Exe</OutputType>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<RootNamespace>ICSharpCode.ILSpy.Tests.Windows</RootNamespace>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
<!-- Avalonia tests don't need WPF / WinForms reference assemblies even on the
-windows TFM. Suppress so the project doesn't pull in unused frameworks. -->
<UseWPF>false</UseWPF>
<UseWindowsForms>false</UseWindowsForms>
<!-- Strong-named with the shared snk so ICSharpCode.ILSpyX can grant
InternalsVisibleTo for the analyzer-library tests, mirroring the main
test project. -->
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\ICSharpCode.Decompiler\ICSharpCode.Decompiler.snk</AssemblyOriginatorKeyFile>
<!-- Microsoft.DiaSymReader.Converter.Xml/.Native transitively pull System.Net.Http
4.3.0 and System.Text.RegularExpressions 4.3.0 which carry known vulnerabilities
(NU1903). These transitive references are outside our control and not exploitable
in the test process. Audit only direct deps. -->
<NuGetAuditMode>direct</NuGetAuditMode>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Avalonia" />
<PackageReference Include="Avalonia.Headless.NUnit" />
<PackageReference Include="Avalonia.Themes.Simple" />
<PackageReference Include="NUnit" />
<PackageReference Include="NUnit3TestAdapter" />
<PackageReference Include="coverlet.MTP" />
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" />
<PackageReference Include="Microsoft.Testing.Extensions.VSTestBridge" />
<PackageReference Include="AwesomeAssertions" />
<PackageReference Include="NSubstitute" />
<!-- Windows-only native packages that the matching ILSpy commands gate
behind `Debug + IsOSPlatform(Windows)`. Available unconditionally here because
the project itself only builds on Windows. -->
<PackageReference Include="Microsoft.DiaSymReader.Converter.Xml" />
<PackageReference Include="Microsoft.DiaSymReader" />
<PackageReference Include="Microsoft.DiaSymReader.Native" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ILSpy\ILSpy.csproj" />
</ItemGroup>
<!-- Share TestApp + TestAppBuilder with the cross-platform test project. Linked
rather than duplicated so changes in the main project (data templates, theme
stack, settings sandbox) automatically apply here. -->
<ItemGroup>
<Compile Include="..\ILSpy.Tests\TestApp.axaml.cs" Link="TestApp.axaml.cs" />
<Compile Include="..\ILSpy.Tests\TestAppBuilder.cs" Link="TestAppBuilder.cs" />
<Compile Include="..\ILSpy.Tests\ResetAppStateAttribute.cs" Link="ResetAppStateAttribute.cs" />
<AvaloniaResource Include="..\ILSpy.Tests\TestApp.axaml" Link="TestApp.axaml" />
</ItemGroup>
</Project>