Questions tagged [.net-standard-2.0]
766 questions
-1
votes
1 answer
Using Net Standard library for business logic
So .NET Standard is a formal specification of .NET APIs that are intended to be available on all .NET implementations. I have 2 applications. UI (.NET Core 3.1) and API (.NET 4.7.2).
My framework libraries are developed in .NET Standard 2.0 so I can…

LP13
- 30,567
- 53
- 217
- 400
-1
votes
1 answer
Dealing with an Ok() response from API endpoint
I'm dealing with an endpoint that someone else wrote a long time ago that the return looks like this:
return Ok();
On my side, with most of the other endpoints, I know how to deal with the return values. Like with a boolean return, I'll do…

dave reid
- 39
- 3
-1
votes
1 answer
TcpClient.ConnectAsync and TcpClient.BeginConnect always returning true in Xamarin.Forms Android Application
I have made an application in my Xamarin.Forms project where I can connect my Android phone to my Computer using a TCP connection. I have found while using both TcpClient.ConnectAsync and TcpClient.BeginConnect, they both return that…

Crimson
- 16
- 1
- 4
-1
votes
1 answer
Is there any equivalent to System.ComponentModel.Composition library in .Net Standard?
.Net has System.ComponentModel.Composition.dll for MEF. Is there any equivalent library present in .Net Standard?

Balaji Kanagaraju
- 558
- 1
- 6
- 10
-1
votes
1 answer
Using .netstandard2.0 NuGet with .NetFramework4.6.2
I have a project in .NetStandard2.0 and this has to be used as a nuget in 2 projects, one in .NetCore2.2 and the other in .NetFramework4.6.2. Installing the nuget in .NetCore2.2 had no issues, but when I'm trying to install this package in the other…

Kruti Joshi
- 384
- 3
- 16
-1
votes
2 answers
Migrating existing project from net framework 4.5.2 to dotnet core or netstandard
I'm porting my project from .net framework 4.5.2 to .net standard. I have read this article for guiding. As i see in that article, .net framework 4.5.2 should implement .net standard 1.2 or 1.3 (as in the table there are .net framework 4.5.1 and 4.6…

khoa_chung_89
- 975
- 9
- 25
-1
votes
1 answer
Could not load file or assembly 'netstandard, Version=2.0.0.0' only on remote server. Works on local
As our development team have upgraded our project to support a special form of caching, our .NET project no longer works when put in an environment that isn't a local machine. I tried to figure out how to install .NET standard on the server, but…

LaughingMan
- 640
- 1
- 9
- 18
-1
votes
1 answer
'Application' doesn't exist in System.Windows namespace (in library project)
I'm working on .net standard 2.0 library project for my solution.
It have to include this method:
public Task ShutdownAsync()
{
Application.Current.Shutdown();
}
Problem is it gives me an error:
The name 'Application' does not exist in the…

InfernumDeus
- 1,185
- 1
- 11
- 33
-1
votes
1 answer
Including dll to Visual Studio project
I need to read a mat file in a Visual Studio project. I'm using Visual Studio 2015 32bit on Windows 10 64 bit.
I have installed a MatFileHandler library using NuGet Package Manager and got a MatFileHandler.dll file but I don't know how to use it. In…

mrWalker
- 1
- 3
-1
votes
1 answer
.NET Standard vs .NET Framework
I'm getting the following error:
Project .EventPublisher is not compatible with net462 (.NETFramework,Version=v4.6.2). Project EventPublisher supports: netstandard2.0 (.NETStandard,Version=v2.0)
I thought (and accordingly to…

Ross Ellerington
- 149
- 1
- 12
-1
votes
1 answer
Is ServiceAccount available in .NET Standard 2.0?
.NET Core/Standard 2.0 now lets you reference old .NET Framework libraries. You can install them via NuGet, and the code will build. This works within limits though:
"The supported scenario is referencing a .NET Framework library that happens to…

Gigi
- 28,163
- 29
- 106
- 188
-2
votes
1 answer
Cannot Find ToUpper in System
I want to use the string.ToUpper() method in a .NET Standard Project that targets .NET Framework 4.6.1. The documentation says that the namespace should be System and that it should be compatible with .NET Standard 2.0 and Framework 4.6.1.
I have 7…

LizP
- 178
- 2
- 2
- 9
-2
votes
2 answers
Exception while referencing a .Net standard 2.0 project from WPF application
I am getting the following exception while referencing a .Net standard 2.0 project from WPF application developed using .Net framework 4.6.1 project
Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=2.0.0.0, Culture=neutral,…

Anil C
- 1,045
- 3
- 16
- 38
-3
votes
0 answers
Can you fake a windows class from another target framework?
I have a dotnet standard 2.0 project that implements an interface. I want to include a System.Windows.Point point in the interface, but I don't have access to System.Windows.Point in dotnet standard 2.0.
I have three projects:
a dotnet 6.0…

bwall
- 984
- 8
- 22
-3
votes
1 answer
File.Delete or File.Encrypt to wipe files?
is it possible to use either File.Delete or File.Encrypt to shred files? Or do both functions not overwrite the actual content on disk?
And if they do, does this also work with wear leveling of ssds and similar techniques of other storages? Or is…

K. Frank
- 1,325
- 1
- 10
- 19