在Csharp 2008 Express Edition中通过.Net framework 2生成项目 [英] generate project by .Net framework 2 in Csharp 2008 express edition

查看:71
本文介绍了在Csharp 2008 Express Edition中通过.Net framework 2生成项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我将通过C#2008 Express Edition中的.Net Framework 2.0生成项目.

我不知道如何使用.Net Framework 2.0生成项目?

谢谢

Hi,

I am going to generate project by .Net Framework 2.0 in C# 2008 Express Edition.

I don''t know how to generate a project with .Net Framework 2.0?

Thanks

推荐答案



如果我正确理解,您只是在较旧的.NET框架下编译项目,这很容易实现.打开项目,然后从主菜单中选择:

Project =>您的项目名称"属性...

位于下拉菜单的底部.现在,将为您提供一个新页面,该页面通常会在应用程序选项卡下打开.如果不是,则需要在左侧选择此选项卡.此选项卡页面的顶部将是两个文本框和两个下拉组合框(还有更多您可以忽略的组件).

左侧下拉组合框为目标框架:" .默认情况下,此设置为您已安装的最新版本(例如.NET Framework 3.5).选择此下拉组合框,您现在可以指定将程序编译为针对.NET Framework 2.0的框架.您现在要做的就是像以前一样构建程序.

但是请注意,以较低版本的.net框架为目标,您的某些程序可能无法以相同的方式执行,甚至在最坏的情况下也无法执行.如果您使用的是简单程序,那么这不会严重影响结果,但是请注意,您现在必须完全测试您的程序,以确保其在Framework 2.0下运行.

干杯
克里斯
Hi,

If I understand correctly you are simply compiling your project under an older .NET framework this is very easy to achieve. With your project open and from the main menu select:

Project=>"Your Project Name" Properties...

Situated at the bottom of the drop down menu. Now you will be presented with a new page it usually opens up under the application tab. If it doesn''t you need to select this tab on the left hand side. At the top of this tab page will be two text boxes and two drop down combo boxes (and a more components you can ignore).

The left hand side drop down combo box will be "Target Framework:". This by default is set to the most current one you have installed (e.g. .NET Framework 3.5). Select this drop down combo box and you can now designate which framework you program is compiled towards i.e. .NET Framework 2.0. All you do now is build your program as before.

Please be aware however by targeting a lower level release of .net framework some of your program may fail to execute the same way and in worst case at all. If you are using a simple program this should not effect the outcome drastically but please be aware that you must now test your program fully to ensure that it performs under Framework 2.0

Cheers
Chris


这篇关于在Csharp 2008 Express Edition中通过.Net framework 2生成项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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