.net-standard-2.0

Azure Cloud Service Classic with .NET Standard target

纵然是瞬间 提交于 2020-03-21 19:26:33
问题 Is there a way how to run Azure Cloud Service Classic project with worker role that targets .netstandard2.0? I have such project, but any time I try to build it I receive this error: Severity Code Description Project File Line Suppression State Error Project 'C:\path\to\project\src\Frontend\Frontend.csproj' targets '.NETStandard,Version=v2.0'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.0'. UserDiscoveryService C:\Program Files\dotnet\sdk\2.0.2\Sdks\Microsoft

Can't get .NET Standard 2.0 installed

。_饼干妹妹 提交于 2020-03-18 03:51:46
问题 I'm trying to create a .NET Standard 2.0 project, however on the project properties page it only has options up to .NET Standard 1.6. I went to Visual Studio > Tools > Extensions and Updates > Updates > Product Updates and upgraded Visual Studio 2017 to the latest version (15.5.4.) I also downloaded / installed the .Net Core 2.0 SDKs from both of these urls: https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.0-download.md https://www.microsoft.com/net/learn/get

How do I expose a .netstandard2.0 library with COM?

旧街凉风 提交于 2020-03-06 09:32:32
问题 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 both to access and so choose .netstandard2.0 I tried using the 4.7.2 framework wrapper library between .netstandard2.0 library and vb6. However I ran into assembly binding problems Looking at the docs I see In .NET Core, the process for exposing your .NET objects to COM has been significantly streamlined in comparison to .NET Framework. However no mention .netstandard2.0 I

Why doesn't AutogenerateBindingRedirects work for a Web.config in Visual Studio 2017

一世执手 提交于 2020-02-01 17:39:13
问题 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 package/dependency explosion I've updated the first PropertyGroup in the csproj file: <RestoreProjectStyle>PackageReference</RestoreProjectStyle> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> I'm expecting

Cant add IdentityServer4 to ASP.NET Framework 4.7.2 API OWIN

蓝咒 提交于 2020-01-14 03:04:47
问题 I'm trying to setup Identity Server 4 Auth server in ASP.NET Framework 4.7.2 WEB API, but I can't get it working. I'm not able to add appBuilder.UseIdentityServer() in the Startup class. My understanding is that the IdentityServer4 is compiled as DotNet Standard 2.0 and the ASP.NET Framework 4.7.2 is compatible with DotNet Standard 2.0, so IDS4 should be able to be used inside 4.7.2 project. Correct me if I'm wrong please. Is it possible to use IdentityServer4 like that? What am I doing wrong

Cant add IdentityServer4 to ASP.NET Framework 4.7.2 API OWIN

旧街凉风 提交于 2020-01-14 03:04:08
问题 I'm trying to setup Identity Server 4 Auth server in ASP.NET Framework 4.7.2 WEB API, but I can't get it working. I'm not able to add appBuilder.UseIdentityServer() in the Startup class. My understanding is that the IdentityServer4 is compiled as DotNet Standard 2.0 and the ASP.NET Framework 4.7.2 is compatible with DotNet Standard 2.0, so IDS4 should be able to be used inside 4.7.2 project. Correct me if I'm wrong please. Is it possible to use IdentityServer4 like that? What am I doing wrong

Visual Studio 2017 won't load .NET Framework references in .NET Standard library

回眸只為那壹抹淺笑 提交于 2020-01-11 04:46:27
问题 I've installed Visual Studio 2017. I have a class library in the new .NET Standard format (which is able to surface both .NET Framework and .NET Core). But when I go to "Add" - "Reference", then "Assemblies" - "Framework", it spins for a long time and then says, "No Framework assemblies were found on the machine." (This machine has VS 2015 installed and running fine, as well as .NET 4.6.1.) How do I resolve this? ETA: My .csproj file currently looks like this: <Project Sdk="Microsoft.NET.Sdk"

How to access a file in .NET Standard 2.0 DLL?

南笙酒味 提交于 2020-01-05 07:31:53
问题 Thank you for visiting. Here is the issue I am facing and would appreciate some help. I am trying to access a file in a .NET standard DLL. Everything works if I use the Windows.Storage namespace, in a test UWP app, like so: Windows.Storage.StorageFile f = await StorageApplicationPermissions.FutureAccessList.GetFileAsync("TestPickedFileToken1"); txt.Text = await Windows.Storage.FileIO.ReadTextAsync(f); The real app is a MVVM UWP app (targeting Fall Creators Update) that accesses a .NETStandard

Where does .net core search for certificates on linux platform

这一生的挚爱 提交于 2020-01-03 07:01:09
问题 On Windows, for .NET Framework classes we can specify sslkeyrepository as *SYSTEM/*USER.On linux where does the .NET Core classes search for the certificates by default and what could be the values for sslkeyrepository . 回答1: .Net Core uses OpenSSL on Linux, as a result, you need to set up your Linux environment in the container so that OpenSSL will pick up the certificate. You can do this by two ways: Copying the the certificate .crt file to a location that update-ca-certificates will scan

How to use C# Code to List all Namespaces in .NetStandard Library in a .Net Standard Project

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-03 05:09:13
问题 How to use C# Code to List all Namespaces in .NetStandard Library 2.0 from within a .Net Standard Project. This is the Code which gives Namspaces in netStandard Library is 0; foreach (AssemblyName fooAssemblyName in Assembly.GetExecutingAssembly().GetReferencedAssemblies()) { Assembly assembly = Assembly.Load(fooAssemblyName.FullName); var namespaces = assembly.GetTypes() .Select(t => t.Namespace).Where(t => !string.IsNullOrEmpty(t)) .Distinct(); int count = namespaces.Count(); if