更改默认的目标框架的Visual Studio 2010框架、目标、Visual、Studio

由网友(不冷不熱的心)分享简介:有没有办法在Visual Studio 2010中更改默认的目标框架,项目点在创建时?我想要的目标4.0。框架默认情况下并没有4.0框架的客户端配置文件版本。Is there a way in Visual Studio 2010 to change the default target framework that...

有没有办法在Visual Studio 2010中更改默认的目标框架,项目点在创建时?我想要的目标4.0。框架默认情况下并没有4.0框架的客户端配置文件版本。

Is there a way in Visual Studio 2010 to change the default target framework that projects point to when they are created? I want to target the 4.0. framework by default and NOT the Client Profile version of the 4.0 framework.

推荐答案

Visual Studio 2010中(及以上版本)会记住你使用文件时,选择了最后一个目标框架 - >新 - >新建项目。所以,如果你创建一个使用4.0一个新的项目,下一次你创建一个新的项目4.0将pselected为目标框架$ P $。

Visual Studio 2010 (and older versions) will remember the last target framework you chose when using File -> New -> New Project. So if you create a new project using 4.0, the next time you create a new project 4.0 will be preselected as the target framework.

编辑:继以下评论:

说完看着这一点还有另一种解决方案是稍微比我贴在下面的意见链路上的信息较少faffy。

Having looked at this a little more there is another solution that is slightly less faffy than the info on the link I posted in the comments below.

创建一个新的解决方案/项目所需的设置,然后转到文件 - >导出模板。当你这样做有你就可以使用新的模板,当你去文件 - >新 - >新建项目

Create a new solution/project with the setup you need, then goto File -> Export Template. After you have done there you can then use your new template when you go File -> New -> New Project.

似乎工作,虽然没有彻底测试它。

Seems to work, not thoroughly tested it though.

阅读全文

相关推荐

最新文章