❔ 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
please run a
dotnet --info
from command lineI havve tried to manually set the targeted version to 6.0.0 but to no avail.how exactly did you do this
So some more context i have a class library called esportCenter that runs on Net core 6.0
are you trying to use it from a .NET Framework program
The UI library runs on framework 4.7.1
because that will not work
Ooolay
That makes sense
Sorry fairly new to c#
is this library your library or did someone give it to you
Yes i designed it and the classes within
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
Can i make a winform UI run on net core?
yes
Oh cool
Thank you, im not behind my desk now but ill try this when i can
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.
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
i mean, the tool is less work and gets you to the same place
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.