zoukankan      html  css  js  c++  java
  • 修改VS解决方案及工程名,解决如何打开高/版本VS项目

    对于VS2008等低版本与高版本VS之间的转换问题:

    对照下面2个版本的不同点自由修改,切换到相应的版本文件(红字修改,灰色删除)

    --------------------------------------------------------------------------------------------------

    低版本VS2008:

    修改[解决方案文件.sln] 用记事本打开,找到如下信息:
    Microsoft Visual Studio Solution File, Format Version 10.00
    # Visual Studio 2008


    修改工程名.csproj:

    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <PropertyGroup>
        <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
        <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
        <ProductVersion>9.0.21022</ProductVersion>
        <SchemaVersion>2.0</SchemaVersion>

        <ProjectGuid>{B1B8919C-53FA-4791-8123-2734B1F723D1}</ProjectGuid>

        <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>

    --------------------------------------------------------------------------------------------------

    --------------------------------------------------------------------------------------------------

    高版本VS2013:

    修改[解决方案文件.sln] 用记事本打开,找到如下信息:

    Microsoft Visual Studio Solution File, Format Version 12.00
    # Visual Studio 2013
    VisualStudioVersion = 12.0.31101.0
    MinimumVisualStudioVersion = 10.0.40219.1

    修改工程名.csproj:

    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <Import Project="$(MSBuildExtensionsPath)$(MSBuildToolsVersion)Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)$(MSBuildToolsVersion)Microsoft.Common.props')" />
      <PropertyGroup>
        <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
        <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
        <ProjectGuid>{6022CDCE-C809-4D35-A355-72EDDE889F9F}</ProjectGuid>
        <AppDesignerFolder>Properties</AppDesignerFolder>
        <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
        <FileAlignment>512</FileAlignment>

    ----------------------------------------------------------------------------------------------------

    如果修改.net framework版本,请注意相应的修改引用的dll的目标版本号<RequiredTargetFramework>3.5</RequiredTargetFramework>

    或者打开解决方案后,检查工程下的引用是否正常,不正常移除后重新引用一下

    vs2008转成vs2013已经试过了没问题(解决方案,工程名都能正常打开编译运行)

  • 相关阅读:
    Linux内核编译測试
    Matlab pchiptx
    汇编 -- Hook API (MessageBoxW)
    三种SVM的对偶问题
    JAVA性能优化的五种方式
    C++字符串操作笔试题第二波
    JavaScript实现拖拽预览,AJAX小文件上传
    vijos-1382 寻找主人
    百度2015商务搜索实习面试总结
    [Swift]LeetCode790. 多米诺和托米诺平铺 | Domino and Tromino Tiling
  • 原文地址:https://www.cnblogs.com/jx270/p/4202716.html
Copyright © 2011-2022 走看看