.net-standard-1.5

Xamarin.Android dependency netstandard13 package?

纵饮孤独 提交于 2020-01-06 13:28:43
问题 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 find a version of 'System.Collections.Concurrent' that is compatible with 'npgsql 3.9.0 constraint: System.Collections.Concurrent (>= 4.0.12-rc2-24027)'. I'm trying to do this on VS2015 update 2 + RC2 tooling. Is this not possible, is there another

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

为君一笑 提交于 2020-01-05 22:52:49
问题 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 type Class Library (.NET Core) and target: NET451 NET452 NET461 NETSTANDARD1.5 Except for the test project which consists of a .NET Core App which target: NETCOREAPP1.0 As the Getting started with xUnit.net (.NET Core / ASP.NET Core) webpage describes.

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

偶尔善良 提交于 2020-01-05 22:51:06
问题 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 type Class Library (.NET Core) and target: NET451 NET452 NET461 NETSTANDARD1.5 Except for the test project which consists of a .NET Core App which target: NETCOREAPP1.0 As the Getting started with xUnit.net (.NET Core / ASP.NET Core) webpage describes.

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

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-30 06:48:20
问题 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 find out the current limitations that exist that would prevent me from doing the following: For a single C# codebase, compile a full .net framework version and a PCL version, and a .net core class library from the same sources. Solution dir

Xamarin portable .NETStandard 1.5 unit test

爱⌒轻易说出口 提交于 2019-12-24 03:25:53
问题 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 project. But I have been unable to add MSTest to use for triggering execution. I tried using the guidance at stack overflow # 41350323 but ran into problems. Wondering if anyone out there has been able to use MSTest for unit testing portable

Xamarin Studio Targeting netstandard

孤街醉人 提交于 2019-12-23 15:34:17
问题 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 talk about in Xamarin Studio, I can't find it. 回答1: As of Xamarin Studio 6.0.2 you can consume .Net Standard libs, but NOT create them. The ability to create .NET Standard Libraries in Xamarin Studio on macOS will be available in the future, but

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

泄露秘密 提交于 2019-12-21 21:06:25
问题 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. Could you anyone offer a tip on how to determine if a class is supported by .Net Standard Library? 回答1: Your one-stop shop for all .NET-based APIs .NET API Browser select .Net Standard select version Enter your search: DataContractSerializer You find

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

荒凉一梦 提交于 2019-12-17 11:53:51
问题 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 List<int> Get() { return new List<int>() { 1, 2, 3, 4, 5, 65, 6 }; } } Now I create a new .net 4.6.2 console application which is just calling the method of this class: static void Main(string[] args) { var foo = new Class1(); Console.WriteLine("Done!"); Console

Alternative to System.Web.Security.Membership.GeneratePassword in aspnetcore (netcoreapp1.0)

若如初见. 提交于 2019-12-12 10:28:49
问题 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. 回答1: Here's a class/method, based on the source of Membership.GeneratePassword of that works on .NET Core: public static class Password { private static readonly char[] Punctuations = "!@#$%^&*()_-+=[{]};:>|./?".ToCharArray(); public static

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

我与影子孤独终老i 提交于 2019-12-04 18:27:38
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. Could you anyone offer a tip on how to determine if a class is supported by .Net Standard Library? Your one-stop shop for all .NET-based APIs .NET API Browser select .Net Standard select version Enter your search: DataContractSerializer You find DataContractSerializer in .Net Standard 2.0 only The first version supporting that is .NET Standard 2.0. You