C
C#2y 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
ZacharyPatten2y ago
please run a dotnet --info from command line
reflectronic
reflectronic2y 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
BrongleOP2y ago
So some more context i have a class library called esportCenter that runs on Net core 6.0
reflectronic
reflectronic2y ago
are you trying to use it from a .NET Framework program
Brongle
BrongleOP2y ago
The UI library runs on framework 4.7.1
reflectronic
reflectronic2y ago
because that will not work
Brongle
BrongleOP2y ago
Ooolay That makes sense Sorry fairly new to c#
reflectronic
reflectronic2y ago
is this library your library or did someone give it to you
Brongle
BrongleOP2y ago
Yes i designed it and the classes within
reflectronic
reflectronic2y 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
BrongleOP2y ago
Can i make a winform UI run on net core?
reflectronic
reflectronic2y ago
yes
Brongle
BrongleOP2y ago
Oh cool Thank you, im not behind my desk now but ill try this when i can
reflectronic
reflectronic2y 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
BrongleOP2y 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
reflectronic2y ago
i mean, the tool is less work and gets you to the same place
Accord
Accord2y 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