我有一台虚拟机器,我在上面复制了SDK文件和路径,然后去注册表中添加了键,但是我一直收到“resgen.exe
找不到”的错误提示:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1835,9):
error MSB3091: Task failed because "resgen.exe" was not found, or the correct
Microsoft Windows SDK is not installed. The task is looking for "resgen.exe"
in the"bin" subdirectory beneath the location specified in the Installation Folder
value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\
Windows\v7.0A. You may be able to solve the problem by doing one of the following:
1) Install the Microsoft Windows SDK.
2) Install Visual Studio 2010.
3) Manually set the above registry key to the correct location.
4) Pass the correct location into the "ToolPath" parameter of the task.
我查看了文件夹Microsoft\Microsoft SDKs\Windows\v7.0A
,并将resgen.exe
复制到几乎每个net文件夹中,包括bin文件夹,但它仍然告诉我找不到resgen.exe
。我不知道该怎么办。