Questions tagged [.net-standard-2.0]

766 questions
0
votes
1 answer

How to get full response from IMAP server

I have to implement IMAP to use it in my own email client via C# and .NET Standard 2.0. During the task, I can use TcpClient and SslStream classes. The problem lies in getting response from the server. I can't find a common solution how to identify…
VUser
  • 1
0
votes
0 answers

Including libraries from Microsoft.Extensions namespace causes exceptions in other Nuget packages

I've run into a really weird issue with Nuget packages in .net standard. I've got 2 projects - a .net standard 2.0 library and a .net core 2.1 console application. If I include anything from the Microsoft.Extensions namespace in the .net standard…
Michael Brown
  • 1,585
  • 1
  • 22
  • 36
0
votes
1 answer

Updated but packages from NETStandard.Library.2.0.2 could not be found

I have the latest VS 2017 Version 15.6.6 and I've updated to NETStandard.Library.2.0.2, twice and all is fine until after closing/reopening VS to keep finding out they can't be found: but, checking with the Source Control Explorer, all the files…
VcDeveloper
  • 393
  • 4
  • 12
0
votes
1 answer

Xamarin Forms AppCenter SDK Namespace Error

I am trying to add the AppCenter SDK functionality to my Xamarin Forms app (iOS and Android) and am following the documentation from here. I am experiencing an issue with the namespaces not seeming to line up quite right. Here is a screenshot with…
0
votes
0 answers

Using a .net core entity framework with .net 4.6.1

i was wondering if it is possible to seperate the database and entity framework to a new .net-core project? i have a simple Solution like this Project database.core (.net standard 2.0) Project database.tester.net461 (.net Framework 4.6.1) The…
0
votes
2 answers

System.Runtime.CompilerServices.Unsafe while running .Net Standard project in Xamarin

i am creating an app in xamarin using .Net Standard so far i have installed following Nuget packages in my solution PCL/.Net Standard packages Android packages Min SDK level is Android 5.1 and max is Android Oreo 8.1. When i run the app in…
Hunt
  • 8,215
  • 28
  • 116
  • 256
0
votes
1 answer

Liblog .NetStandard 2.0

I recently used Liblog solution in my project to get logging abstraction. Everything is working fine but i have one small question. My project is .Net Standard 2.0, hence i defined a compiler symbol "LIBLOG_PORTABLE" After adding this, i am not able…
K D
  • 5,889
  • 1
  • 23
  • 35
0
votes
1 answer

errors while compiling .Net Standard 2.0 based xamarin project

i am trying to create a new project in xamarin forms based on .Net Standard 2.0. When i am compiling the project i am getting around 4k error in android build Here is errors in xamarin.android My compile sdk is the Android Oreo and here are the…
Hunt
  • 8,215
  • 28
  • 116
  • 256
0
votes
1 answer

Access a StorageFile embedded as a resource in a Net Standard 2.0 class libary from UWP

From UWP how do we access a file embedded as a resource in a .Net Standard 2 class library? The question How to access content from a Net Standard 2.0 class libary from UWP returns a stream. How do we return a StorageFile? The file is in a .Net…
Vague
  • 2,198
  • 3
  • 18
  • 46
0
votes
1 answer

VS2017 15.61.1 - Unable to call .net 4.6.1 class library function from Azure Functions (created using v2)

I am trying to reference a class library (Target Framework .Net Framework 4.6.1) from a Azure Function App project (created using Function App v2 template) with Target Framework as .Net Standard 2.0. The .net 4.6.1 class library has a nuget package…
0
votes
0 answers

Missing NetStatandard 2 after install my nuget package

I have a netstandard2 class library project, which contains some Roslyn analyzers. I'm trying to create NuGet package using a .nuspec and msbuild \t:pack command. All working find and i can create the nuget package easily. But as soon as i register…
Ali Foroughi
  • 4,540
  • 7
  • 42
  • 66
0
votes
1 answer

Xamarin Forms PCL to .NET Standard Upgrade - Seeing All NuGet Packages?

I have a Xamarin Forms app which was built with PCL. When installing NuGet packages I would see all packages installed in NuGet Explorer. Example Android Project: Xam.Plugin.Geolocator **5.0.0.187-beta** It might rely on the following…
aherrick
  • 19,799
  • 33
  • 112
  • 188
0
votes
0 answers

How to reference a DotnetStandard 2.0 library from another DotnetStandard library?

I have started a project to move some framework libraries targeting Dotnet 4.6.1 to DotnetStandard. I am using VS2017. I started with a relatively simple library which did not have any nuget references and only couple of classes. The approach I took…
anir_d
  • 64
  • 7
0
votes
1 answer

How to pass data from a Viewmodel to another Viewmodel using MVVlight

I'm currently working on a Xamarin.forms project using .NET Standard as code sharing strategy. This app use multiple pages/views. I try to use the MVVM pattern by using the MvvmLightLibsStd10 library. I already successfully setup the MVVM…
appyGeek
  • 45
  • 1
  • 8
0
votes
1 answer

Template 10 and netstandard 2.0

I wonder if template 10 is compatible with netstandard2.0. I have a very simple library listed below: using Microsoft.EntityFrameworkCore; using System; using System.ComponentModel.DataAnnotations; namespace TransactionModel { public class…