如何将VS2013项目转换为VS2008 [英] How to convert VS2013 Project to VS2008

查看:502
本文介绍了如何将VS2013项目转换为VS2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Visual Studio 2013中创建了应用程序,但我的客户端希望我的项目与Visual Studio 2008 exe相同。

我只是想知道如何转换而不会丢失任何文件。



问候,

Vasanth

I have created the application in the Visual Studio 2013, But my Client want me the same the project as Visual Studio 2008 exe.
I just want to know how to convert simply without any file missed.

Regards,
Vasanth

推荐答案

在.NET中,编译的Visual Studio版本没有区别,但是.NET版本是什么。 Visual Studio 2008编译.NET Framework 2.0的项目...转到并配置您在Visual Studio 2013中的项目以编译相同的版本(默认版本为4.5)...
In .NET exe does not differ in what version of Visual Studio it has been compiled, but for what version of .NET. Visual Studio 2008 compiles projects for .NET Framework 2.0...Go and configure you project in Visual Studio 2013 to compile for the same version (the default there is version 4.5)...


如果(当你回复谢尔盖)你想要提供与VS 2008兼容的源代码时,你几乎肯定需要在VS 2008中重新构建你的项目。但是,VS 2008可以针对FrameWork 3.5进行编译,那你为什么要这样做呢?需要2.0?



imho会让你的目标得到你的源码来编译3.5。



没有知道FrameWorks的哪些设施> 3.5你使用(依赖),所涉及的工作量是不可预测的。



如果你真的是.NET专家,也许你可以只查看你的来源并弄清楚是什么你必须改变,或者重新做。



这是我要做的事情来尝试和评估所涉及的工作:



1.在文本编辑器中打开当前VS 2013项目的所有文件(.cs)。



2.创建一个新的在VS 2008中添加项目。添加对VS 2013项目所需库的引用(只要它们不是FrameWork的库> 3.5)。



3.添加表单,用户控件,类等与VS 2013项目的VS 2013项目中的项目具有相同的名称,将VS 2013文件中使用的代码复制并粘贴到VS 2008新文件中。



4.尝试并构建到3.5,然后评估什么/不起作用。



5.向客户收费更多的钱!
If (as you replied to Sergey) you want to deliver source code compatible with VS 2008, you are almost certainly going to need to re-build your project in VS 2008. But, VS 2008 can compile against FrameWork 3.5, so why do you need 2.0 ?

imho that would make your target getting your source to compile against 3.5.

Without knowing what facilities of FrameWorks > 3.5 you used (dependencies), the amount of work involved is unpredictable.

If you are really expert in .NET perhaps you can just review your source and figure out what you'll have to change, or re-do.

Here's what I would do to try and assess the work involved:

1. open all the files (.cs) of the current VS 2013 project in a text-editor.

2. create a new project in VS 2008. Add references to the libraries required for the VS 2013 project (as long as they are not libraries for FrameWork > 3.5).

3. add Forms, UserControls, Classes, etc. with the same names as those items in the VS 2013 Project to the VS 2008 project, copy and paste in the code used in the VS 2013 files into the VS 2008 new files.

4. Try and build to 3.5, and then assess what does/does not work.

5. Charge the client a lot more money !


这篇关于如何将VS2013项目转换为VS2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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