This commit is contained in:
Родитель
e1b8eff6a9
Коммит
2ddb7a6d68
|
@ -38,6 +38,7 @@
|
|||
|
||||
<!-- Set the default RuntimeIdentifier if not already specified. -->
|
||||
<PropertyGroup Condition="'$(_RuntimeIdentifierIsRequired)' == 'true' And '$(RuntimeIdentifier)' == '' And '$(RuntimeIdentifiers)' == '' ">
|
||||
<!-- The _<platform>RuntimeIdentifier values are set from the IDE -->
|
||||
<RuntimeIdentifier Condition="'$(_PlatformName)' == 'iOS'">$(_iOSRuntimeIdentifier)</RuntimeIdentifier>
|
||||
<RuntimeIdentifier Condition="'$(_PlatformName)' == 'tvOS'">$(_tvOSRuntimeIdentifier)</RuntimeIdentifier>
|
||||
<RuntimeIdentifier Condition="'$(_PlatformName)' == 'macOS'">$(_macOSRuntimeIdentifier)</RuntimeIdentifier>
|
||||
|
@ -47,21 +48,13 @@
|
|||
|
||||
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' And '$(_PlatformName)' == 'iOS'">iossimulator-x64</RuntimeIdentifier>
|
||||
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' And '$(_PlatformName)' == 'tvOS'">tvossimulator-x64</RuntimeIdentifier>
|
||||
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' And '$(_PlatformName)' == 'macOS'">osx-x64</RuntimeIdentifier>
|
||||
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' And '$(_PlatformName)' == 'MacCatalyst'">maccatalyst-x64</RuntimeIdentifier>
|
||||
<!--
|
||||
Workaround/hack:
|
||||
|
||||
The Microsoft.NET.RuntimeIdentifierInference.targets file is loaded
|
||||
before this file, and executes some logic depending on whether the
|
||||
RuntimeIdentifier is set or not. Since RuntimeIdentifier isn't set at
|
||||
that point (we're setting it here), we need to replicate the logic in
|
||||
the Microsoft.NET.RuntimeIdentifierInference.targets file to make sure
|
||||
things work as expected.
|
||||
<!-- For release desktop builds we default to universal apps in .NET 7+ -->
|
||||
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' And '$(Configuration)' != 'Release' And '$(_PlatformName)' == 'macOS'">osx-x64</RuntimeIdentifier>
|
||||
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' And '$(Configuration)' != 'Release' And '$(_PlatformName)' == 'MacCatalyst'">maccatalyst-x64</RuntimeIdentifier>
|
||||
<RuntimeIdentifiers Condition="'$(RuntimeIdentifier)' == '' And '$(Configuration)' == 'Release' And '$(_PlatformName)' == 'macOS'">osx-x64;osx-arm64</RuntimeIdentifiers>
|
||||
<RuntimeIdentifiers Condition="'$(RuntimeIdentifier)' == '' And '$(Configuration)' == 'Release' And '$(_PlatformName)' == 'MacCatalyst'">maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers>
|
||||
|
||||
Ref: https://github.com/dotnet/runtime/issues/54406
|
||||
-->
|
||||
<SelfContained>true</SelfContained>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- We're never using any app hosts -->
|
||||
|
@ -71,7 +64,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<!-- App extensions are self-contained, even though their OutputType=Library. This must be done here and not targets as it is checked before targets are invoked. -->
|
||||
<PropertyGroup Condition="'$(IsAppExtension)' == 'true'">
|
||||
<PropertyGroup Condition="'$(IsAppExtension)' == 'true' And '$(RuntimeIdentifier)' != ''">
|
||||
<SelfContained>true</SelfContained>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
<NativeLibName>macos-fat</NativeLibName>
|
||||
<SupportedOSPlatformVersion Condition="'$(SupportedOSPlatformVersion)' == ''">10.14</SupportedOSPlatformVersion>
|
||||
<CompilerResponseFile>$(MSBuildThisFileDirectory)\..\..\src\build\dotnet\macos-defines-dotnet.rsp</CompilerResponseFile>
|
||||
<RuntimeIdentifiers Condition="'$(Configuration)' == 'Release' And '$(SingleArchReleaseBuild)' == 'true'">osx-x64</RuntimeIdentifiers>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Logic for Mac Catalyst -->
|
||||
|
@ -38,6 +39,7 @@
|
|||
<NativeLibName>maccatalyst-fat</NativeLibName>
|
||||
<SupportedOSPlatformVersion Condition="'$(SupportedOSPlatformVersion)' == ''">13.3</SupportedOSPlatformVersion>
|
||||
<CompilerResponseFile>$(MSBuildThisFileDirectory)\..\..\src\build\dotnet\maccatalyst-defines-dotnet.rsp</CompilerResponseFile>
|
||||
<RuntimeIdentifiers Condition="'$(Configuration)' == 'Release' And '$(SingleArchReleaseBuild)' == 'true'">maccatalyst-x64</RuntimeIdentifiers>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Logic for all test suites -->
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<MonoBundlingExtraArgs>$(MtouchExtraArgs)</MonoBundlingExtraArgs>
|
||||
<RootTestsDirectory>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)\..\..\..\..'))</RootTestsDirectory>
|
||||
<ThisTestDirectory>$(RootTestsDirectory)\linker\ios\link all</ThisTestDirectory>
|
||||
<SingleArchReleaseBuild>true</SingleArchReleaseBuild>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(RootTestsDirectory)/common/shared-dotnet.csproj" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче