.net-standard Questions

4

Solved

I'm converting a .NET Framework library to .NET Standard 2.0, because I need to use it from both an old .NET Framework project and a modern .NET 5 project In the original library, I use the Protect...
Thousandth asked 23/11, 2021 at 14:22

18

Solved

I have a .NET Standard 1.4 class library that references the System.ComponentModel.Annotations (4.3.0) NuGet package. I'm then referencing this class library from a .NET Framework 4.6.2 test proje...
Individualist asked 18/5, 2017 at 16:25

2

Solved

The following experimental codes/projects are using netcore 2.0 and netstandard 2.0 in VS2017. Let's say I have two versions of a third party dll v1.0.0.0 and v2.0.0.0, which contains only one clas...
Chandra asked 8/8, 2018 at 4:28

25

Solved

I have just converted my PCL library to a new .Net Standard library and I have some Yellow Warning triangles on my Dependencies shown below: During the conversion it brought all nuget packages a...
Rompers asked 19/10, 2017 at 15:21

3

Solved

I'm trying to get .Net Framework and NetStandard assemblies to communicate with each other (to learn what is possible). I currently have four projects, two Framework 4.5.2 projects and two NetStand...
Boaten asked 24/7, 2017 at 23:46

4

Solved

I'm developing a .net Standard C# class library which automatically outputs a NuGet package whenever I build it. I am consuming this NuGet package with an ASP.NET Core application. If I update the ...
Equisetum asked 15/8, 2019 at 10:3

1

We're using the StackExchange.Redis client. We are also using Sentinel which tells us when the Redis master changes. Since we've create our connection (as a Lazy<IConnectionMultiplexer> as re...
Studer asked 21/8, 2019 at 13:16

15

Solved

In Visual Studio, there are at least three different types of class libraries you can create: Class Library (.NET Framework) Class Library (.NET Standard) Class Library (.NET Core) While the firs...
Midship asked 21/3, 2017 at 22:34

1

I have a netstandard2.0 library that is used by net5.0 applications One of packages used by the library references Microsoft.Bcl.AsyncInterfaces 5.0.0 But I get this warning for every application: ...
Bola asked 1/12, 2021 at 9:0

4

I'm porting a project targeting net472 to netstandard. The last System.Web dependency I'm stuck with is HttpServerUtility.UrlTokenEncode(Byte[]). I found Microsoft.AspNetCore.WebUtilities, which c...
Wun asked 7/6, 2018 at 0:27

3

Solved

In Visual Studio 2019 Advanced Build settings, C# 8 does not appear to be available for a .NET Framework project, only (as in the picture below) for a .NET Core 3.0 project: Does C# 8 support th...
Edmond asked 18/6, 2019 at 14:31

2

Solved

I'm kind of new to .NET area. There is big confusion about all these which I really couldn't figure out. I searched a lot but couldn't find any simple and straight forward explanation for .NET (als...
Induna asked 23/7, 2023 at 12:48

6

Error message Program.cs(1,14): error CS0234: The type or namespace name 'Drawing' does not exist in the namespace 'System' (are you missing an assembly reference? Is it possible to fix that? Or ...
Kofu asked 8/6, 2017 at 6:40

21

Solved

I have spent the better part of a few hours trying to find a way to auto-increment versions in a .NETCoreApp 1.1 (Visual Studio 2017). I know the the AssemblyInfo.cs is being created dynamically i...

3

Solved

I am using Entity Framework Core in an Xamarin.iOS application. In my core project that contains code (.netstandard 2.0) that is shared between the iOS application and other applications, I would...
Timbering asked 24/1, 2019 at 23:35

12

Solved

This may be somewhat related to Pass ILogger or ILoggerFactory to constructors in AspNet Core?, however this is specifically about Library Design, not about how the actual application that uses tho...
Moral asked 15/7, 2018 at 4:8

5

Solved

In .NET Core and .NET Standard projects, if you put files and folders within the project directory, they are automatically picked up by Visual Studio; essentially they are part of the project. Wha...
Theadora asked 2/4, 2017 at 21:37

4

Solved

I am calling a .net standard 2.0 library from a framework 4.7.2 test project sucessfully. If I take my .net standard 2.0 dll (SBD.Standard) and create a new winforms project that references it th...

3

Solved

I tried to add a new Class library(.Net Standard) in Visual studio 2019. But I get this error message: Unable to find package NETStandard.Library. No packages exist with this id in source(s): Micr...
Bowra asked 28/8, 2020 at 12:3

2

Using .Net Standard, is there a cross-platform way to get a process's parent process ID? Several SO questions and answers address how to do this in Windows-specific ways (e.g. How to get parent pro...
Unregenerate asked 7/12, 2017 at 15:7

2

Is there any way to combine a certificate and a key (both received separately as Base64 strings from a service) into a .pfx file using C#/.NET Standard programmatically? Using a tool is not an opti...
Talkathon asked 9/6, 2017 at 19:40

4

Solved

What's the equivalent of NamespaceManager in the new NET Standard Microsoft.Azure.ServiceBus? I've used WindowsAzure.ServiceBus to do things like count messages in a queue ... var namespaceManage...
Angelenaangeleno asked 10/1, 2018 at 16:12

2

Solved

I have multiple assemblies which include unit tests for a single .NET Standard 2.0 project. To thoroughly test my project I want the internal classes to be visible to both assemblies. Here is the p...
Parados asked 19/9, 2022 at 14:41

3

Solved

I am migrating the .netframework 4.7.2 class library to .netstandard 2.0 library. ConfigurationManager is used in the .netframework class library to read the app settings. Any alternative optio...
Freberg asked 30/4, 2020 at 17:22

1

Solved

I am getting different regex matches when running below sample with .netstandard2.0 and .net6.0 Code var stringToMatch = "sydney bogota berlin tokyo nairobi denver rio"; Console.WriteLine...
Applejack asked 26/8, 2022 at 9:32

© 2022 - 2025 — McMap. All rights reserved.