Click here to Skip to main content
15,883,901 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to check Persian date format? Pin
Alex Dunlop7-Aug-21 20:37
Alex Dunlop7-Aug-21 20:37 
QuestionNotifications in win c# Pin
Member 149572104-Aug-21 17:35
Member 149572104-Aug-21 17:35 
AnswerRe: Notifications in win c# Pin
OriginalGriff4-Aug-21 19:43
mveOriginalGriff4-Aug-21 19:43 
QuestionError when importing a class dll Pin
Alex Dunlop3-Aug-21 22:42
Alex Dunlop3-Aug-21 22:42 
AnswerRe: Error when importing a class dll Pin
Richard Deeming3-Aug-21 23:44
mveRichard Deeming3-Aug-21 23:44 
GeneralRe: Error when importing a class dll Pin
Alex Dunlop4-Aug-21 0:54
Alex Dunlop4-Aug-21 0:54 
GeneralRe: Error when importing a class dll Pin
Alex Dunlop4-Aug-21 8:44
Alex Dunlop4-Aug-21 8:44 
GeneralRe: Error when importing a class dll Pin
Richard Deeming4-Aug-21 22:05
mveRichard Deeming4-Aug-21 22:05 
Yes, targeting can be quite complicated these days.

If the library targets .NET Framework, then it can be referenced by applications targeting any version of .NET Framework greater than or equal to the target version. But it cannot be referenced by applications targeting .NET Core or .NET 5/6.

If the library targets .NET Standard 2.0, then it can be referenced by applications targeting .NET Framework 4.6.1 or later, .NET Core 2.0 or later, or .NET 5/6. But you won't be able to use the new features introduced in .NET Core 3.0 or .NET 5/6.

If the library targets .NET Standard 2.1, then it can be referenced by applications targeting .NET Core 3.0 or later, or .NET 5/6. It cannot be referenced by applications targeting any version of .NET Framework. You will be able to use the new features introduced in .NET Core 3.0, but not those introduced in .NET Core 3.1 or .NET 5/6.

If the library targets .NET Core, then it can be referenced by that version of .NET Core, later versions of .NET Core, or .NET 5/6. It cannot be referenced by applications targeting any version of .NET Framework.

If it targets .NET 5, then it can only be referenced by applications targeting .NET 5/6.

This is Microsoft's idea of simplifying things! Sigh | :sigh:

.NET Standard | Microsoft Docs[^]

Oh, and there's also the option of multi-targeting, in case the above options weren't complicated enough:
Multi-targeting for NuGet Packages in your project file | Microsoft Docs[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

AnswerRe: Error when importing a class dll Pin
Richard MacCutchan4-Aug-21 1:31
mveRichard MacCutchan4-Aug-21 1:31 
GeneralRe: Error when importing a class dll Pin
Richard Andrew x644-Aug-21 7:29
professionalRichard Andrew x644-Aug-21 7:29 
GeneralRe: Error when importing a class dll Pin
Richard MacCutchan4-Aug-21 7:32
mveRichard MacCutchan4-Aug-21 7:32 
GeneralRe: Error when importing a class dll Pin
Bohdan Stupak6-Aug-21 5:06
professionalBohdan Stupak6-Aug-21 5:06 
AnswerRe: Error when importing a class dll Pin
BillWoodruff8-Aug-21 20:30
professionalBillWoodruff8-Aug-21 20:30 
SuggestionRe: Error when importing a class dll Pin
Richard Deeming8-Aug-21 21:20
mveRichard Deeming8-Aug-21 21:20 
GeneralRe: Error when importing a class dll Pin
BillWoodruff8-Aug-21 23:28
professionalBillWoodruff8-Aug-21 23:28 
QuestionFloating point conversion with error Pin
Ismael Oliveira 20211-Aug-21 13:14
Ismael Oliveira 20211-Aug-21 13:14 
AnswerRe: Floating point conversion with error Pin
OriginalGriff1-Aug-21 19:12
mveOriginalGriff1-Aug-21 19:12 
GeneralRe: Floating point conversion with error Pin
Ismael Oliveira 20212-Aug-21 15:45
Ismael Oliveira 20212-Aug-21 15:45 
AnswerRe: Floating point conversion with error Pin
Richard MacCutchan1-Aug-21 21:51
mveRichard MacCutchan1-Aug-21 21:51 
GeneralRe: Floating point conversion with error Pin
Ismael Oliveira 20212-Aug-21 15:59
Ismael Oliveira 20212-Aug-21 15:59 
AnswerRe: Floating point conversion with error Pin
jsc422-Aug-21 1:21
professionaljsc422-Aug-21 1:21 
GeneralRe: Floating point conversion with error Pin
Ismael Oliveira 20212-Aug-21 15:58
Ismael Oliveira 20212-Aug-21 15:58 
QuestionMake a control invisible Pin
Ismael Oliveira 202131-Jul-21 14:56
Ismael Oliveira 202131-Jul-21 14:56 
AnswerRe: Make a control invisible Pin
Gerry Schmitz31-Jul-21 17:03
mveGerry Schmitz31-Jul-21 17:03 
AnswerRe: Make a control invisible Pin
OriginalGriff31-Jul-21 19:19
mveOriginalGriff31-Jul-21 19:19 

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.