forked from finos/plexus-interop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plexus.Interop.Samples.GreetingServer.csproj
48 lines (33 loc) · 1.72 KB
/
Plexus.Interop.Samples.GreetingServer.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../Common.csproj" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<RuntimeIdentifier Condition=" '$(OS)' == 'Windows_NT'">win-x86</RuntimeIdentifier>
<RuntimeIdentifier Condition=" '$(OS)' != 'Windows_NT'">osx-x64</RuntimeIdentifier>
<PlatformTarget Condition=" '$(RuntimeIdentifier)' == 'win-x86'">x86</PlatformTarget>
<PlatformTarget Condition=" '$(RuntimeIdentifier)' == 'osx-x64'">x64</PlatformTarget>
<ArtifactsDir>../../../bin/$(RuntimeIdentifier)/</ArtifactsDir>
<SamplesDir>$(ArtifactsDir)samples/greeting/</SamplesDir>
<PublishDir>$(SamplesDir)apps/GreetingServer/</PublishDir>
<AssemblyName>GreetingServer</AssemblyName>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Diagnostics.Tracing" Version="4.3.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Plexus.Channels\Plexus.Channels.csproj" />
<ProjectReference Include="..\Plexus.Interop.Client\Plexus.Interop.Client.csproj" />
<ProjectReference Include="..\Plexus.Logging.NLog\Plexus.Logging.NLog.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="nlog.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Target Name="PublishAfterBuild" AfterTargets="Build" DependsOnTargets="Publish">
<Copy SourceFiles="LaunchGreetingServer.cmd" DestinationFolder="$(SamplesDir)" Condition=" '$(RuntimeIdentifier)' == 'win-x86'" />
<Copy SourceFiles="LaunchGreetingServer.sh" DestinationFolder="$(SamplesDir)" Condition=" '$(RuntimeIdentifier)' == 'osx-x64'" />
</Target>
</Project>