Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
67 lines (61 loc) · 4.93 KB
/
Copy pathDirectory.Build.props
File metadata and controls
67 lines (61 loc) · 4.93 KB
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
<Project>
<Import Project="$(MSBuildThisFileDirectory)version.props" Condition="Exists('$(MSBuildThisFileDirectory)version.props')" />
<Import Project="$(MSBuildThisFileDirectory)Directory.Build.props.local" Condition="Exists('$(MSBuildThisFileDirectory)Directory.Build.props.local')" />
<PropertyGroup>
<IsWindows Condition="'$([MSBuild]::IsOSPlatform("Windows"))' == 'true' or '$(OS)' == 'Windows_NT'">true</IsWindows>
<WorkspaceCodeRoot Condition="'$(IsWindows)' == 'true'">$([System.IO.Path]::GetFullPath('$(USERPROFILE)/code/').Replace('\', '/'))</WorkspaceCodeRoot>
<WorkspaceCodeRoot Condition="'$(IsWindows)' != 'true' and Exists('/mnt/c/Users/irovb/code/')">/mnt/c/Users/irovb/code/</WorkspaceCodeRoot>
<WorkspaceCodeRoot Condition="'$(WorkspaceCodeRoot)' == '' and '$(HOME)' != ''">$(HOME)/code/</WorkspaceCodeRoot>
<NormalizedProjectDir>$([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)/').Replace('\', '/'))</NormalizedProjectDir>
<ProjectCacheSubDir Condition="'$(WorkspaceCodeRoot)' != '' and $([System.String]::Copy('$(NormalizedProjectDir)').StartsWith('$(WorkspaceCodeRoot)'))">$([System.String]::Copy('$(NormalizedProjectDir)').Substring('$([System.String]::Copy('$(WorkspaceCodeRoot)').Length)'))</ProjectCacheSubDir>
<ProjectCacheSubDir Condition="'$(ProjectCacheSubDir)' == ''">$(MSBuildProjectName)</ProjectCacheSubDir>
<CustomCachePath Condition="'$(BUILD_CACHE_PATH)' != ''">$(BUILD_CACHE_PATH)/$(ProjectCacheSubDir)</CustomCachePath>
<CustomCachePath Condition="'$(CustomCachePath)' == '' and '$(IsWindows)' == 'true'">C:/BuildCache/$(ProjectCacheSubDir)</CustomCachePath>
<CustomCachePath Condition="'$(IsWindows)' != 'true' and '$(HOME)' != ''">$(HOME)/.cache/build/$(ProjectCacheSubDir)</CustomCachePath>
<CustomCachePath Condition="'$(CustomCachePath)' == ''">$(MSBuildProjectDirectory)/.artifacts</CustomCachePath>
<PackageRoot Condition="'$(IsWindows)' == 'true'">$(USERPROFILE)/Documents/Package/</PackageRoot>
<PackageRoot Condition="'$(IsWindows)' != 'true' and Exists('/mnt/c/Users/irovb/Documents/Package/')">/mnt/c/Users/irovb/Documents/Package/</PackageRoot>
<PackageRoot Condition="'$(PackageRoot)' == '' and '$(HOME)' != ''">$(HOME)/Package/</PackageRoot>
<PackageRoot Condition="'$(PackageRoot)' == ''">$(MSBuildProjectDirectory)/Package/</PackageRoot>
</PropertyGroup>
<PropertyGroup>
<UseArtifactsOutput>true</UseArtifactsOutput>
<ArtifactsPath>$(CustomCachePath)</ArtifactsPath>
<BaseOutputPath>$(CustomCachePath)/bin/</BaseOutputPath>
<BaseIntermediateOutputPath>$(CustomCachePath)/obj/</BaseIntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(CustomCachePath)/obj/</MSBuildProjectExtensionsPath>
</PropertyGroup>
<PropertyGroup>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>14</LangVersion>
<AnalysisLevel>latest-recommended</AnalysisLevel>
<AnalysisMode>Recommended</AnalysisMode>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<Features>strict</Features>
<WarningLevel>9999</WarningLevel>
<Version Condition="'$(Version)' == ''">$(AppVersion)</Version>
<IsTrimmable Condition="'$(PublishAot)' == 'true' or '$(PublishTrimmed)' == 'true'">true</IsTrimmable>
<EnableTrimAnalyzer Condition="'$(PublishAot)' == 'true' or '$(PublishTrimmed)' == 'true'">true</EnableTrimAnalyzer>
<JsonSerializerIsReflectionEnabledByDefault Condition="'$(PublishAot)' != 'true' and '$(PublishTrimmed)' != 'true'">true</JsonSerializerIsReflectionEnabledByDefault>
<JsonSerializerIsReflectionEnabledByDefault Condition="'$(PublishAot)' == 'true' or '$(PublishTrimmed)' == 'true'">false</JsonSerializerIsReflectionEnabledByDefault>
<GITHUB_ACTIONS Condition="'$(GITHUB_ACTIONS)' == ''">false</GITHUB_ACTIONS>
<PackageMode Condition="'$(PackageMode)' == ''">MSIX</PackageMode>
<NoWarn>$(NoWarn);SigningCertificateNoCertSpecified;</NoWarn>
<AppxPackageSigningEnabled Condition="'$(AppxPackageSigningEnabled)' == ''">false</AppxPackageSigningEnabled>
</PropertyGroup>
<PropertyGroup>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<Deterministic>true</Deterministic>
<NuGetAudit>true</NuGetAudit>
<NuGetAuditMode>all</NuGetAuditMode>
<NuGetAuditLevel>high</NuGetAuditLevel>
</PropertyGroup>
<Target Name="EnsureBuildCacheDir" BeforeTargets="BeforeBuild;Restore" Condition="'$(IsWindows)' == 'true' and !Exists('C:\BuildCache')">
<MakeDir Directories="C:\BuildCache" ContinueOnError="true" />
</Target>
<Target Name="SyncSharedConfigFiles" BeforeTargets="BeforeBuild" Condition="'$(IsWindows)' == 'true' and Exists('$(USERPROFILE)\code\sync_configs.ps1')">
<Exec Command="powershell -NoProfile -ExecutionPolicy Bypass -File "$(USERPROFILE)\code\sync_configs.ps1" -ProjectDir "$(MSBuildProjectDirectory)"" IgnoreExitCode="true" />
</Target>
</Project>