Microsoft Visual Studio | VS打开解决方案时加载失败,或者出现错误提示
来源:互联网 发布:linux 文件分割 编辑:程序博客网 时间:2024/06/14 13:31
Microsoft Visual Studio | VS打开解决方案时加载失败,或者出现错误提示
1、加载失败并且输出状态栏也没什么错误提示的话,往往是因为一个低版本VS2010、VS2012等打开了VS2013甚至更高版本创建的解决方案。 解决方发:安装一个VS的相关补丁patch_KB2781514即可。
2、关于加载失败并且输出状态栏提示有错误, 按照提示进行修改即可。 比如说我出的一个错误就是,解决方案被我由C盘移动到D盘,结果再打开解决方案,CvDebug和CvRelease属性文件找不到了导致报错。xx.vcxproj里面存储着方案工程的属性信息,当我们移动解决方案时一些用相对路径表示的属性信息就会出现问题。所以修改一下对应的路径信息就可以了。
贴上我完整的xx.vcxproj文件(用记事本打开即可看到),可以看到我的属性信息里面的属性信息都是绝对路径的。移动也不会有问题。
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{DAE8CEE3-168F-4695-9F40-7F68A1E4AB96}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>test</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<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" />
<Import Project="C:\Users\HooS\Documents\CvDebug-x86.props" />
</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" />
<Import Project="C:\Users\HooS\Documents\CvRelease-x86.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="test.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
0 0
- Microsoft Visual Studio | VS打开解决方案时加载失败,或者出现错误提示
- 开启Visual Studio 2010时出现的加载错误解决方案
- Microsoft Visual Studio 2005 设计窗口不能打开解决方案
- 打开Excel时提示:Windows 正在配置 Microsoft Visual Studio 2010 Ultimate-CHS
- 打开Excel时提示:Windows 正在配置 Microsoft Visual Studio 2010 Ultimate-CHS
- c++中出现error LNK1123: 转换到 COFF 期间失败的错误解决办法及Microsoft Visual Studio 安装
- VS(visual studio)遇到无法打开iostream的解决方案
- Microsoft Visual Studio 2010 The application cannot start.错误解决方案
- Microsoft Visual Studio 2010 加载包错误的解决方法
- visual studio无提示错误发布失败解决方法
- visual studio无提示错误发布失败解决方法
- 用Visual Studio高版本打开低版本的工程,转换时出现错误:fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
- Android Studio 升级时提示失败解决方案
- 打开sln文件出现the selected file is not a valid visual studio solution file错误提示解决办法
- 安装Visual Studio SP1 后生成时出现"FindRibbons"加载失败
- 用VS2008打开项目时出现了“初始化 Microsoft Visual SourceSafe 源代码管理提供程序时失败...”解决方式
- 打开项目时提示如下错误:Visual Studio .NET 无法创建应用程序...
- vs2008/2005 添加新项失败 或者 打开项目提示 某个包加载失败 问题解决
- 面向对象编程的魅力
- linux之vim打造java IDE
- 【剑指offer】面试题23:从上往下打印二叉树
- UVA, 382 Perfection
- 浅谈WebGIS等值线模态前端展示生成绘制(算法经验)
- Microsoft Visual Studio | VS打开解决方案时加载失败,或者出现错误提示
- 算法提高 拿糖果(动态规划)
- UVA, 408 Uniform Generator
- 欢迎使用CSDN-markdown编辑器
- 实习面试随记
- 软件开发周期模型及其选择
- 如何脱颖而出?
- 浅谈基于GIS天地图进行商业市场分析及信息系统设计实现
- STM32CubeMX 3 解锁PWM模块