找不到文件“Windows.props" [英] File 'Windows.props' not found

查看:19
本文介绍了找不到文件“Windows.props"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 Windows 8.1,然后我安装了 Visual Studio Express 2013,其中包括 Update 2 RC.所以当我运行任何应用程序时,它都会给我错误

I have install Windows 8.1 and after that I install Visual Studio Express 2013, which includes Update 2 RC.So when I run any application then it gives me the error

"File 'Windows.props' not found"

我不知道为什么会这样.我搜索了很多关于此错误的信息,但找不到任何解决方案.请帮助我,我花了两天时间才找到此解决方案.

I don't know why it is happening. I search a lot about this error but can't find any solution.Please help me I have spend two days to find this solution.

设备列表中也没有模拟器.我认为错误是由于一次.我已经下载了 8.1 模拟器,但在 VS 2013 模拟器列表中找不到.

Also there is not Emulator in the Device list.I think error is due to this once.I have download the 8.1 Emulator but cant find in the VS 2013 Emulator list.

推荐答案

您需要执行一些基本检查以接近分辨率.

Some basic checks you need to perform to get anywhere close to a resolution.

Windows.props 文件是 MSBuild.exe 在构建 Windows Phone 应用程序时使用的构建文件.正常的安装路径是 C:\Program Files (x86)\Windows Phone Kits\8.1\References\CommonConfiguration\Neutral\Windows.props.使用 Windows 资源管理器检查文件是否存在.

The Windows.props file is a build file that's used by MSBuild.exe when it builds a Windows Phone app. The normal install path is C:\Program Files (x86)\Windows Phone Kits\8.1\References\CommonConfiguration\Neutral\Windows.props. Use Windows Explorer to check if the file is present.

然后在包含它的主 .targets 文件中有一行.它尝试在 $(TargetPlatformWinMDLocation) 目录中定位文件.您可以通过增加构建详细程度来查看此宏的值.工具 + 选项、项目和解决方案、构建和运行.将MSBuild 项目构建输出详细程度"设置更改为 Detailed.在您的项目上使用 Build + Rebuild.向后滚动输出窗口并找到与此类似的行:

Then there is a line in the main .targets file that includes it. It tries to locate the file in the $(TargetPlatformWinMDLocation) directory. You can see the value of this macro by increasing the build verbosity. Tools + Options, Projects and Solutions, Build and Run. Change the "MSBuild project build output verbosity" setting to Detailed. Use Build + Rebuild on your project. Scroll back the Output window and locate the lines that resemble this:

1>TargetPlatformSdkMetadataLocation = C:\Program Files (x86)\Windows Phone Kits\8.1\References\CommonConfiguration\Neutral
1>TargetPlatformSdkPath = C:\Program Files (x86)\Windows Phone Kits\8.1\
1>TargetPlatformSdkRootOverride = 
1>TargetPlatformVersion = 8.1
1>TargetPlatformWinMDLocation = C:\Program Files (x86)\Windows Phone Kits\8.1\References\CommonConfiguration\Neutral

如果您发现任何不同之处,请告诉我们.

Tell us if you see anything different.

此路径是从注册表中读取的.启动 Regedit.exe 并导航到 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\WindowsPhone\v8.1\Install Path 以及 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\WindowsPhoneApp\v8.1\安装路径.
验证您是否看到这些键中列出了名称为 "Install Path" 的值,并且该值包含值 "C:\Program Files (x86)\Microsoft SDKs\WindowsPhoneApp\v8.1\".

This path is read from the registry. Startup Regedit.exe and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\WindowsPhone\v8.1\Install Path as well as HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\WindowsPhoneApp\v8.1\Install Path.
Verify that you see a value listed in those keys with the name "Install Path" and that it contains the value "C:\Program Files (x86)\Microsoft SDKs\WindowsPhoneApp\v8.1\".

这篇关于找不到文件“Windows.props"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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