I am using Visual Studio 2017 and am trying to create a .Net Standard 1.5 library and use it in a .Net 4.6.2 nUnit test project.
I am getting the following error...
Could not load file or assembly 'System.Runtime, Version=4.1.0.0,
…
Is there any alternative to System.Web.Security.Membership.GeneratePassword in AspNetCore (netcoreapp1.0).
The easiest way would be to just use a Guid.NewGuid().ToString("n") which is long enough to be worthy of a password but it's not fully random.
I've some problem when using .net standard in .net framework 4.6.2 consoleapps.
I could reduce the problem to this:
Given:
I create a .net standard 1.5 client library vis vs 2017 with this single class
public class Class1
{
public…
I want to share a project between a WPF (.NET 4.6) application and a .NET Core application. To do this I've made a .NET Standard library by making a portable library initially and converting it in Visual Studio 2015 to .NETStandard version 1.3.…
I'm using .Net Standard 1.5 and want to read some values out of my config.
However the following line
ConfigurationManager.AppSettings["Foo"]
gives me the following compile time error:
CS7069 Reference to type 'NameValueCollection' claims it is…
Recently Xamarin announced support for NetStandard (see https://releases.xamarin.com/stable-release-cycle-7-service-release-1/) and the recently shipped Entity Framework Core supports NetStandard. There was a recent issue with the SQLite.Native…
Because AppDomain ist not available in the netstandard library,
i am wondering how to do
AppDomain.CurrentDomain.GetAssemblies();
The goal is obviously to get all assemblies that are loaded in the current app.
Update
There is a solution for…
Update: This refers to an obsolete set of .net core tools built around project.json, this question and its answers are of very limited utility in current .net core toolsets like Visual Studio 2017+.
Using Visual Studio 2015, update 3, I am trying to…
I have 2 separate projects, lets call them Alpha and Bravo.
Project Alpha targets only the net462 framework in its project.json file, while project Bravo targets only netstandard1.5. Those 2 frameworks are compatible according to Microsoft.
Project…
I am trying to upgrade my pcl library to target the netstandard in Xamarin Studio on my Mac. But I don't see the option. All the information I have found only talk about using Visual Studio.
Xamarin Blog
Oren's blog
When I look for the option they…
I have been looking high and low for a solution to this, but although the question has been asked before the answers no longer apply to .NET Standard 1.5 and its cross-platform way of thinking. Also, this question is about the OS Architecture not…
My current specific situation is that I want to use DataContractSerializer Class in a library supporting .NETStandard1.3. I am unable to reference it in the library. The document gives me an impression that it is a part of .Net Standard Library. …
It's not obvious me how to incorporate .net core and .net standard into a blank xamarin xaml forms app. Can someone please step me through it?
Do this, start Visual Studio 2015, Create a Visual C# / Cross-Platform / Blank Xaml App (Xamarin.Forms…
I am creating a cross-platform library using the .NET core class library project template and need to communicate with a REST service using JSON.
I can't use the JSON.NET Nuget package or "System.Runtime.Serialization.Json" because neither of these…
I am working on converting an enterprise logging library to .net standard 1.5. The older version is using System.Web to grab application level events and make sure they get logged. I still need to grab application level events so how should I get…