Questions tagged [.net-standard-2.0]
The .net-standard-2.0 tag has no usage guidance.
.net-standard-2.0
796
questions
-1
votes
1
answer
24
views
Looking for a CLI utility that converts dotnet framework assembly to a dotnet standard assembly
I have a set of trivial DotNet framework assemblies ("dlls") that I wish to convert to dotnet stanard 2.0.
By "trivial" I mean that they contain Enum definitions and trivial ...
-2
votes
1
answer
63
views
What are the steps to package and push a .net 2.0 standard library as a nuget package in Azure DevOps build pipeline?
This is what i have so far:
- job: Library
pool:
vmImage: ubuntu-latest
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
command: 'restore'
...
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 ...
1
vote
0
answers
66
views
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.1.2.0
I am trying to create a .Net Standard 2.0 library (I am using visual studio 22)
I encountered the following problem while running the project:
Unhandled Exception: System.IO.FileNotFoundException: ...
5
votes
2
answers
81
views
How to iterate over ReadOnlySpan in F#?
You can get Spans via System.Memory to.NET Standard 2.0 compatible libraries.
But how do you do this the most efficiently in F#:
let myRsp = "test1".AsSpan()
let test = Seq.forall (fun x -&...
0
votes
0
answers
17
views
Referencing the .net 4.8 class library in .net standard 2.0 class library
I have a new class library project based on .NET Standard 2.0. I also have an old class library project based on the .NET framework 4.8. Can I reference the framework class library project in my .NET ...
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.
...
0
votes
0
answers
23
views
My first Roslyn code analyzer refuses to run
I'm trying my hand at packaging a working Roslyn code analyzer, and I'm afraid it's not going so well. I've run out of things to try.
What I have so far I've largely gleaned from ChatGPT, who of ...
0
votes
1
answer
776
views
System.Configuration App.config file with .NET 8.0
I have an old library that used .NET 4.7.2. It uses System.Configuration and an app.config file.
I migrated the library to target framework of .NET Standard 2.0. My unit tests, I migrated to .NET 8.0.
...
-1
votes
1
answer
66
views
Issue while using .NET Standard 2.0 library that uses Store API in WPF .NET Core 8.0 type of project
Hi fellow MSFT developers,
I have created a sample project for your convenience, available at
https://github.com/JiyaDesai-FandCo/WpfAppdotnet8
We have existing code in Library (of type .NET Standard ...
0
votes
0
answers
55
views
Migrate Old ASP.NET Application using EF6 and OWIN to .NET Standard 2.0
We have an old ASP.NET application that uses EF6 and OWIN for authentication. We are currently looking to migrate it to .NET Standard 2.0 => that means we will need to replace EF6 with EF Core so ...
0
votes
1
answer
66
views
Migrate project from .NET Framework 4.5 to .NET Standard 2.0
I've got a .NET Framework 4.5 project and I want to migrate it to .NET Standard 2.0.
When I try to open this project a windows pops up telling me project is targeting .NET Framework 4.5 and it's no ...
1
vote
2
answers
58
views
can't reference netstandard2.0 library if a reference to CodeAnalysis.CSharp is present
Background
Originally I wrote multiple code generators (need netstandard2.0), and wanted to extract common functionalities into a library (also netstandard2.0). However, when trying to reference the ...
0
votes
0
answers
21
views
How do I suppress warnings for dependencies in sourcecode generators?
TL:DR; How do I disable warnings that come through a IncludeAssets="Build" dependency?
I've written a sourcecode generator that includes an external dependency (Scriban). Including ...
0
votes
1
answer
91
views
Wrong version loaded of "System.Servicemodel" when using a service reference
I have a project in Visual Studio that targets "netstandard2.0". I add a service reference (WCF Web Service) and as a result Visual Studio (NuGet) installs for me a package reference, "...