I have a C++/CLI project which I am trying to port to Windows on arm64. It is possible to build the project with more recent versions of Visual Studio (14.39.33519) and the .NET Framework (4.8.1), however the resulting library has a dependency on mscoree.dll which isn’t resolved. How is this supposed to work? Has anybody been able to run native C++/CLI on Windows arm64? The project is compiled something like this:
mscoree.dll
cl <includes, defines, warnings> -O2 -clr -GR -FS -Zi -Gy -MP -W3 -std:c++17 -FoC:/proj/wpf/objs/managedfoo.obj -c managedfoo.cpp
link -dll /MACHINE:ARM64 -libpath:C:/proj/wpf/lib -out:C:/proj/wpf/lib/managedfoo.dll C:/proj/wpf/objs/managedfoo.obj user32.lib
The result:
dumpbin /nologo /DEPENDENTS C:/proj/wpf/lib/managedfoo.dll
Dump of file C:/proj/wpf/lib/managedfoo.dll
File Type: DLL
Image has the following dependencies:
MSVCP140.dll KERNEL32.dll VCRUNTIME140.dll api-ms-win-crt-heap-l1-1-0.dll api-ms-win-crt-string-l1-1-0.dll api-ms-win-crt-runtime-l1-1-0.dll mscoree.dll
MSVCP140.dll
KERNEL32.dll
VCRUNTIME140.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
Where am I supposed to get mscoree.dll for arm64 from? I am running on Windows 11 23H2 which comes with .NET Framework 4.8.1.
Hello,
This is not a topic I have much experience with, but does this learning path help?
https://learn.arm.com/learning-paths/laptops-and-desktops/win_net/
Regards, Ronan
Thanks for the link! Unfortunately, it doesn't help. It would be nice if the learning path had a C++/CLI example.