Skip to content

Commit

Permalink
[Build] Restore workaround for Solution references (novotnyllc/MSBuil…
Browse files Browse the repository at this point in the history
  • Loading branch information
xen2 authored and Aggror committed Jun 15, 2020
1 parent 272fe8b commit bf9b666
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sources/targets/Stride.Core.targets
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' And '$(RuntimeIdentifiers)' != ''">$(RuntimeIdentifiers.Split(';', StringSplitOptions.RemoveEmptyEntries)[0])</RuntimeIdentifier>
</PropertyGroup>

<!-- Workaround: Remove RuntimeIdentifier from Solution references (https://github.com/onovotny/MSBuildSdkExtras/issues/139) -->
<Target Name="_StrideRemoveRuntimeIdentifier" AfterTargets="AssignProjectConfiguration">
<ItemGroup>
<ProjectReferenceWithConfiguration Condition="'%(ProjectReferenceWithConfiguration.ReferenceSourceTarget)' != 'ProjectReference'">
<GlobalPropertiesToRemove>%(ProjectReferenceWithConfiguration.GlobalPropertiesToRemove);RuntimeIdentifier</GlobalPropertiesToRemove>
</ProjectReferenceWithConfiguration>
</ItemGroup>
</Target>

<!-- Include platform dependent assembly when specified -->
<Choose>
Expand Down

0 comments on commit bf9b666

Please sign in to comment.