mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 22:48:07 -05:00
* Stop generating solutions via -test flag add -generatesolution * Add TestAppSystem remove Application.InitUnitTest Avoids some hacks and also makes sure our tests are as close to a real AppSystem as possible. * Add shutdown unit test shuts down an re-inits the engine * Properly dispose native resources hold by managed during shutdown Should fix a bunch of crashes * Fix filesystem and networking tests * StandaloneTest does proper Game Close * Make sure package tests clean up properly * Make sure menu scene and resources are released on shutdown * Report leaked scenes on shutdown * Ensure DestroyImmediate is not used on scenes * Fix unmounting in unit tests not clearing native refs * Force destroy native resource on ResourceLib Clear
58 lines
2.0 KiB
XML
58 lines
2.0 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<NoWarn>1701;1702;1591;CS0612</NoWarn>
|
|
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
|
<IsTestProject>true</IsTestProject>
|
|
<IsPublishable>false</IsPublishable>
|
|
<IsPackable>false</IsPackable>
|
|
<SentryDisableSourceGenerator>true</SentryDisableSourceGenerator>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(BuildingForLiveUnitTesting)' == 'true'">
|
|
<DefineConstants>$(DefineConstants);LIVE_UNIT_TEST</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Using Include="Microsoft.AspNetCore.Components" />
|
|
<Using Include="Microsoft.AspNetCore.Components.Rendering" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Remove="CodeGen\data\**\*.cs" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Include="CodeGen\data\*.*">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Facepunch.ActionGraphs" Version="1.9.22" />
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
|
|
<PackageReference Include="MSTest.TestAdapter" Version="3.6.4" />
|
|
<PackageReference Include="MSTest.TestFramework" Version="3.6.4" />
|
|
|
|
<PackageReference Include="coverlet.collector" Version="6.0.2">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
|
|
<PackageReference Include="OxyPlot.Core" Version="2.2.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Sandbox.Bind\Sandbox.Bind.csproj" />
|
|
<ProjectReference Include="..\Sandbox.Generator\Sandbox.Generator.csproj" />
|
|
<ProjectReference Include="..\Sandbox.System\Sandbox.System.csproj" />
|
|
<ProjectReference Include="..\Sandbox.Engine\Sandbox.Engine.csproj" />
|
|
<ProjectReference Include="..\Sandbox.Tools\Sandbox.Tools.csproj" />
|
|
<ProjectReference Include="..\Sandbox.Menu\Sandbox.Menu.csproj" />
|
|
<ProjectReference Include="..\Sandbox.AppSystem\Sandbox.AppSystem.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|
|
|