我有一台 VM 机器,我在其中复制了 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
几乎在每个网络文件夹中,包括 bin,但它一直告诉我resgen.exe
找不到。我不知道该怎么办。
我将以下 SdkToolPath 参数添加到项目中,这很有帮助。当然,它不是一个完整的解决方案,因为它无法在构建服务器上工作,但现在它可以工作,我只是不从我的机器上签入它,这意味着我可以做我需要做的事情:
<GenerateResource SdkToolsPath="C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools" Sources="@(TextResource)" OutputResources="@(TextResource->'$(OutDir)CommandStrings.resources')" />
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)