question

MrutyunjayaMahapatra-6181 avatar image
0 Votes"
MrutyunjayaMahapatra-6181 asked CandyLuo-MSFT edited

migrating CLI projects to .Net 5

I have one C++/CLi project I am trying migrate to .Net 5.0. Can anybody please suggest any link or steps to migrate project to .Net 5.0



Best Regards

Mrutyunjaya

dotnet-csharpwindows-api
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Your question is not related with network, I will remove network tag. Thank you!

0 Votes 0 ·

1 Answer

Viorel-1 avatar image
0 Votes"
Viorel-1 answered MrutyunjayaMahapatra-6181 commented

See the recommendations and samples:

Also check if your Visual Studio creates and compiles new projects of “CLR Empty Project (.NET)” and “CLR Class Library (.NET)” type. Try some typical cases, for example: https://mariusbancila.ro/blog/2019/12/18/cpp-cli-projects-targeting-net-core-3-x.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I have one .Net application which loads one C++/Cli dll. I have done necessary changes in both project as per documentation to support .Net 5. but while execution in test environment where I have installed .Net 5, it is giving error below..

102986-untitled.png


0 Votes 0 ·
untitled.png (5.8 KiB)