Questions tagged [.net-standard-2.0]
766 questions
0
votes
0 answers
How do I map a complex nested object to a simple object using Automapper?
I'm trying to consume Event Espresso 4 (EE4) REST API in my Xamarin forms app. The DTO that I receive (as JSON) from EE4 REST API is fairly complicated and I would like to flatten it into my "fairly simple" model that I will be using within the…

Noel
- 373
- 3
- 15
0
votes
2 answers
Trying to use KeyPress with arguments but don't know how to pass args correcly
I want the program to exit when I press Escape, the way it is right now, just close whenever a press anybutton.
Here is my code
game.KeyPress += (sender, e) => { game.Exit(); };
I using https://github.com/ppy/osuTK this as reference in my…
0
votes
1 answer
How to properly package and consume .NET Standard library with multiple runtimes on net472?
I am trying to make a multiplatform package for Python.NET, targeting .NET Standard 2.0, using this project.
I managed to create a NuGet package with the following structure:
ref
|- netstandard2.0
|- Python.Runtime.dll
runtimes
|- win
|- lib
|-…

LOST
- 2,956
- 3
- 25
- 40
0
votes
1 answer
unable to open database (sqlite with nhibernate) in .netstandard library project
I try to open a sqlite db from a .netstandard library project that is used by a xamarin forms project (uwp and android) I have only tried the uwp project and get a unable to open database exception
I have tried to use the path of the Personal folder…

Daniel
- 1
- 2
0
votes
1 answer
How to create a database from sql script using Entity Framework Core?
I am starting a project with EF Core, were the database already exists. I have the database structure as an sql script, that I would like to run every time I initialize the context, in order to have a fresh database every time I would run the…

Fábio
- 79
- 2
- 9
0
votes
0 answers
are there any alternatives to AppDomainSetup and CreateInstanceAndUnwrap for net-Standard2.0
Im trying to make my code compile in netStandard2.0 and cant get over this. AppDomain is supported but has limmited methods. And AppDomainSetup is not supported. i have the following code that right now is Net Framework 4.7.1 compatible. is there…

Camifonta
- 11
- 1
0
votes
1 answer
order by List of Guids position
I have the following:
var nodes = _nodeService.GetNodeChildren(id, nId);
var association = _nodeService.GetNodeOrder(id, nId);
var joinedNodes = nodes.Join(association,
n => n.Id,
a => a,
(n, a) => new {nodes = n, association = a};
var…

lemunk
- 2,616
- 12
- 57
- 87
0
votes
2 answers
Application dependency not found while release by the build agent
My .NETStandard library works fine locally on Visual Studio. But, when I release the WebApi containing my .NETStandard library the release proces failed on the EF Core Migrations step.
I use the Deploy Entity Framework Core Migrations release task…

Marcel Beeker
- 163
- 1
- 13
0
votes
1 answer
How to pack all the dependencies of a netstandard2.0 project together into one package?
I have a tool that supports plugin API - it loads the given assembly at runtime.
Now I am implementing a plugin for this tool. The target framework is .NET Standard 2.0. The plugin depends on two other NuGet packages.
I want to create a NuGet…

mark
- 59,016
- 79
- 296
- 580
0
votes
1 answer
.Net 4.5 Project with Reference to .Net 4.5 and netstandard2.0 Project pulls wrong version but works
I have a class library that I've ported from .Net 4.5 to a new multi-target class library targeting .Net 4.5 and netstandard2.0. This all seems to work as expected.
However, my unit test library in the same solution is targeting .Net 4.5. When I…

Grant H.
- 3,689
- 2
- 35
- 53
0
votes
1 answer
Issue adding WCF Connected Service on .net Standard
I am using VS 2017. I created a class library project in .net standard. I then added connected service using a URL (project -> right click -> add -> connected service). When the service is detected, I used default settings and clicked finish.
Unable…

Ayush
- 485
- 2
- 6
- 19
0
votes
1 answer
Where is System.Diagnostics.Debug.Listeners property in netstandard 2?
The ms doc says it should exist a Listeners property in Debug.Diagnostics.Debug in netstandard 2, but this is not the case in a real project. The Listeners property is undefined.
I tryed adding the System.Diagnostics.Debug nuget with no luck.
Any…

Softlion
- 12,281
- 11
- 58
- 88
0
votes
1 answer
System Info from Universal Windows Platform or .NET Standard 2.0 class Library
I am developing a UWP app with .NET Standard class library for Utility logic.
In this application I need to collect some metadata related to operating PC
I have come up with following structure to read the data
public static void…

HaBo
- 13,999
- 36
- 114
- 206
0
votes
1 answer
"MapView not found in Esri.ArcGISRuntime.Xamarin.Forms" error Xamarin Forms iOS
I am using ArcGIS Runtime 100.4.0 in my Xamarin forms solution which is consist of
Android Project
iOS
.Net Standard 2 project (shared logic used by android and ios)
My code is very simple and it only tries to display a map. I used the code from…

Ehsan
- 357
- 5
- 22
0
votes
0 answers
Resolving .net standard 2.0 with unity (DI) in .NET 4.7.2
We are currently working with a large solution that contains a WCF project (.NET Framework 4.7.2) along with multiple .NET Standard 2.0 libraries.
We're trying to register these libraries with Unity (DI). Loading the libraries in the container…

Sreini
- 80
- 7