《LYFvs2013转vs2010》

《LYFvs2013转vs2010》
1.修改解决方案文件(**.sln)
将-------------------------------------------------------------
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
改为--------------------->>------------------------------------
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010

2.修改工程文件(**.csproj)
ctrl+f 查找以下标签两次,并删除或注释,如果没有此标签,则不管
<PlatformToolset>v100</PlatformToolset>

3.修改配置文件(**.config)
将------------------------------------------------------------------------
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
改为---------------------------->>---------------------------------------
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
4.完成

***理解****************************************************************************************************************
看看2013的解决方案的文件:
Microsoft Visual Studio Solution File, Format Version 12.00 //格式版本
# Visual Studio 2013 //vs版本
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1 //最低vs版本
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lyfMusicPlay", "lyfMusicPlay\lyfMusicPlay.csproj", "{53C2FFBD-5D7C-475F-AE12-2477C359E2C3}"
EndProject
Global //全局
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{53C2FFBD-5D7C-475F-AE12-2477C359E2C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{53C2FFBD-5D7C-475F-AE12-2477C359E2C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{53C2FFBD-5D7C-475F-AE12-2477C359E2C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{53C2FFBD-5D7C-475F-AE12-2477C359E2C3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal //结束全局
2010的解决方案的文件----------------------------------------------------------------------------------
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApplication1", "WindowsFormsApplication1\WindowsFormsApplication1.csproj", "{1765E0E8-D447-4C60-A7CD-05EECC79062F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1765E0E8-D447-4C60-A7CD-05EECC79062F}.Debug|x86.ActiveCfg = Debug|x86
{1765E0E8-D447-4C60-A7CD-05EECC79062F}.Debug|x86.Build.0 = Debug|x86
{1765E0E8-D447-4C60-A7CD-05EECC79062F}.Release|x86.ActiveCfg = Release|x86
{1765E0E8-D447-4C60-A7CD-05EECC79062F}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
=======================================================================================================================
2013的工程文件:
<?xml version="1.0" encoding="utf-8"?>
<!--工程 工具版本="12.0" -->
<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>{53C2FFBD-5D7C-475F-AE12-2477C359E2C3}</ProjectGuid> <!--工程ID -->
<OutputType>WinExe</OutputType> <!--输出类型:生成的是EXE窗体-->
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>lyfMusicPlay</RootNamespace> <!-- 根空间名称 -->
<AssemblyName>lyfMusicPlay</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <!-- 目标框架版本 -->
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" ‘$(Configuration)|$(Platform)‘ == ‘Debug|AnyCPU‘ ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" ‘$(Configuration)|$(Platform)‘ == ‘Release|AnyCPU‘ ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="IrisSkin, Version=2006.3.22.45, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>bin\Debug\IrisSkin.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data.Linq" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="LYFfrm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="LYFfrm.Designer.cs">
<DependentUpon>LYFfrm.cs</DependentUpon>
</Compile>
<Compile Include="LYFSongDB.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>LYFSongDB.dbml</DependentUpon>
</Compile>
<Compile Include="MusicDBModel.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Song.cs" />
<EmbeddedResource Include="LYFfrm.resx">
<DependentUpon>LYFfrm.cs</DependentUpon>
</EmbeddedResource>
<None Include="bin\Debug\lyfEXE\LYFScanbin\Debug\LYFScan.exe.config" />
<None Include="bin\Debug\lyfEXE\LYFScanbin\Debug\LYFScan.vshost.exe.config" />
<None Include="bin\Debug\lyfEXE\LYFScanbin\Debug\LYFScan.vshost.exe.manifest" />
<None Include="LYFSongDB.dbml.layout">
<DependentUpon>LYFSongDB.dbml</DependentUpon>
</None>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="bin\Debug\lyfEXE\肥皂泡泡.scr" />
<None Include="bin\Debug\LYFimages\player_skin.bmp" />
<None Include="bin\Debug\LyfMusic\易欣 - 一天爱一点.LRC" />
<None Include="bin\Debug\LyfMusic\昨日重现-Yes.lrc" />
<None Include="LYFSongDB.dbml">
<Generator>MSLinqToSQLGenerator</Generator>
<LastGenOutput>LYFSongDB.designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</None>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<COMReference Include="AxWMPLib">
<Guid>{6BF52A50-394A-11D3-B153-00C04F79FAA6}</Guid>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>aximp</WrapperTool>
<Isolated>False</Isolated>
</COMReference>
<COMReference Include="WMPLib">
<Guid>{6BF52A50-394A-11D3-B153-00C04F79FAA6}</Guid>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<ItemGroup>
<None Include="bin\Debug\LYFimages\hot-playlist_add.bmp" />
</ItemGroup>
<ItemGroup>
<None Include="bin\Debug\LYFimages\hot-playlist_model.bmp" />
</ItemGroup>
<ItemGroup>
<None Include="bin\Debug\LYFimages\hot-playlist_del.bmp" />
</ItemGroup>
<ItemGroup>
<None Include="bin\Debug\LYFimages\hot-playlist_sort.bmp" />
</ItemGroup>
<ItemGroup>
<None Include="bin\Debug\LYFimages\未命名2.jpg" />
</ItemGroup>
<ItemGroup>
<Content Include="bin\Debug\ico\aac.ico" />
<Content Include="bin\Debug\ico\lyf.ico" />
<Content Include="bin\Debug\ico\lyf1.ico" />
<Content Include="bin\Debug\ico\lyf3.ico" />
<None Include="bin\Debug\ico\ThumbnailToolbar.bmp" />
<None Include="bin\Debug\LYFimages\playlist_center.bmp" />
<Content Include="bin\Debug\lyfEXE\LYFScanbin\Debug\lyf3.ico" />
<Content Include="bin\Debug\lyfEXE\LYFScanbin\Debug\LYFScan.exe" />
<Content Include="bin\Debug\lyfEXE\LYFScanbin\Debug\LYFScan.pdb" />
<Content Include="bin\Debug\lyfEXE\LYFScanbin\Debug\LYFScan.vshost.exe" />
<Content Include="bin\Debug\LyfMusic\易欣 - 一天爱一点.mp3" />
<Content Include="bin\Debug\LyfMusic\昨日重现-Yes.mp3" />
<Content Include="bin\Debug\LYFPicture\0.jpg" />
<Content Include="bin\Debug\LYFPicture\1.jpg" />
<Content Include="bin\Debug\LYFPicture\2.jpg" />
<Content Include="bin\Debug\LYFPicture\3.jpg" />
<Content Include="bin\Debug\LYFPicture\4.jpg" />
<Content Include="bin\Debug\LYFPicture\5.jpg" />
<Content Include="bin\Debug\LYFPicture\6.jpg" />
<Content Include="bin\Debug\LYFPicture\7.jpg" />
<Content Include="bin\Debug\LYFPicture\8.jpg" />
<Content Include="bin\Debug\lyf说明.html" />
<Content Include="bin\Debug\tyyykw.wav" />
</ItemGroup>
<ItemGroup>
<Service Include="{3259AA49-8AA1-44D3-9025-A0B520596A8C}" />
</ItemGroup>
<ItemGroup>
<Folder Include="bin\Debug\lyfEXE\LYFScanbin\Release\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
2010的工程文件--------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" ‘$(Configuration)‘ == ‘‘ ">Debug</Configuration>
<Platform Condition=" ‘$(Platform)‘ == ‘‘ ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{1765E0E8-D447-4C60-A7CD-05EECC79062F}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>WindowsFormsApplication1</RootNamespace>
<AssemblyName>WindowsFormsApplication1</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" ‘$(Configuration)|$(Platform)‘ == ‘Debug|x86‘ ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" ‘$(Configuration)|$(Platform)‘ == ‘Release|x86‘ ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
=========================================================================================================
2013的配置文件:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="lyfMusicPlay.Properties.Settings.LYFDBConnectionString"
connectionString="Data Source=.;Initial Catalog=LYFDB;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
2010无配置文件

时间: 2024-10-27 03:48:04

《LYFvs2013转vs2010》的相关文章

CI框架源码阅读笔记3 全局函数Common.php

从本篇开始,将深入CI框架的内部,一步步去探索这个框架的实现.结构和设计. Common.php文件定义了一系列的全局函数(一般来说,全局函数具有最高的加载优先权,因此大多数的框架中BootStrap引导文件都会最先引入全局函数,以便于之后的处理工作). 打开Common.php中,第一行代码就非常诡异: if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 上一篇(CI框架源码阅读笔记2 一切的入口 index

IOS测试框架之:athrun的InstrumentDriver源码阅读笔记

athrun的InstrumentDriver源码阅读笔记 作者:唯一 athrun是淘宝的开源测试项目,InstrumentDriver是ios端的实现,之前在公司项目中用过这个框架,没有深入了解,现在回来记录下. 官方介绍:http://code.taobao.org/p/athrun/wiki/instrumentDriver/ 优点:这个框架是对UIAutomation的java实现,在代码提示.用例维护方面比UIAutomation强多了,借junit4的光,我们可以通过junit4的

Yii源码阅读笔记 - 日志组件

?使用 Yii框架为开发者提供两个静态方法进行日志记录: Yii::log($message, $level, $category);Yii::trace($message, $category); 两者的区别在于后者依赖于应用开启调试模式,即定义常量YII_DEBUG: defined('YII_DEBUG') or define('YII_DEBUG', true); Yii::log方法的调用需要指定message的level和category.category是格式为“xxx.yyy.z

源码阅读笔记 - 1 MSVC2015中的std::sort

大约寒假开始的时候我就已经把std::sort的源码阅读完毕并理解其中的做法了,到了寒假结尾,姑且把它写出来 这是我的第一篇源码阅读笔记,以后会发更多的,包括算法和库实现,源码会按照我自己的代码风格格式化,去掉或者展开用于条件编译或者debug检查的宏,依重要程度重新排序函数,但是不会改变命名方式(虽然MSVC的STL命名实在是我不能接受的那种),对于代码块的解释会在代码块前(上面)用注释标明. template<class _RanIt, class _Diff, class _Pr> in

CI框架源码阅读笔记5 基准测试 BenchMark.php

上一篇博客(CI框架源码阅读笔记4 引导文件CodeIgniter.php)中,我们已经看到:CI中核心流程的核心功能都是由不同的组件来完成的.这些组件类似于一个一个单独的模块,不同的模块完成不同的功能,各模块之间可以相互调用,共同构成了CI的核心骨架. 从本篇开始,将进一步去分析各组件的实现细节,深入CI核心的黑盒内部(研究之后,其实就应该是白盒了,仅仅对于应用来说,它应该算是黑盒),从而更好的去认识.把握这个框架. 按照惯例,在开始之前,我们贴上CI中不完全的核心组件图: 由于BenchMa

CI框架源码阅读笔记2 一切的入口 index.php

上一节(CI框架源码阅读笔记1 - 环境准备.基本术语和框架流程)中,我们提到了CI框架的基本流程,这里这次贴出流程图,以备参考: 作为CI框架的入口文件,源码阅读,自然由此开始.在源码阅读的过程中,我们并不会逐行进行解释,而只解释核心的功能和实现. 1.       设置应用程序环境 define('ENVIRONMENT', 'development'); 这里的development可以是任何你喜欢的环境名称(比如dev,再如test),相对应的,你要在下面的switch case代码块中

Apache Storm源码阅读笔记

欢迎转载,转载请注明出处. 楔子 自从建了Spark交流的QQ群之后,热情加入的同学不少,大家不仅对Spark很热衷对于Storm也是充满好奇.大家都提到一个问题就是有关storm内部实现机理的资料比较少,理解起来非常费劲. 尽管自己也陆续对storm的源码走读发表了一些博文,当时写的时候比较匆忙,有时候衔接的不是太好,此番做了一些整理,主要是针对TridentTopology部分,修改过的内容采用pdf格式发布,方便打印. 文章中有些内容的理解得益于徐明明和fxjwind两位的指点,非常感谢.

CI框架源码阅读笔记4 引导文件CodeIgniter.php

到了这里,终于进入CI框架的核心了.既然是"引导"文件,那么就是对用户的请求.参数等做相应的导向,让用户请求和数据流按照正确的线路各就各位.例如,用户的请求url: http://you.host.com/usr/reg 经过引导文件,实际上会交给Application中的UsrController控制器的reg方法去处理. 这之中,CodeIgniter.php做了哪些工作?我们一步步来看. 1.    导入预定义常量.框架环境初始化 之前的一篇博客(CI框架源码阅读笔记2 一切的入

jdk源码阅读笔记之java集合框架(二)(ArrayList)

关于ArrayList的分析,会从且仅从其添加(add)与删除(remove)方法入手. ArrayList类定义: p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Monaco } span.s1 { color: #931a68 } public class ArrayList<E> extends AbstractList<E> implements List<E> ArrayList基本属性: /** *

dubbo源码阅读笔记--服务调用时序

上接dubbo源码阅读笔记--暴露服务时序,继续梳理服务调用时序,下图右面红线流程. 整理了调用时序图 分为3步,connect,decode,invoke. 连接 AllChannelHandler.connected(Channel) line: 38 HeartbeatHandler.connected(Channel) line: 47 MultiMessageHandler(AbstractChannelHandlerDelegate).connected(Channel) line: