.net-standard-2.0 Questions
6
Solved
I've installed Visual Studio 2017. I have a class library in the new .NET Standard format, which is able to be used by both .NET Framework and .NET Core. But when I go to Add… Reference… Assemblies...
Psycho asked 18/1, 2018 at 14:53
3
Solved
I'm writing an MVC website using ASP.NET Core 2.0.
In the ASP.NET Core project (let's call it Web), I reference a .NET Standard 2 project in the same solution (let's call it Service). The Service ...
Babiche asked 12/10, 2017 at 11:56
3
Solved
I am using Visual Studio for Mac, my application is written, it does what I want. The user's target platform is OSX. It relies on 2 Nuget Packages with their own dependencies, specifically:
NetMQ...
Kowtow asked 19/10, 2017 at 12:26
2
I was trying to render rdlc reports in .net core 2.0 and found System.Web is not yet available in .net core. So I started a separate .net standard 2.0 project with in the same solution for the task...
Finer asked 3/4, 2018 at 4:44
8
Solved
I was wondering if I could set-up my EntityFrameworkCore in a .NET Standard 2.0 project easily. I was following this Tutorial but it requires either .NET Core or Framework.
When I got to this step...
Discography asked 7/2, 2018 at 22:0
2
Trying to compile this sample of code:
var c = new CSharpCodeProvider();
var cp = new CompilerParameters();
var className = $"CodeEvaler_{Guid.NewGuid().ToString("N")}";
// doesn't work with or wi...
Jeep asked 4/4, 2018 at 15:55
4
Can't use System.Configuration.Configuration manager in a .NET Standard2.0 library on .NET FX4.6
I have an assembly created in NetStandard2.0. It reads AppSettings using System.Configuration.ConfigurationManager. I have installed nuget package of System.Configuration.ConfigurationManager with ...
Rufus asked 22/9, 2017 at 8:57
4
Solved
I have a reference to a .Net Standard 2.0 library that requires Microsoft.AspNet.WebApi.Client 5.2.4. This has a lot of dependencies that need to be redirected to use newer versions.
To avoid pack...
Striped asked 25/2, 2018 at 3:45
1
I get this exception on the client:
Grpc.Core.RpcException: 'Status(StatusCode="Unavailable", Detail="failed to connect to all addresses", DebugException="Grpc.Core.I...
Olden asked 22/11, 2020 at 5:36
4
Solved
Its really hard to find any information on IAsyncEnumerable, other than a few mentions in the 'What's New c# 8.0' articles. Trying to use it in Visual Studio 2019 with netstandard 2.0 and C# 8 enab...
Intersperse asked 24/4, 2019 at 2:58
0
I have a program to discover clients on network, The class libraries which responsible for the discovery are .net standard 2. It works perfect on windows machines but now i need to run it on linux ...
Thornberry asked 23/7, 2020 at 6:22
2
Solved
IdentityModelEventSource has a property called ShowPII that means that Personally Identifiable Information will be added to the logs (in relation to security). This value is used to decide when to ...
Beetlebrowed asked 9/7, 2020 at 17:3
1
Setup
Say I have a .Net Standard 2.0 class library project and I add a Nu NuGet package that is compatible with .Net Standard 2.0 to it.
I then reference that class library project from both a .N...
Humiliation asked 5/6, 2020 at 18:32
3
Solved
In Visual studio 2017, Go to Implementation for .net standard library not work?
Go to Implementation for .net core library work fine. but for .net standard throw
The symbol has no implementatio...
Prototrophic asked 8/12, 2018 at 5:23
6
The code runs in .NET Standard 2.0. I have a constructor calling a method which will call an Azure function like this:
public ChatViewModel(IChatService chatService)
{
Task.Run(async () =>
{
...
Friedafriedberg asked 18/9, 2019 at 19:48
3
Solved
I have a dotnet core library, a framework 4.7.2 library and a vb6 application.
I want to write a common library for them all to access and so choose .netstandard2.0
I tried a the 4.7.2 framework ...
Gorden asked 5/3, 2020 at 8:7
2
Solved
There's a really cool IHttpClientFactory feature in the new ASP.NET Core 2.1
https://www.hanselman.com/blog/HttpClientFactoryForTypedHttpClientInstancesInASPNETCore21.aspx
I'm trying to use this f...
Gal asked 25/4, 2018 at 17:20
2
Solved
I am using Visual Studio 2017. I created a .NET Standard library (let this library be Lib1) project with two Target frameworks, netstandard2.0 and net46. Then I have another two projects... one is ...
Hopple asked 16/7, 2018 at 14:41
3
Solved
I am writing a .Net Standard 2.0 library that will be used by a binary PowerShell module. The library will be basically an API client with a lot of classes for dealing with the JSON responses. Prio...
Melodee asked 27/2, 2020 at 15:42
6
Solved
I use System.Data.SqlClient Version 4.4.3 for all .NET Standard 2.0 class libraries in my ASP.NET Core 2.0 project. Why do I get
Could not load file or assembly 'System.Data.SqlClient, Versio...
Goss asked 22/3, 2018 at 21:59
2
Solved
I know that there is a way to conditionally compile for target frameworks eg #if net461 ....#elif ....
But is there a way to conditionally compile for specific os
Like target _os_MAC or target_os_...
Rufford asked 19/4, 2018 at 1:23
1
Solved
We are generating some self-signed certificates for testing using BouncyCastle, but the code throws an exception when we try to add a private key to the certificate. Here's the code in question:
pr...
Withal asked 18/1, 2020 at 0:32
2
Solved
Bear with me - this is an unusual scenario.
I have 4 projects in my solution. The top most project references the 3 other projects. None of the 3 other projects reference each other. So the archite...
Borough asked 13/1, 2020 at 14:17
3
Solved
I am looking at System.Security.Cryptography.ProtectedData.Protect
@ https://learn.microsoft.com/en-gb/dotnet/api/
as we are looking to port a library from .NET Framework 4.7 to .NET Standard 2.0...
Coshow asked 11/1, 2018 at 13:29
5
Solved
I cannot get Microsoft.EntityFrameworkCore 2.0 to work with NETStandard.Library 2.0
Error CS0433 The type 'AttributeUsageAttribute' exists in both 'System.Runtime, Version=4.1.0.0, Culture=neutr...
Staley asked 13/8, 2017 at 16:5
© 2022 - 2024 — McMap. All rights reserved.