Skip to content

When I try to compile multiple RID installers using a dummy csproj none of them build. #7464

Answered by AraHaan
AraHaan asked this question in Q&A
Discussion options

You must be logged in to vote

I have came up with this, however it happens to have an issue after manual restore where it says it does not have the rids in the restore assets file.

<Project Sdk="Microsoft.Build.NoTargets/3.2.9">

  <ItemGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">
    <!-- Use these when OS is Windows. -->
    <BundleRestoreReference Include="../bundle/Elskom.Sdk.App.Bundle.bundleproj">
      <AdditionalProperties>Configuration=$(Configuration);RuntimeIdentifiers=win-x86,win-x64,win-arm64</AdditionalProperties>
    </BundleRestoreReference>
    <BundleRIDReference Include="../bundle/Elskom.Sdk.App.Bundle.bundleproj">
      <AdditionalProperties>Configuration=$(Configuration);RuntimeIdentif…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AraHaan
Comment options

Answer selected by AraHaan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant