Linked Questions
13 questions linked to/from Can I add a reference to a .NET Framework DLL from a .NET 6 project?
1028
votes
14
answers
247k
views
What is the difference between .NET Core and .NET Standard Class Library project types?
In Visual Studio, there are at least three different types of class libraries you can create:
Class Library (.NET Framework)
Class Library (.NET Standard)
Class Library (.NET Core)
While the first ...
8
votes
1
answer
11k
views
Reference Windows Forms in .NET 8 project possible? [duplicate]
Googling for a while here in no direction at all...
We've got a big solution which we are migrating to .NET 8 (from .NET 4.8.1).
Got most of it sorted, but for some reason can't seem to figure out if ...
4
votes
1
answer
8k
views
Use .Net framework 4.7.2 in .net 6 application
I am trying to find out if it is possible to use a .Net Framework 4.7.2 assembly in another .Net 6 libraries or .Net 6 application. I tried this with some sample projects, and at least I could add a ...
10
votes
1
answer
12k
views
How can I use existing .net framework 4.8 class library in .NET 6 project?
We have .NET 6 Blazor Server-side project in Visual Studio 2022. We would like to use .Net Framework 4.8 class library in .NET 6. In this class library, we are using System.Windows.Form and we cannot ...
3
votes
2
answers
2k
views
C# - Can net6.0 project use a package reference of .net framework, for example, .net472?
I have a net6.0 SDK-style project and I want to use a library which seems to be only released to .net framework. After I added the reference, I got a warning as below. And for sure I can't use any ...
1
vote
1
answer
2k
views
.NET 8 project that uses .NET framework 4.5 project [duplicate]
I have a solution where the startup project is written using .NET 8 (API).
Due to legacy reasons I have to use an old project, as a helper, that is in .NET framework 4.5 (class library).
While I ...
-3
votes
1
answer
665
views
Use .NET 6 class library in >NET 4.7 ASP.NET Website [duplicate]
Is that possible that a class library which is created in >NET 6 can be used as reference in ASP.NET Website created in .NET 4.7 framework
I didn't try any thing yet
1
vote
1
answer
835
views
Can We Upgrade To Core And EF Core 7.0 In One Project And Remain On .Net 4.8 In The Rest Of The Solution?
We are not ready to upgrade our whole solution to Core yet, but we are keen to start using Entity Framework 7. Our current Entity Framework is in a separate DLL project within our solution, so two ...
2
votes
0
answers
839
views
Loading a .NET 4.8 Framework assembly into a .NET 6.0 Project
I'm building a .NET 6.0 application that needs to use CORBA and IIOP to communicate with a remote server.
To achieve this, i'm using IIOP.NET, which depends on the deprecated Remoting API, and because ...
1
vote
0
answers
412
views
Couldn't load File or assembly 'System.Runtime.dll, Version=6.0.0.0'
Actually in my Application .net Framework and .net standard was there which is working Fine And the bootstrapper packages are installing fine.
due to some reason we have migrated one of the project to ...
0
votes
1
answer
147
views
Why does C# change the way a VB.Net DLL works?
Dim A As String = Chr(128)
Put this line in a VB.Net DLL
Call it from a VB program -->> it works fine.
Call it from a C# program -->> "No data is available for encoding 1252. For ...
1
vote
0
answers
96
views
'as' casting returns null in .net6
So we have this class FilePickerDialog derived from CustomDialog class.
FilePickerDialog is built with .net framework while CustomDialog is built with .net6
Then we have an application in .net6 that ...
0
votes
0
answers
55
views
Deploying .Net 6 web api that references fw472
I am developing on a Windows 11 machine and I have a .NET 6 Swagger WebApi solution that references .Net Framework 4.7.2 project (due to migration reasons it has to stay fw472).
I dockerized the api ...