[commit] r2373 - trunk/SDK/DotNet/CSharpComponentWizard
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Tue Oct 1 14:13:45 CDT 2013
Author: ksmyth
Date: Tue Oct 1 14:13:45 2013
New Revision: 2373
Log:
CSharpProject wiz: set TargetFramework=4.0. Fixes issues where user wants to use VS2010, but has VS2012 installed (which is used to generate the csproj)
Modified:
trunk/SDK/DotNet/CSharpComponentWizard/SolutionGenerator.cs
Modified: trunk/SDK/DotNet/CSharpComponentWizard/SolutionGenerator.cs
==============================================================================
--- trunk/SDK/DotNet/CSharpComponentWizard/SolutionGenerator.cs Tue Oct 1 14:13:35 2013 (r2372)
+++ trunk/SDK/DotNet/CSharpComponentWizard/SolutionGenerator.cs Tue Oct 1 14:13:45 2013 (r2373)
@@ -7,6 +7,7 @@
using EnvDTE80;
using EnvDTE100;
using DSM;
+using System.Runtime.Versioning;
namespace CSharpComponentWizard
{
@@ -104,6 +105,10 @@
string TemplatePath = sln.GetProjectTemplate(SolutionGenerator.TemplateFileName, "CSharp");
sln.AddFromTemplate(TemplatePath, outputfolder, SolutionName, false);
+ var project = sln.Projects.Item(1);
+ var dotNetVersion = new FrameworkName(".NETFramework", new Version(4, 0));
+ var fullname = dotNetVersion.FullName;
+ project.Properties.Item("TargetFrameworkMoniker").Value = dotNetVersion.FullName;
sln.Close();
}
finally
More information about the gme-commit
mailing list