Click here to Skip to main content
15,901,205 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: hehe (no offense) Pin
Mycroft Holmes28-Oct-19 12:43
professionalMycroft Holmes28-Oct-19 12:43 
GeneralRe: hehe (no offense) Pin
Super Lloyd28-Oct-19 15:13
Super Lloyd28-Oct-19 15:13 
GeneralRe: hehe (no offense) Pin
GuyThiebaut28-Oct-19 22:37
professionalGuyThiebaut28-Oct-19 22:37 
GeneralWSO CCC OTD 2019-10-28 Pin
OriginalGriff27-Oct-19 22:47
mveOriginalGriff27-Oct-19 22:47 
GeneralRe: WSO CCC OTD 2019-10-28 Pin
Abbas A. Ali27-Oct-19 22:51
professionalAbbas A. Ali27-Oct-19 22:51 
GeneralRe: WSO CCC OTD 2019-10-28 - we have a winner! Pin
OriginalGriff27-Oct-19 22:54
mveOriginalGriff27-Oct-19 22:54 
GeneralRe: WSO CCC OTD 2019-10-28 - we have a winner! Pin
Abbas A. Ali27-Oct-19 23:59
professionalAbbas A. Ali27-Oct-19 23:59 
GeneralCore, Standard ... what a mess Pin
BillWoodruff27-Oct-19 11:20
professionalBillWoodruff27-Oct-19 11:20 
Recently a demon made me create a Core project, and then attempt to use it in a WinForms app. And, yes, I altered the project files of both to enable C# 8.

The Core project does nothing but define a stupid little Class with one method that writes to the Console..

So, okay, I add a reference to the Core project dll to the WinForm app. I attempt to use it ... well, I m not surprised it didn't work, but was surprised to get a file-not-found error:
Quote:
System.IO.FileNotFoundException HResult=0x80070002 Message=Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Source=TestUsingCore
StackTrace: at TestUsingCore.Form1.Form1_Load(Object sender, EventArgs e) in ...
So, I set out to do some research, came across this article by Scott Hanselmann: [^].

I have great respect for Scott, and have learned a lot from his writing over the years; however, this article, titled "How to reference a .NET Core library in WinForms - Or, .NET Standard Explained," ignores the question in the title and ends up recommending ".NET Standard" as if that explains anything.

Was Scott avoiding the simple answer that you cannot use a Core project/class in a WinForm app for some reason ? Well, okay, Scott wrote that in June, 2017: that's decades ago in .NET's evolutionary time-scale.

To turn my headache into a full-on migraine, I then re-read this article: "How to port desktop applications to .NET Core 3.0" [^].

Whaddya think ?
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali

GeneralRe: Core, Standard ... what a mess Pin
Ravi Bhavnani27-Oct-19 11:42
professionalRavi Bhavnani27-Oct-19 11:42 
AnswerRe: Core, Standard ... what a mess PinPopular
Super Lloyd27-Oct-19 13:48
Super Lloyd27-Oct-19 13:48 
GeneralRe: Core, Standard ... what a mess Pin
BillWoodruff27-Oct-19 21:01
professionalBillWoodruff27-Oct-19 21:01 
GeneralRe: Core, Standard ... what a mess Pin
Super Lloyd28-Oct-19 1:49
Super Lloyd28-Oct-19 1:49 
GeneralRe: Core, Standard ... what a mess Pin
Mike Marynowski28-Oct-19 5:16
professionalMike Marynowski28-Oct-19 5:16 
GeneralRe: Core, Standard ... what a mess Pin
Super Lloyd28-Oct-19 12:30
Super Lloyd28-Oct-19 12:30 
GeneralRe: Core, Standard ... what a mess Pin
Super Lloyd27-Oct-19 16:43
Super Lloyd27-Oct-19 16:43 
GeneralRe: Core, Standard ... what a mess Pin
Mike Marynowski28-Oct-19 5:16
professionalMike Marynowski28-Oct-19 5:16 
GeneralRe: Core, Standard ... what a mess Pin
BillWoodruff27-Oct-19 21:01
professionalBillWoodruff27-Oct-19 21:01 
GeneralRe: Core, Standard ... what a mess Pin
peterkmx28-Oct-19 4:26
professionalpeterkmx28-Oct-19 4:26 
GeneralRe: Core, Standard ... what a mess Pin
Sander Rossel27-Oct-19 21:48
professionalSander Rossel27-Oct-19 21:48 
GeneralRe: Core, Standard ... what a mess Pin
Reelix28-Oct-19 2:02
Reelix28-Oct-19 2:02 
GeneralRe: Core, Standard ... what a mess Pin
adambl28-Oct-19 3:00
professionaladambl28-Oct-19 3:00 
GeneralRe: Core, Standard ... what a mess Pin
Reelix28-Oct-19 3:56
Reelix28-Oct-19 3:56 
GeneralRe: Core, Standard ... what a mess Pin
Sander Rossel28-Oct-19 21:45
professionalSander Rossel28-Oct-19 21:45 
GeneralRe: Core, Standard ... what a mess Pin
Davyd McColl28-Oct-19 2:57
Davyd McColl28-Oct-19 2:57 
GeneralRe: Core, Standard ... what a mess Pin
Jacquers28-Oct-19 3:01
Jacquers28-Oct-19 3:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   502 votes