.net-standard

Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions using COM

馋奶兔 提交于 2020-03-16 04:29:18
问题 [Recent Note] If it were not for the com-visible aspect, this question would be a duplicate of this question on assembly binding. I had struggled for days because I did not realize that I needed to alter my unit test project as well as the com visible project. If you don't want to read through my struggles realizing this, skip to the last update. [Pre-amble] I feared it may be a bridge to far trying to access a dotnet standard 2.0 library from VB6 via a COM Visible Framework 4.7.2 library,

Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions using COM

喜你入骨 提交于 2020-03-16 04:28:59
问题 [Recent Note] If it were not for the com-visible aspect, this question would be a duplicate of this question on assembly binding. I had struggled for days because I did not realize that I needed to alter my unit test project as well as the com visible project. If you don't want to read through my struggles realizing this, skip to the last update. [Pre-amble] I feared it may be a bridge to far trying to access a dotnet standard 2.0 library from VB6 via a COM Visible Framework 4.7.2 library,

Reference hell accessing .netstandard with framework VS2019 preview

蹲街弑〆低调 提交于 2020-03-04 21:33:43
问题 I can get my .net standard 2.0 package working in a .net framework 4.7.2 dll if I do the following steps In my standard project VS2019 61.4.4 right click the project and select pack to create the .nupkg Then I set up a nuget package source for the package In my framework project I install nuget package I get the following dialog I choose PackageReference in project file I answer yes to accept licensing Then I can see the following And I can get my project working. However on a different

Microsoft.SqlServer.Types incompatible with .NET Standard

久未见 提交于 2020-03-03 02:37:48
问题 I'm attempting to convert all of our C# class libraries from .NET Framework to .NET Standard projects, as we are starting to leverage .NET Core so need these to be consumable by both .NET Core and .NET Framework apps (with the latter being ported over to Core in the upcoming months.) I'm having trouble converting our data access layer code, because we leverage Microsoft.SqlServer.Types extensively and the official nuget package doesn't support .NET Standard. I tried an unofficial nuget

How to fix a “java.io.IOException: unexpected end of stream on Connection” exception in HTTPClient on .NetStandard

久未见 提交于 2020-02-14 06:28:50
问题 I have been scratching my head with this one for a while. I'm building an Android app in Xamarin and I have a login POST request that mostly works, but will occasionally recieve this error. I notify the user and tell them to try again but I am still getting the error far too often and want to fix it so the app provides a smoother experience. Here is the stack trace I have logged on App Center: LoginProvider+d__1.MoveNext () C:\source\repos{MyApp}{MyApp}{MyApp}\Services\LoginProvider.cs:35

How to fix a “java.io.IOException: unexpected end of stream on Connection” exception in HTTPClient on .NetStandard

风格不统一 提交于 2020-02-14 06:24:49
问题 I have been scratching my head with this one for a while. I'm building an Android app in Xamarin and I have a login POST request that mostly works, but will occasionally recieve this error. I notify the user and tell them to try again but I am still getting the error far too often and want to fix it so the app provides a smoother experience. Here is the stack trace I have logged on App Center: LoginProvider+d__1.MoveNext () C:\source\repos{MyApp}{MyApp}{MyApp}\Services\LoginProvider.cs:35

ApplicationDbContext.OnModelCreating() in .Net Standard 2.0 has MissingMethodException

一世执手 提交于 2020-02-06 08:01:11
问题 this is one of the problems that I issued in "Found conflicts between different versions" OR System.MissingMethodException when using aspnetcore.identity, but I wanted to explain it separately with a small example: SetUp: A .Net Standard 2.0 Library A .Net Framework 4.7.2 WebForms application The .Net standard Library has this Code: public class Class1 { public static void doStuff() { var optionsBuilder = new DbContextOptionsBuilder<ApplicationDbContext>(); optionsBuilder.UseSqlServer(

Xamarin forms with .netStandard 2.0, can't reference Core

喜欢而已 提交于 2020-01-25 03:50:27
问题 I can't reference my Interfaces from my .Core project to my Android Project and I don't understand why... I created a new solution with Visual Studio 2017 in Xamarin.Forms with .Net Standard lib. And this is what I tried: With the old .NetFramework Core project method, it worked perfecly, but not now... Thanks for your help 回答1: Ok i understand what you mean now, and i have experienced this before Make sure your .Net Standard project compiles Remove and Add the .Net Standard reference back to

log4net configuration in .net standard 1.3 project

南楼画角 提交于 2020-01-24 15:36:38
问题 I trying to migrate a c# project from .net framework v4.6 to .net standard. The project has log4net v2.0.8 dependency. I found this SO anwser, which recommends to use .net standard 1.3 and gives reference to this post to get more detailed solution. The problem occurs when configuring log4net with XmlConfigurator.Configure method, which requires ILoggerRepository as the first argument. In the post LogManager.GetRepository(Assembly.GetEntryAssembly()) method used, but Assembly.GetEntryAssembly(

.net standard class library - not support Distributed Transaction error

て烟熏妆下的殇ゞ 提交于 2020-01-24 15:29:06
问题 I developed a logging service in .net standard class library project. It is perfectly working without System.Transaction (TransactionScope class) . When I add transaction to a process, logger insert method throws an exception. [ This platform does not support distributed transactions. ] When I add code to core console app with System.Transaction it works. Is .net standard not supporting System.Transaction(TransactionScope)? NOTE: For now : .net core and nugets are lastest. Distribution