C
C#13mo ago
Brongle

❔ System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Runtime, Version=6.0.0.0

Hey all I am designing a win forms application and when trying to test a build I am greeted with the following err. I havve tried to manually set the targeted version to 6.0.0 but to no avail.
17 Replies
ZacharyPatten
ZacharyPatten13mo ago
please run a dotnet --info from command line
reflectronic
reflectronic13mo ago
I havve tried to manually set the targeted version to 6.0.0 but to no avail.
how exactly did you do this
Brongle
Brongle13mo ago
So some more context i have a class library called esportCenter that runs on Net core 6.0
reflectronic
reflectronic13mo ago
are you trying to use it from a .NET Framework program
Brongle
Brongle13mo ago
The UI library runs on framework 4.7.1
reflectronic
reflectronic13mo ago
because that will not work
Brongle
Brongle13mo ago
Ooolay That makes sense Sorry fairly new to c#
reflectronic
reflectronic13mo ago
is this library your library or did someone give it to you
Brongle
Brongle13mo ago
Yes i designed it and the classes within
reflectronic
reflectronic13mo ago
there are two options here, you can make the library use .NET 4.7.1 or you can make the UI run on .NET 6
Brongle
Brongle13mo ago
Can i make a winform UI run on net core?
reflectronic
reflectronic13mo ago
yes
Brongle
Brongle13mo ago
Oh cool Thank you, im not behind my desk now but ill try this when i can
reflectronic
reflectronic13mo ago
thee is an official tool that does an automatic conversion https://learn.microsoft.com/en-us/dotnet/core/porting/upgrade-assistant-overview
Overview of the .NET Upgrade Assistant - .NET Core
Introducing the .NET Upgrade Assistant tool that helps upgrade .NET, .NET Core, or .NET Framework apps to the latest version of .NET.
Brongle
Brongle13mo ago
God bless Thank you So plan is upgrade the framework UI to core using that tool? Or just recreate the UI class from scratch and copy paste
reflectronic
reflectronic13mo ago
i mean, the tool is less work and gets you to the same place
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ streaming an IAsyncEnumerable<string> from complex typehey. i have a minimal api that looks like this: ```cs public static async IAsyncEnumerable<string> A❔ Assign result from await to a variableIs there a difference between those two calls? `var awaitable = await GetObject(); otherObject.IntP❔ ✅ Prints System.Func`1[System.Int32] instead of actual int.I'm trying to return a private field member variable and instead of giving me the actual integer val❔ Exception trying to run code from a .NET Framework 4.5.2 on .NET 6 projectHi, I have a new project using .NET 6, but I need to call a method in a project using .NET Framewo✅ Hosting web app with SQL Server for free/minimal cost?Hello there, I was wondering if anyone knew any cloud/hosting providers that allow hosting an ASP.N❔ WinUI3: Restoring Window Size on relaunchIn UWP and WinUI2, it would automatically relaunch to the last width/height of the application, but ❔ ✅ custom mapper and resolversHello, I've been trying to use automapper for a while, but now I've decided to just replace it with ❔ Best way to convert rgb to ConsoleColor?Hey, so I have a Console App, where I want to transition between 2 colors( and output the color as b❔ How to acquire license for wpf applicationI made wpf application and I do not know how to license it. It is uploaded regardless but I think t❔ fastest way to add a datatable to databaseHello, so I was doing a task and my final step was adding a datatable to a database. I did connectio