I have UWP application, my app is forking fine on Windows 10 desktop PC and does not work on XBOX (crash on startup). My app consists from XAML app and some DLL (for example X.DLL). The X.DLL files is compiled with - x64 Native Tools Command Prompt for VS 2019. I investigated some startup issues of my app and observed the next situation:
On load my app I have crash when I run app with X.DLL.
On load my app I have not crash when I run app without X.DLL.
I compared two load logs from above steps and I found some problem: app depends from vcruntime140d_app.dll and vcruntime140_1d_app.dll
X.DLL depends from vcruntime140.dll
On XBOX I have not vcruntime140.dll as a result I have crash on load app
I put the vcruntime140.dll and vcruntime140_1.dll libraries inside of my application project and it worked. I believe that it is not correct to distribute the application with the vcruntime140.dll and vcruntime140_1.dll libraries, because these libraries already exists, but it is named differently (vcruntime140d_app.dll and vcruntime140_1d_app.dll). Of course I want to fix this problem. My questions:
1. Why are you renaming vcruntime140.dll to vcruntime140_app.dll on building stage? How can this be avoided?
2. What about the fact that in your application project depends from the vcruntime140.dll and vcruntime140_1.dll system libraries?
3. Is this a bug and will you fix it?
Please give me advice how can I fix it inside my app.