C++/CLI projects can migrate to .NET Core,
https://devblogs.microsoft.com/cppblog/porting-a-c-cli-project-to-net-core/
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I'd like to migrate an application build with .Net Framework 4.7.2/Windows Forms/C# to .Net 5. From the documentation, i don't see so much problems to migrate the elements of this application that are written in C#. But this app also uses some DLLs written in Managed/non Managed C++. These DLLs uses some .net framework libraries like mscoree.lib, System.Drawing.dll,... Is it necessary to migrate these DLLs, and how? or do such DLLs can be used without changes in a .Net 5 project?
Regards
C++/CLI projects can migrate to .NET Core,
https://devblogs.microsoft.com/cppblog/porting-a-c-cli-project-to-net-core/
Hello,
thaks for the link. The project "CppCliInterop" is simular to mine except that my vcxproj file does not contain a "TargetFrameworkVersion" property. Nevertheless, my DLL targets the ".NET Framework 4" (using ILSpy), but i dont't know how (perhaps this a default value when using "Visual Studio 2019 (v142)" PlatformToolset)?
In the mean time, i tried to reference my DLL in a .Net 5 Winform application, and this works, which surprises me. So i wonder if it is really necessary to upgrade such DLL to .Net 5 as long as my application focuses Windows?
regards
Hello,
Thanks Kyle, but this link covers only Windows Forms. I followed this guide to upgrade my C# code; in fact, i had only few changes to do (like replacing usage of old controls DataGrid by DataGridView,...).
I also tried to use another Dll which comes from third party supplier (and so i can not upgrade it to .net 5) and that targets .net 4 :
[assembly: TargetFramework(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]
and this seems to work.
So it seems that it is not necessary to upgrade such DLL as long as the application is for Windows.
Someone can confirm this?
Regards