未找到导入的项目"C:Microsoft.Cpp.Redirect.14.props"
The imported project "C:Microsoft.Cpp.Redirect.14.props" was not found
i在将其从VS2012转换为VS2017时正在编辑.VCXPROJ文件,现在该项目在VS2017中没有加载。这是错误消息:
无法读取项目文件" Manager.vcxproj"。C: Program Files(X86( Microsoft Visual Studio 2017 Enterprise common7 IDE vc vctargets microsoft.cpp.redirect.props.props.props.props.props(27,3(:导入的项目" C: Microsoft.cpp.cpp.cpp.cpp.redirect.credirect.redirirect.redirirect.redirirect.14.没有找到Props。确认声明中的路径是正确的,并且文件存在于磁盘上。
我认为错误与项目文件中的这些行有关:
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
但是,我解决方案中的其他项目使用相同的导入路径并仍然正确加载。这些行是什么原因引起了问题?如果是这样,正确的路径是什么,为什么我的其他项目使用此路径时会起作用?
可以通过在" Globals"属性组关闭之后添加以下代码段来解决错误:
<Import Project="$(VCTargetsPath)Microsoft.Cpp.Default.props" />
虽然该项目可以在没有此行的VS2012中加载,但它不会在VS2017中。
相关文章:
- .cpp和.h文件中的模板专用化声明
- 为什么两个不同的未命名名称空间可以共存于一个cpp文件中
- Linux的Cpp上的计时器
- 如何运行位于boost/libs/python/example/tutorial目录中的hello.cpp和Jamfil
- 命名空间中具有.h和.cpp文件的类
- 内置函数可查看CPP中的成员变量
- 无法编译 rtmidi 测试 cmidiin.cpp 文件, 非法指令
- Cpp-Tuple使用带有变量的get
- C++-试图将函数指针推回到另一个CPP文件中的矢量时出错
- 有充分的理由在h文件中使用include保护而不是cpp文件吗
- 如何通过cpp程序运行shell脚本
- 使用2个键的cpp-stl::优先级队列排序不正确
- cpp二进制搜索问题,计算给定数组中输入元素的出现次数
- 如何在cpp文件之间切换窗口?在Qt中
- VS 2017 构建工具失败,出现错误 MSB4019:找不到导入的项目"D:Microsoft.Cpp.Default.props"
- 使用 Microsoft VS 编写程序C++,但我在这里收到调试断言消息.它可以在 cpp.sh 上运行,repl.i
- 如何为 VS2017 自定义 Microsoft.Cpp.Win32.User.props
- 未找到导入的项目"C:Microsoft.Cpp.Redirect.14.props"
- 未在 Windows 8.1 上构建的节点包 - 缺少 Microsoft.Cpp.Default.props
- Msbuild不导入Microsoft.Cpp.x64用户选项