yavsc/src/Yavsc.Org.Tests/Yavsc.Org.Tests.csproj

91 lines
4 KiB
XML
Raw Normal View History

2026-05-28 22:18:26 +01:00
<Project Sdk="Microsoft.NET.Sdk">
2025-03-02 16:53:36 +00:00
<PropertyGroup>
2026-04-19 17:23:18 +01:00
<TargetFramework>net10.0</TargetFramework>
2025-03-02 16:53:36 +00:00
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
2025-07-14 18:58:04 +01:00
<IsPackable>false</IsPackable>
2026-02-22 23:39:56 +00:00
<RootNamespace>Yavsc.Tests</RootNamespace>
2026-04-20 00:35:51 +01:00
<UserSecretsId>78a4efec-68dc-4745-ba06-d8545ef9ee91</UserSecretsId>
2026-05-28 22:18:26 +01:00
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<OutputType>exe</OutputType>
<RunSettingsFilePath>$(MSBuildProjectDirectory)\test.runsettings</RunSettingsFilePath>
2026-06-28 14:11:26 +01:00
<AssemblyVersion>1.0.1.0</AssemblyVersion>
<FileVersion>1.0.1.0</FileVersion>
<InformationalVersion>1.0.1-5+Branch.main.Sha.0617fc6bda7151c70559d87177e2dcfb1b60995f</InformationalVersion>
<Version>1.0.1-5</Version>
2025-03-02 16:53:36 +00:00
</PropertyGroup>
<ItemGroup>
2025-07-14 18:58:04 +01:00
<PackageReference Include="coverlet.collector" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" />
2025-07-30 15:52:01 +01:00
<PackageReference Include="IdentityModel.OidcClient" />
2025-07-14 18:58:04 +01:00
<PackageReference Include="Microsoft.AspNetCore.Hosting" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" />
2025-07-14 18:58:04 +01:00
<PackageReference Include="Microsoft.Extensions.Caching.Memory" />
<PackageReference Include="Microsoft.Extensions.Options" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" />
2026-06-19 16:55:42 +01:00
<PackageReference Include="xunit.v3" />
<PackageReference Include="xunit.v3.common" />
<PackageReference Include="xunit.v3.extensibility.core" />
2025-07-30 15:52:01 +01:00
<PackageReference Include="xunit.runner.visualstudio" />
2025-03-02 16:53:36 +00:00
</ItemGroup>
<ItemGroup>
<Content Include="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
2026-04-20 00:35:51 +01:00
<ItemGroup>
<Content Include="appsettings.*.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
2025-03-02 16:53:36 +00:00
<ItemGroup>
<ProjectReference Include="..\Yavsc.Org\Yavsc.Org.csproj" />
<ProjectReference Include="..\Yavsc.Abstract\Yavsc.Abstract.csproj" />
<ProjectReference Include="..\Yavsc.Server\Yavsc.Server.csproj" />
2025-03-02 16:53:36 +00:00
</ItemGroup>
2025-07-14 18:58:04 +01:00
<ItemGroup>
<Using Include="Xunit" />
</ItemGroup>
2026-05-28 22:18:26 +01:00
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" />
</ItemGroup>
<!--
MapStaticAssets() in the production pipeline resolves
{AssemblyName}.staticwebassets.endpoints.json from ContentRoot.
The referenced Yavsc.Org project produces
Yavsc.Org.staticwebassets.endpoints.json (and a runtime sibling).
Mirror them as Yavsc.Org.Tests.staticwebassets.* in the test bin
directory so the test WebApplicationFactory finds them at boot.
-->
2026-06-28 14:11:26 +01:00
<Target Name="CopyYavscOrgStaticAssets" AfterTargets="Build">
<PropertyGroup>
<_YavscOrgStaticAssetsDir>$(MSBuildProjectDirectory)\..\Yavsc.Org\bin\$(Configuration)\$(TargetFramework)</_YavscOrgStaticAssetsDir>
</PropertyGroup>
<ItemGroup>
<!--
Match the SDK-generated manifest files. Each file is then
copied into the test bin with the test assembly's name as
the prefix so that the default MapStaticAssets() lookup at
{AssemblyName}.staticwebassets.endpoints.json finds them.
Example:
src : Yavsc.Org.staticwebassets.endpoints.json
dst : Yavsc.Org.Tests.staticwebassets.endpoints.json
The transform is a string replace of the source filename's
"Yavsc.Org." prefix with "Yavsc.Org.Tests." — done by the
-> '$(OutDir)Yavsc.Org.Tests.%(Filename)' transformation
with a RegexReplace on the source path.
-->
<_YavscOrgStaticAssetsFiles Include="$(_YavscOrgStaticAssetsDir)\Yavsc.Org.staticwebassets.*.json" />
</ItemGroup>
2026-06-28 14:11:26 +01:00
<Copy SourceFiles="@(_YavscOrgStaticAssetsFiles)" DestinationFolder="$(OutDir)" />
</Target>
2026-06-28 14:11:26 +01:00
<ItemGroup>
<PackageReference Include="GitVersion.MsBuild" />
</ItemGroup>
</Project>