Skip to main content

Questions tagged [.net-standard]

The .NET Standard is a formal specification of .NET APIs that are intended to be available on all .NET runtimes. The motivation behind the .NET Standard is establishing greater uniformity in the .NET ecosystem. Consider tagging a more specific version of .NET Standard in your question.

.net-standard
3 votes
1 answer
120 views

Use of NETStandard 2.0 in NET 8.0 project, conflicts with NETStandard 2.1

I have migrated to NET 8.0 all my NET 4.6.2 projects, except one that's a VTSO Add-in project (Office). Since Web Office addins is the only option offered in NET Core and doesn't have all the features ...
Bru's user avatar
  • 59
1 vote
1 answer
30 views

How to fix 'notnull type constraint is unavailable' in .NET Standard 2.0 when implementing custom Microsoft.Extensions.Logging.ILogger interface?

I am implementing a custom SQL Server implementation of Microsoft.Extensions.Logging.ILogger. The NuGet package states that it is compatible with .NET Standard 2.0, so I added a class library to my ...
Greg Burghardt's user avatar
1 vote
0 answers
30 views

How can I take high resolutions pictures with my custom camera on newer Android phones with Xamarin Forms?

I'm developing a Xamarin Forms application in the netstandard2.0 framework to deploy both on Android and iOS. The purpose of the program is to create a custom camera to capture and handle high ...
Pablo Arrieumerlou's user avatar
0 votes
0 answers
42 views

.Net Multi Targeting the solution Issues

Compatibility Issues with .net framework Nuget code We have an WEB API application which is written in VB.Net and running on .net framework 4.6.1. The goal is to rewrite this into .Net 8 with c# and ...
abhijith r's user avatar
0 votes
0 answers
29 views

CMake support for .Netstandard 2.0 project

I have an existing C# project which is targetted for .net48 and .netstandard2.0. It works fine when I compile it separately. I had to work on moving this project to CMake based project and I am ...
Sameer Joshi's user avatar
1 vote
0 answers
46 views

Deserialize Object in .net standard which was serialized in .NET framework

I have a client-server application which runs on .NET Framework v4.8. Now I've migrated parts of the application to .NET Standard 2.0. The .NET Standard parts are used by the client and the server. ...
Tomtom's user avatar
  • 9,324
0 votes
0 answers
29 views

Error after using Microsoft.AspNetCore.SystemWebAdapters in shared library targeting .NET Standard 2.0

I have the following class in my class library, and it is a copy of the handler from the old ASP.NET Website (ashx). using System; using System.Net; using System.Text.Json; using System.Threading....
tRuEsAtM's user avatar
  • 3,617
1 vote
1 answer
82 views

sgen/microsoft.xmlserializer.generator fails to generate

I've created a new .NET Standard 2.0 project and added the following class: using System; using System.Xml.Serialization; namespace MyFunnyLib { [Serializable] public class Foo { [...
Tomtom's user avatar
  • 9,324
0 votes
0 answers
48 views

Could not load file or assembly 'Microsoft.Graph, Version=5.50.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies

I have a net472 app referencing a netstandard2.0 project. That project (the netstandard2.0 project) has Microsoft.Graph version 5.50.0.0 installed. The package shows up with no errors or warnings in ...
Jason Ayer's user avatar
0 votes
0 answers
51 views

.NET Core T4 Templates - The type 'Object' is defined in an assembly that is not referenced

I've got a solution with different projects (Class Libraries with .NET Core 6.0) which all use T4 templates for different code generation purposes. What I'd like to do is put commonly used code (e.g. ...
Marc's user avatar
  • 23
1 vote
0 answers
47 views

System.TypeInitializationException: The type initializer for 'Azure.Core.ClientOptions' threw an exception

I am using the Microsoft.Graph library and I am getting this exception upon sending an email. The full exception is: System.TypeInitializationException: The type initializer for 'Azure.Core....
Jason Ayer's user avatar
0 votes
1 answer
41 views

"Cannot load a reference assembly for execution. BadImageFormatException: Could not load file or assembly 'netstandard' or one of its dependencies"

I am getting the following error in my Visual studio 2019, ASP.NET web application project. "Cannot load a reference assembly for execution. BadImageFormatException: Could not load file or ...
Diana4's user avatar
  • 53
0 votes
0 answers
34 views

Could not resolve type when loading a dll file and create the instacne on .net 8 android

I have a dll file (call it MyDll.dll) and its code as following: MyDll.csproj: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net8.0-android</...
CYL's user avatar
  • 115
0 votes
0 answers
20 views

C# NHibernate SQLite dependencies in NetStandard 2 when using project reference

I have a C# project in which targets to NetStandard 2.0 using NHibernate and System.Data.SQLite.Core nuggets. I will call this project as SQliteProject. I'm using NetStandard 2.0 because I want to ...
JuanDYB's user avatar
  • 706
0 votes
0 answers
75 views

C# CodeAnalysis can't compile code with dynamic keyword

I have an issue where I'm trying to compile code with the Microsoft.CodeAnalysis.CSharp package. I wrote a function that compiles the code into an assembly and returns it. This function was originally ...
Gabor Kiss's user avatar

15 30 50 per page
1
2 3 4 5
109