Questions tagged [.net-standard-1.5]

.NET Standard 1.5 is a version of [.net-standard]. Do not use this tag unless you have a specific question about this specific version.

Ref:

Related tags

29 questions
138
votes
28 answers

Visual Studio 2017 - Could not load file or assembly 'System.Runtime, Version=4.1.0.0' or one of its dependencies

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, …
Brian
  • 37,399
  • 24
  • 94
  • 109
46
votes
2 answers

Alternative to System.Web.Security.Membership.GeneratePassword in aspnetcore (netcoreapp1.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.
Ovi
  • 2,620
  • 7
  • 34
  • 51
10
votes
2 answers

Using .net standard 1.5 lib in .net 4.6.2 misses System.Runtime 4.1.0.0

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…
Boas Enkler
  • 12,264
  • 16
  • 69
  • 143
9
votes
1 answer

Nuget packages aren't copied to output when using .NETStandard

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.…
8
votes
0 answers

ConfigurationManager.AppSettings generates compile time error on .Net Standard 1.5

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…
5
votes
2 answers

Xamarin Forms and Entity Framework Core NetStandard

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…
5
votes
0 answers

.NET Core NETSTANDARD - Get Assemblies

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…
dknaack
  • 60,192
  • 27
  • 155
  • 202
5
votes
2 answers

Create a single source project with full .net, PCL and dotnet core assemblies build from same C# source?

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…
Warren P
  • 65,725
  • 40
  • 181
  • 316
4
votes
1 answer

In a project targeting .NET 4.6.2, how to implement an interface defined in a .NET Standard 1.5 assembly?

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…
4
votes
1 answer

Xamarin Studio Targeting netstandard

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…
3
votes
1 answer

How to determine if OS is 32 or 64 bit cross-platform on .NET Standard 1.5?

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…
NightOwl888
  • 55,572
  • 24
  • 139
  • 212
3
votes
3 answers

How to tell if a class is supported by .Net Standard Library?

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. …
Hong
  • 17,643
  • 21
  • 81
  • 142
3
votes
2 answers

In VS2015, how do I create a Xamarin xaml forms project that uses .net standard?

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…
Sean
  • 2,531
  • 2
  • 17
  • 17
3
votes
1 answer

How to parse JSON in a .netcore class library

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…
Lee Sanderson
  • 43
  • 1
  • 6
2
votes
0 answers

system.web in .net standard 1.5

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…
Mykal73
  • 478
  • 4
  • 6
  • 18
1
2