Skip to content

Framework mismatch resolution #4435

Closed
Closed

Description

@itg-assistant

Gerhard Hofmann asked 2024-01-05 13:00:58 UTC

Happy new year everybody,

just want to share this with you. After upgrading to net8.0 my project would not compile any more:

Error CS1705 System.Runtime, Version=8.0.0.0  which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=4.1.2.0 (net48)

This error stems from a referenced DLL compiled against net8.0.

So I added a configurtaion "Design" to my solution with target frameworks net48 and net8.0. All other configurations target net8.0 only (in *.csproj):

net48;net8.0 net8.0 ...

Just start visual studio in "Design" to use the visual designer and compile or publish, say, in "Release". Not perfect but it works. Maybe there is a better solution?

Hopefully net48 for Wisej is history very soon.

Happy coding and don't be afraid to get your hands dirty.

Cheers, Gerhard

Activity

  1. itg-assistant commented on Jun 16, 2026

    @itg-assistant
    Author

    Luca answered 2024-01-05 13:10:42 UTC

    .NET 48 is widely used by a large number of projects in production. We don’t see any reason not to keep supporting it for the foreseeable future. There are many systems that cannot work on NET core due to a lack of a proper implementation.

    Wisej.NET 4 will include a designer for NET Core.

    This issue doesn’t appear to identify any bug. Multitargeting and editing csproj js is normal.

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

    SuggestionAn improvement to something that already works.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions