-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDirectory.Build.props
59 lines (53 loc) · 3.24 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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Custom USA build properties -->
<PropertyGroup>
<TeklaVersion Condition="'$(Configuration)' == 'Debug' AND '$(TsAppPatchingEnabled)' != 'false'">2024.0</TeklaVersion>
<TsFolder>C:\ProgramData\Trimble\Tekla Structures\2024.0</TsFolder>
<EnvExtensionsDir>$(TsFolder)\Environments\common\extensions</EnvExtensionsDir>
<!-- US Custom build settings -->
<PurgeOutputPathAfterClean>False</PurgeOutputPathAfterClean>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath2></OutputPath2>
<Company>Trimble Solutions, USA Inc.</Company>
<Product>Tekla Structures</Product>
<Copyright>Copyright © 1992-$([System.DateTime]::Now.ToString("yyyy")) Trimble Solutions Corporation and its licensors. All rights reserved.</Copyright>
<Description>Tekla Structures Extension</Description>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<Platforms>x64</Platforms>
<Configuration>Debug</Configuration>
<PlatformTarget>x64</PlatformTarget>
<TargetFramework>net48</TargetFramework>
<NoWarn>NU1605</NoWarn>
<MajorVersionNumber Condition="'$(MajorVersionNumber)'==''">1</MajorVersionNumber>
<MinorVersionNumber Condition="'$(MinorVersionNumber)'==''">0</MinorVersionNumber>
<BuildNumber Condition="'$(BuildNumber)'==''">0</BuildNumber>
<Version>$(MajorVersionNumber).$(MinorVersionNumber).0.0</Version>
<AssemblyVersion>$(MajorVersionNumber).$(MinorVersionNumber).0.0</AssemblyVersion>
<FileVersion>$(MajorVersionNumber).$(MinorVersionNumber).$(BuildNumber).0</FileVersion>
</PropertyGroup>
<!-- Custom routines to copy build output (after cleaned up) to different additional locations -->
<Target Name="CopyAction2" AfterTargets="Build" Condition="'$(OutputPath2)'!=''">
<ItemGroup>
<MySourceFiles Include="$(OutputPath)\*.*" />
</ItemGroup>
<Copy SourceFiles="@(MySourceFiles)" DestinationFolder="$(OutputPath2)\"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" Retries="1" />
<Message Text="Copied output to: $(OutputPath2)" Importance="High" />
</Target>
<!-- Custom routine to clean build output folder(s) -->
<Target Name="CleanAction2" AfterTargets="Clean" Condition="'$(PurgeOutputPathAfterClean)'=='True' AND '$(OutputPath2)'!=''">
<Exec Command="Del $(OutputPath)\*.* /s /q /f" IgnoreExitCode="true" Condition="'$(OutputPath)'!=''"/>
<Exec Command="Del $(OutputPath2)\*.* /s /q /f" IgnoreExitCode="true" Condition="'$(OutputPath2)'!=''"/>
<Message Text="Cleared output folder: $(OutputPath)" Importance="High" />
<Message Text="Cleared output folder: $(OutputPath2)" Importance="High" />
</Target>
<Target Name="PrintPaths" AfterTargets="Clean">
<Message Text="TSFolder: $(TSFolder)" />
<Message Text="OutputPath: $(OutputPath)" />
<Message Text="OutputPath2: $(OutputPath2)" Condition="'$(OutputPath2)'!=''" />
<Message Text="EnvExtensionsDir: $(EnvExtensionsDir)" Condition="'$(EnvExtensionsDir)'!=''" />
<Message Text="IntermediateOutputPath: $(IntermediateOutputPath)" />
</Target>
</Project>