-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ResolvedFromDifferentContext.csproj
29 lines (25 loc) · 1.25 KB
/
ResolvedFromDifferentContext.csproj
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Needed for UnloadabilityIncompatible, GC.WaitForPendingFinalizers -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
<!-- Test creates non-collectible AssemblyLoadContext -->
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="ResolvedFromDifferentContext.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="TestInterface.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Include="TestClass.csproj" ReferenceOutputAssembly="false" />
</ItemGroup>
<PropertyGroup>
<TestClassOutputPath>$(OutputPath)/../TestClass</TestClassOutputPath>
<TestInterfaceOutputPath>$(OutputPath)/../TestInterface</TestInterfaceOutputPath>
</PropertyGroup>
<Target Name="CopySupportAssembliesToOutputSubfolders" AfterTargets="Build">
<MakeDir Directories="$(TestClassOutputPath);$(TestInterfaceOutputPath)" />
<Copy SourceFiles="$(TestClassOutputPath)/TestClass.dll" DestinationFolder="$(OutputPath)/TestClass" />
<Copy SourceFiles="$(TestInterfaceOutputPath)/TestInterface.dll" DestinationFolder="$(OutputPath)/TestInterface" />
</Target>
</Project>