For questions specific to the usage and features of version 4.8 of Microsoft's .Net framework.
Questions tagged [.net-4.8]
999 questions
4
votes
0 answers
How to Generate Code Coverage Report for both asp.net framework and asp.net core unit tests in Azure DevOps?
In project we have both asp.net core and asp.net framework sln. Now I need to get Code Coverage Report for both asp.net framework and asp.net core unit tests in Azure DevOps.
Please help me out.
I have already checked "This Article" it is not…

Swapna
- 41
- 1
4
votes
0 answers
ASP.NET Framework 4.8 / 4.7 connected with external SSO by OpenId Connect with Authorization Code Grant flow, returns 404 on /signin-oidc
I'm trying to set up external SSO provider (FusionAuth) to ASP.NET Framework 4.8 project using OpenIDConnect/Oauth with Authorization Code Grant Request.
When response with authorization code comes from the sso server, the /signin-oidc endpoint is…

nzim
- 105
- 2
- 9
4
votes
1 answer
How to access an azure keyvault from an non registeres app (.net framework webapp)
I am trying to access my azure keyvault i have setup from my web app which due to legacy cannot be registered in azure.
I have for now via connected services "connected" the application with key vault, which then modified the web.config and…

I am not Fat
- 283
- 11
- 36
4
votes
1 answer
How Can I use .NET Framework 4.8 on an WPF Class Library?
So I want to create an WPF Class Library but in the .NET Framework 4.8.
But in the creating I only get this two Frameworks to choose:
How Can I get .NET Framework 4.8 in this to Choose?
Because when I just use the normal Class Library, without the…
user17674040
4
votes
2 answers
Garbage collection behaviour difference between .NetFramework 4.8 and .Net 5
To detect potential memory-leaks in places where it already happened a lot I have work with tests that are build like the shown below. The main idea is to have an instance, not reference it any longer and let the garbage collector collect it. I…

Sjoerd222888
- 3,228
- 3
- 31
- 64
4
votes
2 answers
Visual Studio Clickonce Specific Target tab missing
Following instructions in this link to deploy with Clickonce:
https://learn.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-using-clickonce-folder?view=vs-2019
I right click in the project and select Publish, and the Publish wizard…

Carlos
- 1,638
- 5
- 21
- 39
4
votes
1 answer
Porting from .NET Framework 4.8 to .NET 5.0 System.ServiceProcess.ServiceBase functionality in .NET 5.0?
I'm porting an application from .NET Framework 4.8 to .NET 5.0. Is there there a way to bring the functionality of System.ServiceProcess.ServiceBase to .NET 5.0? Are there any alternatives that could replace ServiceBase? Any workarounds?

Magic Mic
- 43
- 1
- 3
4
votes
1 answer
Is it possible to start an application with .Net Framework 4.8 on the system with only 4.6 .Net Framework?
We've updated our app from 4.6 to 4.8. After some tests I figured out that on the system with only 4.7.1 Framework installed our app starts flawless. However we have no machine with only 4.6 Framework and I have 2 questions:
Can the app compiled…

Dennis Meissel
- 1,825
- 1
- 21
- 33
4
votes
1 answer
EntityFrameworkCore and net48
I have a class library that offers some reusable sugar for EntityFrameworkCore, and it currently targets netstandard2.0;netstandard2.1.
I have projects that reference this class library, most of which target netcore, but a few of which target…

Eric Patrick
- 2,097
- 2
- 20
- 31
3
votes
2 answers
Visual Studio 2022 "enable .net framework source" option missing
I'm following the instructions from MS on how to enable debugging .net framework source here https://learn.microsoft.com/en-us/visualstudio/debugger/how-to-debug-dotnet-framework-source?view=vs-2022
Debug->Options does not have a "enable .net…

Mark Nadig
- 4,901
- 4
- 37
- 46
3
votes
1 answer
How can a locked C# Random get corrupted?
I am using C# Random to generate random numbers in a multi threaded scenario. According to the recommendation here by microsoft, I am using a static shared Random object for all the callers and is calling random.Next in a lock.
private…

Jins Peter
- 2,368
- 1
- 18
- 37
3
votes
1 answer
Is it possible to run .NET Framework WPF application with .NET 7? (Windows 10)
I'm working on a WPF project that targets .NET Framework 4.8
1/
Now I'm researching about running that application with .NET 7 but is it possible to do that?
For example, I tried dotnet wpf.exe but it shown some errors
A fatal error was encountered.…

IFZR
- 316
- 1
- 12
3
votes
2 answers
Watch window at debugging: CS0103: The name '' does not exists in the current context
Am using:
Visual Studio Community 2022 (64-bit), Version 17.4.2 with
.NET Framework, Version 4.8.09032.
There was an update yesterday, 02-12-2022, with I installed through the 'Visual Studio Installer'.
After this I can't watch local variables in…

Willem
- 302
- 10
3
votes
1 answer
GetHashCode when one of properties can be null
I am currently trying to figure out how to deal with situation,
where I want to use some object as a key in dictionary, therefore I need it
to have overriden GetHashCode and Equals methods. The problem is that one of the properties of my object is…

Bruno Pfohl
- 451
- 1
- 8
3
votes
1 answer
Problems using System.IO.Compression after upgrading from .Net 4.6.1 to .Net 4.8
We have an Asp.Net MVC project that we have recently upgraded from .Net 4.6.1 to .Net 4.8. It has some dependencies on other projects in our solution that have also been upgraded. The MVC project itself uses System.IO.Compression to zip some files…

Simon Williams
- 1,016
- 3
- 11
- 27