在哪里可以找到CorFlags.exe 工具?我完全搜索了我的硬盘驱动器,但没有找到。
我有:.NET Framework 4.0、Visual C# 2010 Express、Visual C++ 2010 Express。操作系统是 Windows 7 Ultimate 32 位。
在哪里可以找到CorFlags.exe 工具?我完全搜索了我的硬盘驱动器,但没有找到。
我有:.NET Framework 4.0、Visual C# 2010 Express、Visual C++ 2010 Express。操作系统是 Windows 7 Ultimate 32 位。
它应该是Windows SDK版本 6 或更高版本的一部分,位于...
%ProgramFiles%\Microsoft SDKs\Windows\v6.0A\Bin\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v6.0A\Bin\x64\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v7.0A\Bin\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v7.0A\Bin\x64\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\x64\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\x64\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\CorFlags.exe
如果您没有看到它并且您使用的是 64 位系统,请同时检查%ProgramFiles(x86)%
.
如果您想在 Visual Studio Developer CMD 中找到它并拥有 Python,请使用此脚本(我的原创作品):
import os
def selectlower(w):
d = []
for i in w:
d.append(i.lower())
return d
def searchmyPATH(name):
e = True
pathenv = os.environ['PATH']
paths = pathenv.split(';')
for x in paths:
if os.path.exists(x) and os.path.isdir(x):
y = selectlower(os.listdir(x))
if name.lower() in y:
print(x)
e = False
if e:
print("none")
searchmyPATH("corflags.exe")
以我的 64 位 Windows 10 机器C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools
为例,我发现了它。(我实际上是在寻找 ResGen。)
在 VS Developer CMD 中运行 Python 脚本。