Click here to Skip to main content
15,567,573 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to check Persian date format? Pin
Alex Dunlop7-Aug-21 21:37
Alex Dunlop7-Aug-21 21:37 
QuestionNotifications in win c# Pin
Member 149572104-Aug-21 18:35
Member 149572104-Aug-21 18:35 
AnswerRe: Notifications in win c# Pin
OriginalGriff4-Aug-21 20:43
mvaOriginalGriff4-Aug-21 20:43 
QuestionError when importing a class dll Pin
Alex Dunlop3-Aug-21 23:42
Alex Dunlop3-Aug-21 23:42 
AnswerRe: Error when importing a class dll Pin
Richard Deeming4-Aug-21 0:44
mveRichard Deeming4-Aug-21 0:44 
GeneralRe: Error when importing a class dll Pin
Alex Dunlop4-Aug-21 1:54
Alex Dunlop4-Aug-21 1:54 
GeneralRe: Error when importing a class dll Pin
Alex Dunlop4-Aug-21 9:44
Alex Dunlop4-Aug-21 9:44 
GeneralRe: Error when importing a class dll Pin
Richard Deeming4-Aug-21 23:05
mveRichard Deeming4-Aug-21 23: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 2:31
mveRichard MacCutchan4-Aug-21 2:31 
GeneralRe: Error when importing a class dll Pin
Richard Andrew x644-Aug-21 8:29
professionalRichard Andrew x644-Aug-21 8:29 
GeneralRe: Error when importing a class dll Pin
Richard MacCutchan4-Aug-21 8:32
mveRichard MacCutchan4-Aug-21 8:32 
GeneralRe: Error when importing a class dll Pin
Bohdan Stupak6-Aug-21 6:06
professionalBohdan Stupak6-Aug-21 6:06 
AnswerRe: Error when importing a class dll Pin
BillWoodruff8-Aug-21 21:30
professionalBillWoodruff8-Aug-21 21:30 
SuggestionRe: Error when importing a class dll Pin
Richard Deeming8-Aug-21 22:20
mveRichard Deeming8-Aug-21 22:20 
GeneralRe: Error when importing a class dll Pin
BillWoodruff9-Aug-21 0:28
professionalBillWoodruff9-Aug-21 0:28 
QuestionFloating point conversion with error Pin
Ismael Oliveira 20211-Aug-21 14:14
Ismael Oliveira 20211-Aug-21 14:14 
AnswerRe: Floating point conversion with error Pin
OriginalGriff1-Aug-21 20:12
mvaOriginalGriff1-Aug-21 20:12 
GeneralRe: Floating point conversion with error Pin
Ismael Oliveira 20212-Aug-21 16:45
Ismael Oliveira 20212-Aug-21 16:45 
AnswerRe: Floating point conversion with error Pin
Richard MacCutchan1-Aug-21 22:51
mveRichard MacCutchan1-Aug-21 22:51 
GeneralRe: Floating point conversion with error Pin
Ismael Oliveira 20212-Aug-21 16:59
Ismael Oliveira 20212-Aug-21 16:59 
AnswerRe: Floating point conversion with error Pin
jsc422-Aug-21 2:21
professionaljsc422-Aug-21 2:21 
GeneralRe: Floating point conversion with error Pin
Ismael Oliveira 20212-Aug-21 16:58
Ismael Oliveira 20212-Aug-21 16:58 
QuestionMake a control invisible Pin
Ismael Oliveira 202131-Jul-21 15:56
Ismael Oliveira 202131-Jul-21 15:56 
AnswerRe: Make a control invisible Pin
Gerry Schmitz31-Jul-21 18:03
mveGerry Schmitz31-Jul-21 18:03 
AnswerRe: Make a control invisible Pin
OriginalGriff31-Jul-21 20:19
mvaOriginalGriff31-Jul-21 20: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.