Skip to content
Permalink
Browse files

[Build] Force cross-targeting if there is multiple RuntimeIdentifiers

  • Loading branch information
xen2 committed Dec 10, 2018
1 parent 6a5ce5a commit c5ed27a84874d885fa2d0b2e60aafe59b81175db
Showing with 5 additions and 0 deletions.
  1. +5 −0 sources/targets/Xenko.GlobalSettings.targets
@@ -42,6 +42,11 @@
<XenkoGraphicsApi Condition="'$(RuntimeIdentifier)' == 'linux-opengl'">OpenGL</XenkoGraphicsApi>
<XenkoGraphicsApi Condition="'$(RuntimeIdentifier)' == 'linux-vulkan'">Vulkan</XenkoGraphicsApi>
</PropertyGroup>
<!-- Force cross-targeting if there is multiple runtime identifiers -->
<PropertyGroup Condition="$(RuntimeIdentifiers.Contains(';')) And '$(TargetFrameworks)' == ''">
<TargetFrameworks>$(TargetFramework)</TargetFrameworks>
<TargetFramework></TargetFramework>
</PropertyGroup>
<!-- Use default runtime as ref assembly -->
<PropertyGroup Condition="'$(RuntimeIdentifierDefault)' != '' And '$(RuntimeIdentifier)' == '$(RuntimeIdentifierDefault)'">
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);XenkoIncludeRefAssemblies</TargetsForTfmSpecificBuildOutput>

0 comments on commit c5ed27a

Please sign in to comment.
You can’t perform that action at this time.