-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
34 lines (31 loc) · 1.73 KB
/
Copy pathDirectory.Build.targets
File metadata and controls
34 lines (31 loc) · 1.73 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
<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="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>