-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDirectory.Build.props
67 lines (65 loc) · 2.87 KB
/
Directory.Build.props
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
66
67
<!--
SPDX-FileCopyrightText: Copyright (c) 2009-2020 TRUMPF Laser GmbH, authors: C-Labs
SPDX-License-Identifier: MPL-2.0
-->
<Project>
<Choose>
<When Condition="'$(TargetFramework)'=='net35'">
<PropertyGroup>
<DefineConstants>CDE_NET35;$(DefineConstants)</DefineConstants>
</PropertyGroup>
</When>
<When Condition="'$(TargetFramework)'=='net40'">
<PropertyGroup>
<DefineConstants>CDE_NET4;$(DefineConstants)</DefineConstants>
</PropertyGroup>
</When>
<When Condition="'$(TargetFramework)'=='net45'">
<PropertyGroup>
<DefineConstants>CDE_NET45;$(DefineConstants)</DefineConstants>
</PropertyGroup>
</When>
<When Condition="'$(TargetFramework)'=='netstandard2.1'">
<PropertyGroup>
<DefineConstants>CDE_STANDARD;$(DefineConstants)</DefineConstants>
</PropertyGroup>
</When>
</Choose>
<PropertyGroup Condition="'$(Configuration)' != 'Release'">
<cdeDebugConfig>$(Configuration)</cdeDebugConfig>
<cdeDebugProductSuffix> ($(Configuration))</cdeDebugProductSuffix>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildProjectName)' != 'cdeUpdater'">
<BaseOutputPath>$(SolutionDir)..\bin\$(Configuration)\$(MSBuildProjectName)\</BaseOutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildProjectName)' == 'cdeUpdater'">
<BaseOutputPath>$(MSBuildProjectDir)..\..\..\bin\$(Configuration)\$(MSBuildProjectName)\</BaseOutputPath>
</PropertyGroup>
<PropertyGroup>
<OutputPath>$(BaseOutputPath)</OutputPath>
</PropertyGroup>
<Choose>
<When Condition="'$(BuildingInsideVisualStudio)' == 'true'">
<PropertyGroup>
<SourceRevisionId>private-$([System.DateTime]::Now.ToString("yyyyMMdd"))-$(Computername.ToLowerInvariant())-$([System.DateTime]::Now.ToString("HHmmss"))</SourceRevisionId>
<cdeNugetSuffix>-$(SourceRevisionId.SubString(0, 20))</cdeNugetSuffix>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<SourceRevisionId>$(cdeBuildQualityPrefix.ToLowerInvariant())$(BUILD_BUILDNUMBER)</SourceRevisionId>
<RepositoryUrl>https://github.com/trumpf-iot/c-dengine</RepositoryUrl>
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
</ItemGroup>
</Otherwise>
</Choose>
</Project>