开发者

Is there a way to prevent new console app projects from defaulting to .NET Framework 4 Client Profile?

开发者 https://www.devze.com 2023-04-05 17:31 出处:网络
In the New Project dialog of Visual Studio 2010, under Installed Templates->Visual C#... if I cho开发者_C百科ose Console Application and make sure .NET Framework 4 is selected in the drop-down menu ov

In the New Project dialog of Visual Studio 2010, under Installed Templates->Visual C#... if I cho开发者_C百科ose Console Application and make sure .NET Framework 4 is selected in the drop-down menu overhead, my new project defaults to .NET Framework 4 Client Profile.

Is there a way to force this to default to .NET Framework 4 instead of the client profile?


You can edit C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplatesCache\CSharp\Windows\1033\ConsoleApplication.zi‌​p\consoleapplication.csproj, remove <TargetFrameworkProfile>.


I dont think you can change it in the original templates without the use of black magic. If its really annoying for your, you can create a custom template based on the original ones, having the target framework set to the full framework. See the following link on how to create a new template based on an existing project MSDN


.NET Framework 4 Client Profile is default for all Windows desctop applications. Windows Forms, Console, WPF

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号