Questions tagged [.net-standard-2.0]

766 questions
0
votes
1 answer

Can I use packages written for .NET Framework in .NET Standard 2.0?

I'm studying C# 7.1 and .NET Core 2.0 - Modern Cross-Platform Development Third Edition written by Mark J. Price(by the way, great book), and I don't understand, as I wrote above, if I can use packages written for .NET Framework in .NET Standard…
user9026241
0
votes
1 answer

.Net Core project accesses too many class or API when it depends on some other projects

I have two .Net Standard 2.0 library projects: Lib1 and Lib2, Lib2 depends on Lib1, Lib1 has class Class1, Lib2 has class Class2. Then I create a .Net Core 2.0 and a .Net Framework project: The .Net Core 2.0 console application project named…
Dallon Xu
  • 80
  • 5
0
votes
0 answers

Can we target .Net Standard 2.0 projects with Visual Studio 2017 Express?

I just installed Visual Studio 2017 Express for Windows Desktop (version 15.5.4), and I am trying to open a C# project that targets the framework .Net Standard 2.0. But it doesn't work, it tells me that the project needs a migration. I reload the…
0
votes
0 answers

Autofac can't find constructor in a Xamarin app, even it's there

I'm trying to use Autofac to register a service into Xamarin.Forms (netstandard2.0) here's my code: SqliteManager.cs public interface ISqliteManager { void test(); } public class SqliteManager : ISqliteManager { private readonly string…
Doc
  • 5,078
  • 6
  • 52
  • 88
0
votes
1 answer

Are xdt transforms not supported in nuget packages installed in a netstandard 2.0 project?

I have a nuget package that has .xdt transforms for a app.config file. The xdt files are included in the netstandard 2.0 project that builds the nuget package. Their build action is set to content/do not copy. When I install the package in a .net…
Owen Johnson
  • 2,416
  • 2
  • 19
  • 23
0
votes
1 answer

How to add WCF service reference in Xamarin Forms .netstandard?

I've created a Xamarin Forms project with .netstandard and trying to add the WCF service reference as the connected service using Visual Studio 2017. There is an option in the connected service for adding WCF service reference. When I add the…
vishgarg
  • 445
  • 1
  • 9
  • 24
0
votes
1 answer

Installed SpecFlow.Allure but on server it doesn't work

I have a problem with SpecFlow Allure in local it works but on the server not. I have windows 2008 server and I using .tpl files for gradle. When I added to my tpl the same settings as on app.config `
0
votes
1 answer

Nuget Dependencies not being added to the project

So recently I replaced my PCL with a .Net Standard 2.0 one (Created a new solution and replaced the old one). Previously (when the project was PCL) I created a nuget package from the project and installed it to my Xamarin Forms project. The nuget…
0
votes
1 answer

Xamarin form: Does this give limitation access the libraries

I have a problem with these packages which I wanted to use on my Xamarin form using .net standard 2.0 Package 'ExifLib.PCL 1.0.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
0
votes
1 answer

Xamarin.Forms DependencyService cannot share interface cross-platform in file handling

I am following the official Xamarin guide for cross-platform file handling using .net-standard-2.0 PCL project. The App is intended to build for Android and Windows. It raises me a question here. The interface code is as below. public interface…
Eric Lam
  • 329
  • 1
  • 5
  • 13
0
votes
1 answer

How can I convert excel file to pdf using .Net Standard 2.0

I'm new working with .Net Standard 2.0. I want to convert excel files to pdf using a free API. I have tried to install via NuGet many APIs like SautinSoft.ExcelToPdf, Winnovative.ExcelToPdf and EvoPdf.ExcelToPdf without success. I don't want to use…
Eduardo Slee
  • 63
  • 1
  • 1
  • 3
0
votes
1 answer

Is service fabric compatible with .netstandard2.0 or .netcore2.0

I have a set of service projects that i build about 12 months ago. I've tried updating nuget packages as often as possible but with .netstandard and core 2.0 I assumed it would be ready to port to the new sdk and packages without too much…
0
votes
1 answer

.NET Standard 2.0 Xamarin.iOS project VSTS build issue

Currently I'm trying to upgrade a Xamarin.Forms project to use .NET Standard 2.0. This went fine for Android but I'm getting stuck with the iOS version. To build iOS we use a On-Primise MacMini as build agent int VSTS. Now I'm getting the error…
0
votes
1 answer

Xamarin.Forms .NET Standard confusing references

I've created two different Xamarin.Forms solutions from templates. The first one is created with Prism template pack (version 2.0.5) the other one is created with the built-in Xamarin template that comes with Visual Studio 2017 (15.5.0 Preview).…
0
votes
1 answer

.net standard 2 reference with enums break on .net 4.7.1 but work on .net 4.6.1

Start new project, pick .netcore2 console app. Change the target framework to .net 461. You do this by editing the .csproj file as shown: net461 netcore has ran on the full framework for years. so no surprises.…
AppLS
  • 96
  • 1
  • 5