MSB8006 [英] MSB8006

查看:305
本文介绍了MSB8006的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2012,我有一个包含多个项目的解决方案。就在最近,我开始收到有关无法找到一堆.props文件的错误。这已通过注册表调整得到修复。但是,我仍然会在
每个项目中收到此错误"错误MSB8006:项目平台'ProjectName.vcxproj'无效。 平台="的Win32’ 。如果某个其他项目试图遵循项目到项目的对该项目的引用,也可能出现此错误,此项目已被卸载
或未包含在解决方案中,并且引用项目不使用相同或相当的平台。 (1,1)。"我试过运行修复安装没有运气。我已经创建了一个x64配置并将所有项目设置为该配置。
唯一能做的就是在错误消息中更改Platform ='Win32'到Platform ='x64'。我已经检查了我的配置管理器,所有项目都设置为Win32或x64,具体取决于我的配置选择了。什么可能导致这个问题和
有解决方案?

I'm using Visual Studio 2012 and I have a solution with several projects. Just recently I started getting errors about not being able to find a bunch of .props files. This has been fixed with a registry tweak. However, I am still getting this error for every project "Error MSB8006: The Platform for project 'ProjectName.vcxproj' is invalid.  Platform='Win32'. This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Platform. (1, 1)." I've tried running a repair install with no luck. I've created an x64 configuration and set all projects to that. The only thing that did was change Platform='Win32' in the error message to Platform='x64'. I've checked my configuration manager and all projects are set to Win32 or x64 depending on which configuration I have selected. What could cause this issue and is there a solution?

推荐答案

感谢在这里发布。

>>但是,我仍然会为每个项目收到此错误"错误MSB8006:项目平台'ProjectName.vcxproj'无效。  ;平台="的Win32’ 。

您是否尝试过其他版本的vs?例如,vs2015。

Have you tried other version of vs? For example, vs2015.

要避免此错误,您可以在导入Microsoft.Cpp.props之前在项目文件的顶部附近添加此属性:

To avoid this error, you could Add this property near the top of the project file, before the import of Microsoft.Cpp.props:

<SkipInvalidConfigurations>True</SkipInvalidConfigurations>

以下是您作为参考的类似案例。

Here is a similar case for you as a reference.

https://stackoverflow.com/questions/38821968/custom-platforms-for-visual-studio-makefile-project

最好的问候,

Baron Bi

Baron Bi


这篇关于MSB8006的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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