从system32文件夹运行控制台应用程序
我制作了一个软件,使我可以通过控制台递归删除文件夹,而我要做的就是可以使用CMD.EXE从任何目录访问程序。
当我尝试将软件复制到System32目录,然后从CMD运行它时,出现以下错误:
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
我尝试将其构建为64位程序,但没有改变任何东西。
我的代码有什么问题吗?还是它的构建方式?
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?
预先感谢。
这是因为您通过项目选项或 app.config
文件中指定的所需.NET运行时在系统中找不到< supportedRuntime>
。
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.
简而言之,目标.NET运行时系统上找不到您的应用程序。