.net-standard-2.0

Porting Windows Forms to .Net Standard 2.0

こ雲淡風輕ζ 提交于 2020-08-15 09:03:08
问题 Apologies if this is a very naive question. I wrote a Windows Form application using .Net 4.5 sometime ago. Recently, I thought it would be a good idea to port it to a .Net Standard 2.0 application using VS Code. There were a couple of problems with missing libraries and classes (System.ServiceModel being the biggest gap), but I have got to the point of building the application successfully. However, when I come to run it, I see the following error: Unhandled Exception: System

Entity Framework Database First .Net Core

[亡魂溺海] 提交于 2020-07-06 10:45:41
问题 I have a .Net Standard 2.0 class library project and I want to add Entity Framework to it. I have added the Entity Framework Core package to the project but no Entity Framework Templates appear when I try to add a new item to the project. I have looked on the web and all I can seem to find is instructions for Code First! How do I get the database first functionality back? 回答1: EF Core does not, and will never, support the EDMX-based Database First workflow with the designer. EF Core stores

Entity Framework Database First .Net Core

流过昼夜 提交于 2020-07-06 10:44:34
问题 I have a .Net Standard 2.0 class library project and I want to add Entity Framework to it. I have added the Entity Framework Core package to the project but no Entity Framework Templates appear when I try to add a new item to the project. I have looked on the web and all I can seem to find is instructions for Code First! How do I get the database first functionality back? 回答1: EF Core does not, and will never, support the EDMX-based Database First workflow with the designer. EF Core stores

MvvmCross.Core/Platform 5.7.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'

放肆的年华 提交于 2020-06-25 22:51:31
问题 I'm creating an Android and iOS app using MvvmCross, the latest version. Now as the portable class library is deprecated I am using .NET Standard library version 2.0. I have this warning in the NuGet package of MvvmCross .....though the project compiles but I am not sure if I need to worry about it as the last line says This package may not be fully compatible with your project. Below is the exact warning warning NU1701: Package 'MvvmCross.Core 5.7.0' was restored using '.NETFramework,Version

Error: Unable to generate deps.json, it may have been already generated. when adding a Service reference to Xamarin forms

匆匆过客 提交于 2020-04-30 12:32:31
问题 i have a Xamarin forms v3.1 project with the .net standard approach, i try to add a reference to a web service i have using add connected service and then from the pop up i choose microsoft web service reference provider. i add the web service link and visual studio (2017 v15.8) discovers its structure then when i click finish it takes a while then shows this error: Unable to generate deps.json, it may have been already generated. You can specify the "-d" option before the tool name for