问题描述
在创建Windows窗体应用程序时,我选择了.Net Framework 4.0的目标.现在,我想将其构建到.Net Framework 2.0.如何使用Visual Studio 2010做到这一点?
这是一个VB.Net项目.我看不到目标框架" .对于我的C#项目,我可以看到目标框架"属性.
对于C#项目,如果转到项目属性,则会在 Application
上找到 Target Framework
标签.将其切换到 .NET Framework 2.0
.
尝试构建和删除不受支持的名称空间.
如果使用了.NET 4特有的任何功能,则必须手动对其进行修复.
正如您提到的那样,您使用的是VB.NET.
对于VB.NET,转到项目属性,在 Compile
选项卡上,点击 Advanced Compile Options ...
.
选择目标框架:
While creating a Windows Form Application, I selected target to .Net Framework 4.0. Now I would like to build it to .Net Framework 2.0. How can I do it using Visual Studio 2010?
It is a VB.Net project. I could not see "Target Framework". For my C# projects, I can see the "Target Framework" property.
For C# project, if you go to the project properties, you will find Target Framework
on Application
tab. Switch it to .NET Framework 2.0
.
Try to build and remove unsupported namespaces.
If you used any features specific to .NET 4, you will have to fix it manually.
[Edit] As you mentioned that you use VB.NET.
For VB.NET go to project properties, hit Advanced Compile Options...
to the Compile
tab.
Select target framework:
这篇关于Windows窗体应用程序转换为.Net Framework 4.0至2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!