-
Notifications
You must be signed in to change notification settings - Fork 4.7k
/
Activator.csproj
33 lines (33 loc) · 1.44 KB
/
Activator.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
30
31
32
33
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RequiresMockHostPolicy>true</RequiresMockHostPolicy>
<!-- The test fails casting from ClassFromA from the default ALC to type IGetTypeFromC from a custom ALC -->
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NativeAotIncompatible>true</NativeAotIncompatible>
</PropertyGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="ComActivationContext.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NETServer\NETServer.csproj" />
<ProjectReference Include="Servers\AssemblyA.csproj" />
<ProjectReference Include="Servers\AssemblyB.csproj" />
<ProjectReference Include="Servers\AssemblyC.csproj" />
<ProjectReference Include="Servers\AssemblyContracts.csproj" />
</ItemGroup>
<!-- Set up an isolated directory for the server assemblies -->
<Target Name="SetUpIsolatedDirectory" AfterTargets="CopyFilesToOutputDirectory">
<PropertyGroup>
<ServerAssemblyDest>$(OutDir)/Servers</ServerAssemblyDest>
</PropertyGroup>
<ItemGroup>
<ServerAssembly Include="$(OutDir)/AssemblyA.*" />
<ServerAssembly Include="$(OutDir)/AssemblyB.*" />
<ServerAssembly Include="$(OutDir)/AssemblyC.*" />
</ItemGroup>
<Move SourceFiles="@(ServerAssembly)" DestinationFolder="$(ServerAssemblyDest)" />
</Target>
</Project>