Running a console application from the system32 folder

假如想象 提交于 2019-12-12 03:05:21

问题


I made a piece of software that makes it possible for me to delete folders recursively through a console and what I want to do is make it possible to reach the program from any directory using CMD.EXE. When I try to copy the software to the System32 directory and then run it from CMD it gives me the following error:

unable to find a version of the runtime to run this application

I tried building it as a 64 bit program but that didn't change anything. Is there something wrong with my code or is it the way I'm building it?

Thanks in advance.


回答1:


This is because the required .NET runtime you specified in your project options or in app.config file through <supportedRuntime> is not found in the system.

In short, the targeted .NET runtime for your application is not found on the system.



来源:https://stackoverflow.com/questions/8739595/running-a-console-application-from-the-system32-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!