Windows 10上的Visual Studio 2013配置 - WindowsSDKDir&资源编译器 [英] Visual Studio 2013 configuration on Windows 10 - WindowsSDKDir & resource compiler

查看:921
本文介绍了Windows 10上的Visual Studio 2013配置 - WindowsSDKDir&资源编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Windows 10上成功安装了Visual Studio 2013,但是存在一些阻止编译成功的环境问题。

I have successfully installed Visual Studio 2013 on Windows 10, but have some environment problems that prevent successful compilation.

我创建了一个默认的MFC项目,并且在尝试时编译它获得下一个输出:

I have created a default MFC project, and while trying to compile it getting next output:

1> C:\Program Files(x86)\ MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild。目标(362,5):警告MSB8003:无法从注册表中找到WindowsSDKDir变量。  TargetFrameworkVersion或PlatformToolset可能设置为无效的版本号。

1> c:\ src \ test\mfcapplication2 \mfcapplication2 \ targetget.h(8):致命错误C1083:不能打开包含文件:'SDKDDKVer.h':没有这样的文件或目录

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(362,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry.  TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.
1>c:\src\test\mfcapplication2\mfcapplication2\targetver.h(8): fatal error C1083: Cannot open include file: 'SDKDDKVer.h': No such file or directory

My Platform Toolset设置为  Visual Studio 2013(v120),我这样做将注册表集[ Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs \ Windows \ CurrentInstallFolder]设置为
C:\Program Files(x86)\ MicroSoft SDKs\Windows\v7.0A \,

My Platform Toolset is set to Visual Studio 2013 (v120), I do have registry set [Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows\CurrentInstallFolder] set to C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\,

但是  当我进行详细的构建输出时,WindowsSDKDir确实列为空:

1> WindowsSDK_ExecutablePath =; C:\Program Files (x86)\ Microsoft Office SDK \ Windows \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\程序文件(x86)\ Macrooft SDKs \ Windows \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ x86)\ Microsoft Office SDK \ Windows \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ />
1> WindowsSdkDir_80 = C:\Program Files(x86)\ Windows Kits \\ 0.0 \

1> WindowsSdkDir_81 =

1> WindowsSdkDir_81A = C:\Program Files(x86)\ MicroSoft SDKs\Windows\v8.1A\

1> WindowsSDKToolArchitecture = Native32Bit

1>WindowsSDK_ExecutablePath = ;C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
1>WindowsSDK_ExecutablePath_x64 = ;C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64
1>WindowsSDK_ExecutablePath_x86 = ;C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
1>WindowsSDK80Path =
1>WindowsSdkDir =
1>WindowsSdkDir_80 = C:\Program Files (x86)\Windows Kits\8.0\
1>WindowsSdkDir_81 =
1>WindowsSdkDir_81A = C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\
1>WindowsSDKToolArchitecture = Native32Bit

什么我应该怎么做才能编译MFC应用程序?

What should I do to make MFC applications compile?

我也遇到资源编译器的问题 - 当我点击解决方案中的* .rc文件时出现错误弹出"不能找到资源编译器dll。请确保路径正确。" rc.exe和rc.dll都在系统路径中。哪个
我应该告诉viasual studio如何找到它们?

I also have some problem with resource compiler - when I click on *.rc files in the solution there is an error pop-up "Cannot find the resource compiler dll. Please make sure the path is correct." Both rc.exe and rc.dll are in system path. Where should I tell to viasual studio how to find them?

谢谢你,

Roza。

推荐答案

嗨Roza,

这个论坛是关于VS设置的,因为你的问题是关于MFC,我帮忙把它移到一个非常专业的论坛。

This forum is about VS setup, as your question is about MFC, I help move it to a much professional forum.

最好的问候


这篇关于Windows 10上的Visual Studio 2013配置 - WindowsSDKDir&资源编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆