Questions tagged [.net-standard-2.0]

766 questions
0
votes
1 answer

Xamarin Firebase iOS Analytics throwing AOT MTOUCH ERROR MT3001 - Firebase.Analytics.dll

I'm trying to integrate Firebase Analytics to my xamarin forms application. For Xamarin.IOS I'm using Xamarin.Firebase.iOS.Analytics version 5.0.1 And getting the below error while building. ./iOS/MTOUCH: Error MT3001: Could not AOT the assembly…
0
votes
0 answers

Why do I need to reference .net standard libraries in the Framework .exe project when they are only used in a Framework .dll project?

I have a dot net Framework 4.6.1 Winforms solution that contains a .Exe project and a .DLL project. I want to reference a .Net Standard library Xero.APi.SDK.Core(1.1.1) from inside the Framework DLL project However when I try to run my .Exe I get a…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
0
votes
1 answer

Create SqlConnection in a .NET Standard 2.0 project

How can I create a connection to my local database in a .NET Standard project? Because I want to use that in combination with an UWP application (no EF support).
user7849697
  • 503
  • 1
  • 8
  • 19
0
votes
1 answer

Failed to resolve RestSharp.RestClient dotnetStandard2.0 project with Xamarin.iOS

There are 2 projects in my solution. Xamarin iOS native and dotnetstandard 2.0. I need to use RestSharp in dotnetstandard 2.0 project. But when I create variable RestClient client; it causes an error. Pcl code is following: When I remove this…
S. Koshelnyk
  • 478
  • 1
  • 5
  • 20
0
votes
1 answer

Unable to Acess Native code (element) in Xamarin Forms with NETStandard 2.0

My partial class didn't targeting the #if in Xamarin Forms project with NETStandard 2.0 A sample of the problem is: public partial class App : Application { #region StaticString #if __IOS__ public static String A …
0
votes
1 answer

Any mocking library that works with .NET Standard 2.0?

as per title I'm looking for a moking library that support .net Standard 2.0. I checked Moq FakeItEasy NSubstitute RhinoMocks also in pre-realease. Them are all not supported. By not supported I mean that "using" does not find these libraries and…
Alex 75
  • 2,798
  • 1
  • 31
  • 48
0
votes
1 answer

Entity Framework Core Migrations In .NETSTANDARD Class Library?

The main issue: Need to update the SQL DB to have new tables because I added new Entities and DB sets in the DataAccess and Entity layers. Okay, my project is laid out like so. Solution > DataAccessLayerProject(DB Context), ModelsProject(Entities),…
user4158347
0
votes
2 answers

Weird Normalization on .net

I am trying to normalize a string (using .net standard 2.0) using Form D, and it works perfectly and running on a Windows machine. [TestMethod] public void TestChars() { var original = "é"; var normalized =…
0
votes
1 answer

.net standard, windows compatibility pack and registry

I have a .net standard 2.0 library that I want to use to access the registry via the windows compatibility pack (if the OS its running on is Windows) if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { Console.WriteLine("On windows."); …
Stuart
  • 3,949
  • 7
  • 29
  • 58
0
votes
1 answer

WaitHandle.WaitOne() method in SemaphoreSlim class does not work properly

I have a complex situation but I will try to short it out and let only know for important details. I am trying to implement a task-based job handling. here is the class for that: internal class TaskBasedJob : IJob { public WaitHandle WaitHandle…
Rey
  • 3,663
  • 3
  • 32
  • 55
0
votes
1 answer

What is the recommended approach on reading application configuration details using netstandard2.0

In .NET Framework we have app.config file that gets created when a project is created.But in .NET Core there is no application configuration file when a consoleapp is created.What is the recommended config file for .NET Core applications. And if…
subbaraoc
  • 1,123
  • 1
  • 8
  • 27
0
votes
1 answer

Xamarin.Forms + Xamarin.ios Entityframework Core 2.1.1 build error

I'm working on Xamarin.ios application with Microsoft.EntityframeworkCore.Sqlite version 2.1.1 with Xamarin.forms .NetStandard 2.0 version. I'm unable to build the application on iPhone, getting the below error: MTOUCH: Error MT3001: Could not AOT…
0
votes
0 answers

A freshly created Xamarin.Forms project does not build

I am trying to create a Xamarin.Forms application in Visual Studio 2017, version 15.7.6, on a 64-bit Windows 7. Whichever code sharing strategy I choose, the application does not build as expected and shows the following error message: "Could not…
0
votes
1 answer

Invoking DynamicMethod on mscorlib generic type with .Net Standard generic parameter causes MissingMethodException

So what's happening here? Here's the backstory. I'm trying to integrate a .net standard library into a .net framework product. This .net framework product is using an old Microsoft.Practices framework which uses ObjectBuilder as the service…
gislikonrad
  • 3,401
  • 2
  • 22
  • 24
0
votes
1 answer

Cross platform way to make sure some operation was ever executed on local machine

I'm working on cross platform .net standard 2.0 library (targeting Windows, iOS, Android). There is some operation that I need to perform only once on the local machine. If (!MethodAExecuted) { MethodA(); MethodAExecuted = true; } What I…
InfernumDeus
  • 1,185
  • 1
  • 11
  • 33