-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
40 lines (36 loc) · 1.99 KB
/
Copy pathDirectory.Build.targets
File metadata and controls
40 lines (36 loc) · 1.99 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
<Project>
<PropertyGroup Condition="'$(IsNuGetPackage)' == 'true' ">
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<IncludeReferencedProjects>true</IncludeReferencedProjects>
<Deterministic>true</Deterministic>
<DebugType>portable</DebugType>
<IncludeSymbols>true</IncludeSymbols>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition="$([System.String]::Copy($(MSBuildProjectName)).EndsWith('Tests')) and '$(TargetFramework)' == '$(MacTargetFramework)'">
<UseAppHost>true</UseAppHost>
<_CanOutputAppBundle>false</_CanOutputAppBundle>
<GenerateDependencyFile>true</GenerateDependencyFile>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<RuntimeIdentifiers></RuntimeIdentifiers>
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' and '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'Arm64'">osx-arm64</RuntimeIdentifier>
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' and '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'X64'">osx-x64</RuntimeIdentifier>
</PropertyGroup>
<Target Name="TrimSymbolsFromPublish" AfterTargets="ComputeFilesToPublish" Condition="'$(Configuration)' == 'Release'">
<ItemGroup>
<ResolvedFileToPublish Remove="@(ResolvedFileToPublish)" Condition="'%(Extension)' == '.pdb'" />
</ItemGroup>
</Target>
<Target Name="OverrideMacTestRunCommand"
AfterTargets="_PrepareRunDesktop"
BeforeTargets="Run"
Condition="$([System.String]::Copy($(MSBuildProjectName)).EndsWith('Tests')) and '$(TargetFramework)' == '$(MacTargetFramework)'">
<PropertyGroup>
<RunCommand>$(TargetDir)$(AssemblyName)</RunCommand>
<RunArguments></RunArguments>
<RunWorkingDirectory>$(TargetDir)</RunWorkingDirectory>
</PropertyGroup>
</Target>
</Project>