For questions specific to the usage and features of version 4.8 of Microsoft's .Net framework.
Questions tagged [.net-4.8]
999 questions
5
votes
2 answers
Roslyn warning compiling .Net Framework app
The following warning has suddenly turned up on my C# .Net Framework 4.8 app.
I have deleted all bin and obj folders, and I've tried removing and installing the DotNetCompilerPlatfrom package, but the message keeps appearing. Any…

Simon Parker
- 1,656
- 15
- 37
5
votes
2 answers
.NET 4.8 vs. .NET Core (.NET 6) regarding LTS
I have a WPF application running with .NET 4.6.1.
As .NET 4.6.1 has reached it's end of support I'd like to upgrade the .NET version.
I wonder which .NET version to choose to achieve the "longest" OS support.
As stated above there doesn't seem to be…

Abid
- 565
- 1
- 5
- 15
5
votes
0 answers
MS Graph C# .Net Create Calendar Event for user with RSVP enabled
We are currently integrating Microsoft Graph api into a website to create calendar events generated from our system, where users can rsvp to the event.
We are currently using the Auth code flow for authorization for the…

diesel9013
- 51
- 2
5
votes
2 answers
.NET Framework 4.8 is installed but not showing in Visual Studio 2019 community
My operating system is Windows 10 Pro.
I have .NET Framework 4.8 installed. I confirm it 2 ways:
Open Registry Editor then go to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full key. Check the REG_DWORD entry named…

ChumboChappati
- 1,442
- 4
- 18
- 38
5
votes
0 answers
System.Text.Json not found even though it is part of the project
I have a Winforms project and I have the latest NET6 (currently 6.0.4) version installed.
I'm using RestSharp and when I created the RestClient I get the following exception:
File or Assembly "System.Text.Json, Version=5.0.0.0, Culture=neutral,…

Ivan-Mark Debono
- 15,500
- 29
- 132
- 263
5
votes
0 answers
.NET Multi-language support for unsupported ISO 639-2 cultures
I am currently developing an ASP.NET 4.8 MVC single-page application that is expected to support multiple languages. From various resources, I found that one way to accomplish this is through the use of App_GlobalResources and resource files for…

MadHenchbot
- 1,306
- 2
- 13
- 27
5
votes
1 answer
How to force nuget package reference dlls to be copied to output directory?
I added the System.Memory Nuget Package to my net48 Azure Function V1 project to provide the missing dlls for a referenced netstandard2.0 package. But as the package is not directly used in my code, the dlls are not copied to the output folder.
How…

MatterOfFact
- 1,253
- 2
- 18
- 49
5
votes
2 answers
C# CustomAttributeData class to attribute
I have the following code located in a Swashbuckle.Swagger.IOperationFilter class.
List controllerAttributes = apiDescription
.ActionDescriptor
.ControllerDescriptor
.ControllerType
.CustomAttributes
.Where(a…

G.Dimov
- 2,173
- 3
- 15
- 40
5
votes
2 answers
WeakReference behaves differently between .Net Framework and .Net Core
Consider the following code:
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
#nullable enable
namespace ConsoleApp1
{
class Program
{
static void Main()
{
var list =…

Matthew Watson
- 104,400
- 10
- 158
- 276
5
votes
3 answers
Is it required to update web apps to target .NET 4.8 when Azure App Services update?
This post asked when 4.8 support would be available on Azure App Service:
Azure support for .NET 4.8
A commenter asked if it's compulsory to update your apps as well, which is a great question.
Microsoft email blasted all app service customers so…

Pete
- 1,790
- 2
- 19
- 31
5
votes
0 answers
Enabled cipher suites aren't being used
A third-party service has recently updated its server to use only TLS 1.2 with a limited number of cipher suites. My server, acting as the client in this case, is not able to communicate with the service as the following error is received:
Could not…

DevD
- 51
- 4
4
votes
0 answers
Add-BindingRedirect : Loading this assembly would produce a different grant set from other instances
I have inherited an old project (.NET web site with a .publishproj file!) that has project dependencies on other .NET class libraries. Everything is .NET 4.8. I am trying to run Add-BindingRedirect from the Package Manager Console, which was…

codeMonkey
- 4,134
- 2
- 31
- 50
4
votes
0 answers
error CS0103: The name 'Host' does not exist in the current context
I created a .NET Framework 4.8 Console application in Visual Studio 2019, to which I added the nuget package Microsoft.Extensions.Hosting, that means, in the .csproj file I added the line:

Alex
- 419
- 1
- 5
- 14
4
votes
4 answers
How to reference .Net 6.0 dll in .Net Framework 4.8
Good day Everyone!
I have a Class Library project which targets .Net framework 6.0. When I reference this dll into another project which targets .Net framework 4.8, I get the following error message
I will appreciate your help.

Shakil Ahmed
- 107
- 1
- 7
4
votes
3 answers
error: PlatformNotSupportedException: Configuration files are not supported or How .NET Core 6 consume SOAP .NET Framework wcf
I have Dot Net Framework 3.5 Web Service: http://www.dneonline.com/calculator.asmx
I want to consume it on dot Net Core (3 or 6, any version).
When I run the program, it throws exception:
PlatformNotSupportedException: Configuration files are not…

Mitchell CSharp
- 101
- 1
- 11