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
2
votes
1 answer

Using Apache Lucene.Net 4.8.0 with .NET Standard 1.5 and Visual Studio 2017

On the Lucene.Net GitHub page (https://github.com/apache/lucenenet), it says that version 4.8.0 (the beta version currently available on GitHub) is compatible with the .Net Standard 1.5 and .Net 4.5.1 frameworks. Fantastic! I did a git clone…
2
votes
1 answer

VS2017 create a lib for multiple framework targets

I have a simple Dll where I defined some class like this: public class Parameters { public string Message { get; set; } } I added a NuGet package Newtonsoft.Json. This DLL MUST be consumed by a netcoreapp1.1 and a net462. I have tried to…
Max
  • 6,821
  • 3
  • 43
  • 59
2
votes
1 answer

Xamarin portable .NETStandard 1.5 unit test

I created a portable class library and then targeted it at .NETStandard 1.5 from the project properties. I then created a second project with the exact same project settings, but added code to use for invoking and testing the code in the first…
Femi A
  • 95
  • 8
2
votes
2 answers

netstandard1.x and winforms / wpf / windows - Could not load file or assembly System.Runtime, Version=4.1.0.0

I have setup a reusable base class library I wanted to use for both web, desktop and mobile. It holds basic functionaly, e.g. string, datetime manipulations etc.. Because I hate writing code twice. VS2015 told me it was best to use the new ".NET…
Yves Schelpe
  • 3,343
  • 4
  • 36
  • 69
2
votes
1 answer

how to create a .net core class library

I am new to .net core. I need some help to configure my project.json file to create a class library with .net core. I actually read a lot of documents, but I am lost since there is an overwhelming amount of things to read. I know that I have to use…
user3303864
2
votes
0 answers

How to register a COM shared as a NuGet Package in a Class Library (.NET Core)?

There are 4 projects: MyProject.Domain MyProject.Services.Contracts MyProject.Services.Acomba MyProject.Services.Acomba.Tests The Acomba projects depends on a NuGet Package that I packed according to this SO Answer. All of those projects are of…
Will Marcouiller
  • 23,773
  • 22
  • 96
  • 162
1
vote
2 answers

.NET Standard 1.5 XUnit console runner - How to run my unit tests?

I have a test project configured with .NET Standard 1.5 IDE: Visual Studio 2017 Community I have included xunit and xunit.runner.console but I cannot run the tests. I tried dotnet test on the test project but I get the following error Could not…
gdyrrahitis
  • 5,598
  • 3
  • 23
  • 37
1
vote
1 answer

Cannot access types of .NET Standard Library

I created in VS2017 two C# projects: .NET Standard 1.5 library .NET Framework 4.6.2 Console application. (implements Standard 1.5) I added the reference to the library, but cannot access types from it. Compiler just complains that it cannot find…
Pavel Voronin
  • 13,503
  • 7
  • 71
  • 137
1
vote
0 answers

How on Earth do I reference a class library in both my ASP.NET Core AND Xamarin projects?

I have both a Xamarin Client and Asp Core Web API that need to reference the same project, which will be used as a Portable Class Library. Sounds simple, but I'll take you through my process. The PCL is just a Model so I can use the same classes for…
user1819747
0
votes
1 answer

VS 2017 Prof 15.3.3 with NET Standard Libraries and NuGet packages shown with yellow triangle

I have seen many articles about this, but mainly for pre release versions of Visual Studio 2017. I have VS 2017 Professional version 15.3.3 installed. As for myself, I can create new projects or open existing projects and all is fine, but if a…
0
votes
0 answers

type System.Net.IPAddress not assignable to type System.Net.IPAddress

Im writing a PCL in .net-standard to be used for both android and IOS. Currently im writing a UDP multicast listener for device discovery. however when i do IPAddress multicastaddress =…
Gareth
  • 1
  • 1
0
votes
1 answer

Xamarin.Android dependency netstandard13 package?

According to the docs on the .NET Platform Standard, it seems like it should be possible for Xamarin apps to consume NuGet packages targetin netstandard13. However, when I try this I get the following error while trying to add the NuGet: Unable to…
Shay Rojansky
  • 15,357
  • 2
  • 40
  • 69
0
votes
1 answer

Using Full .NET API's with NetStandard 1.5

I am using the new netstandard1.5 target framework in my class library. Are you still able to use pre-processor directives to add additional functionality for the full .NET framework? For example, I want to use System.ServiceModel.Syndication with…
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
0
votes
1 answer

Implementing Exceptions in .NET Standard 1.5

How do I implement a new Exception when I am targeting .NET Standard 1.5 and earlier versions? The [Serializable] attribute is not available and my understanding is that this is required for the full .NET framework. [Serializable] public class…
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
1
2