Skip to content

HotReload should support newer .NET SDKs even when TargetFramework is older #17097

Closed

Description

@Youssef1313

Current behavior

Building with net8.0 using .NET 9 SDK should be a supported scenario. But it currently doesn't work.

Expected behavior

No response

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

Activity

  1. added
    kind/bug
    triage/untriaged
    difficulty/tbd
    on Jun 12, 2024
  2. added
    area/hot-reload
    on Jun 12, 2024
  3. Youssef1313 commented on Jun 12, 2024

    @Youssef1313
    MemberAuthor

    This is likely an issue ONLY inside Uno for HRApp

    This line:

    <_UnoRCHostVersionPath Condition="'$([MSBuild]::GetTargetFrameworkVersion($(TargetFramework)))' &gt; 8">net9.0</_UnoRCHostVersionPath>

    should be using the SDK version, as we do in:

    <_UnoRCHostVersionPath Condition="'$(BundledNETCoreAppTargetFrameworkVersion)' &gt; 8">net9.0</_UnoRCHostVersionPath>

  4. jeromelaban commented on Jun 12, 2024

    @jeromelaban
    Member

    The main problem here is the dependencies that HR workspace is using, and assemblies alignment is not working properly in that context. (e.g. System.Runtime 8.0.0.0 for a net9 SDK and vice-versa).

  5. Youssef1313 commented on Jul 8, 2024

    @Youssef1313
    MemberAuthor

    Fixed in #17278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/hot-reloaddifficulty/tbdkind/bugtriage/untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions