summaryrefslogtreecommitdiff
path: root/tests/src/Interop/COM/Activator/Activator.csproj
blob: 51b0b73ea4a6cb59fbfe996732b5ea563ceae85b (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <AssemblyName>Activator</AssemblyName>
    <SchemaVersion>2.0</SchemaVersion>
    <OutputType>Exe</OutputType>
    <ReferenceSystemPrivateCoreLib>true</ReferenceSystemPrivateCoreLib>
    <RequiresMockHostPolicy>true</RequiresMockHostPolicy>
    <!-- Test unsupported outside of windows -->
    <TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
    <DisableProjectBuild Condition="'$(TargetsWindows)' != 'true'">true</DisableProjectBuild>
  </PropertyGroup>
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Interop.settings.targets))\Interop.settings.targets" />

  <!-- Default configurations to help VS understand the configurations -->
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="Program.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>
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />

  <!-- 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>