Repository navigation
Expand file tree
/
Copy pathFolderDiffIL4DotNet.Tests.csproj
More file actions
65 lines (59 loc) · 4.2 KB
/
Copy pathFolderDiffIL4DotNet.Tests.csproj
File metadata and controls
65 lines (59 loc) · 4.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<Nullable>enable</Nullable>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<WarningsAsErrors>$(WarningsAsErrors);CS8603</WarningsAsErrors>
<NoWarn>$(NoWarn);CA1031;CS8600;CS8604;CS8605;CS8618;CS8619;CS8620;CS8625;xUnit1012</NoWarn>
</PropertyGroup>
<!-- Exclude all FakeDisassembler files (sources + obj/ generated files), then re-include shared test helpers -->
<!-- FakeDisassembler の全ファイル(ソース+obj/生成ファイル)を除外し、共有テストヘルパーのみ再インクルード -->
<ItemGroup>
<Compile Remove="Helpers\**\*.cs" />
<Compile Remove="Fixtures\ILCorpus\Source\**\*.cs" />
<Compile Include="Helpers\TestGitRepository.cs" />
<Compile Include="Helpers\TestGitRepositoryTests.cs" />
<Compile Include="Helpers\TestLogger.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="10.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.12.0" />
<PackageReference Include="FsCheck.Xunit" Version="3.3.3" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="Xunit.SkippableFact" Version="1.5.85" />
<PackageReference Include="xunit.runner.visualstudio" Version="4.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\FolderDiffIL4DotNet.Core\FolderDiffIL4DotNet.Core.csproj" />
<ProjectReference Include="..\FolderDiffIL4DotNet.csproj" />
<!-- FakeDisassembler is a helper executable used by DotNetDisassembleServiceTests (Services/DotNetDisassembleServiceTests.cs) -->
<ProjectReference Include="Helpers\FakeDisassembler.csproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<Private>false</Private>
</ProjectReference>
</ItemGroup>
<!-- Copy the FakeDisassembler binary (and required runtime files) to the test output directory after build -->
<Target Name="CopyFakeDisassembler" AfterTargets="Build">
<PropertyGroup>
<!-- FakeDisassembler.csproj uses AppendTargetFrameworkToOutputPath=false, so output is bin/$(Configuration)/ -->
<_FakeDisassemblerDir>$(MSBuildThisFileDirectory)Helpers/bin/$(Configuration)</_FakeDisassemblerDir>
<_FakeDisassemblerSrc Condition="$([MSBuild]::IsOSPlatform('Windows'))">$(_FakeDisassemblerDir)/FakeDisassembler.exe</_FakeDisassemblerSrc>
<_FakeDisassemblerSrc Condition="!$([MSBuild]::IsOSPlatform('Windows'))">$(_FakeDisassemblerDir)/FakeDisassembler</_FakeDisassemblerSrc>
<_FakeDisassemblerDest Condition="$([MSBuild]::IsOSPlatform('Windows'))">$(OutputPath)FakeDisassembler.exe</_FakeDisassemblerDest>
<_FakeDisassemblerDest Condition="!$([MSBuild]::IsOSPlatform('Windows'))">$(OutputPath)FakeDisassembler</_FakeDisassemblerDest>
</PropertyGroup>
<!-- Copy the AppHost native stub -->
<Copy SourceFiles="$(_FakeDisassemblerSrc)" DestinationFiles="$(_FakeDisassemblerDest)" SkipUnchangedFiles="true" Condition="Exists('$(_FakeDisassemblerSrc)')" />
<!-- Copy the managed DLL and runtime configuration files required by the AppHost -->
<Copy SourceFiles="$(_FakeDisassemblerDir)/FakeDisassembler.dll" DestinationFiles="$(OutputPath)FakeDisassembler.dll" SkipUnchangedFiles="true" Condition="Exists('$(_FakeDisassemblerDir)/FakeDisassembler.dll')" />
<Copy SourceFiles="$(_FakeDisassemblerDir)/FakeDisassembler.runtimeconfig.json" DestinationFiles="$(OutputPath)FakeDisassembler.runtimeconfig.json" SkipUnchangedFiles="true" Condition="Exists('$(_FakeDisassemblerDir)/FakeDisassembler.runtimeconfig.json')" />
<Copy SourceFiles="$(_FakeDisassemblerDir)/FakeDisassembler.deps.json" DestinationFiles="$(OutputPath)FakeDisassembler.deps.json" SkipUnchangedFiles="true" Condition="Exists('$(_FakeDisassemblerDir)/FakeDisassembler.deps.json')" />
</Target>
</Project>