910573f836
(cherry picked from commit 2aaf7a2426)
44 lines
2.3 KiB
XML
44 lines
2.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
<PropertyGroup>
|
|
<TargetFramework>net9.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<IsPackable>false</IsPackable>
|
|
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
|
|
<DefaultItemExcludes>$(DefaultItemExcludes);PdfBrowserStub/**</DefaultItemExcludes>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
|
|
<PackageReference Include="xunit" Version="2.9.2" />
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="Moq" Version="4.20.72" />
|
|
<PackageReference Include="Microsoft.Data.Sqlite" Version="9.0.14" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.14" />
|
|
<PackageReference Include="xunit.abstractions" Version="2.0.3" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\JobTrackerApi\JobTrackerApi.csproj" />
|
|
<!-- Build the fixture, but only our explicit subdirectory copy owns its output.
|
|
The Linux apphost has no .exe suffix and collides with that directory if copied to root. -->
|
|
<ProjectReference Include="PdfBrowserStub/PdfBrowserStub.csproj" ReferenceOutputAssembly="false" Private="false" OutputItemType="PdfBrowserStubAssembly" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="CopyPdfBrowserStub" AfterTargets="Build">
|
|
<Error Condition="'@(PdfBrowserStubAssembly)' == ''" Text="The PDF browser stub project returned no output assembly." />
|
|
<PropertyGroup>
|
|
<PdfBrowserStubOutput>@(PdfBrowserStubAssembly->'%(RootDir)%(Directory)%(Filename)')</PdfBrowserStubOutput>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<PdfBrowserFiles Include="$(PdfBrowserStubOutput).*" />
|
|
<!-- The Unix apphost is the only fixture file without an extension. -->
|
|
<PdfBrowserFiles Include="$(PdfBrowserStubOutput)" Condition="$([System.IO.File]::Exists('$(PdfBrowserStubOutput)'))" />
|
|
</ItemGroup>
|
|
<Copy SourceFiles="@(PdfBrowserFiles)" DestinationFolder="$(TargetDir)PdfBrowserStub" SkipUnchangedFiles="true" />
|
|
</Target>
|
|
</Project>
|