diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2014-02-19 00:52:36 +0400 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2014-02-19 02:47:14 +0400 |
commit | f5c21592bce411d894294bfda0ae8c0a37bd36ad (patch) | |
tree | 66afb1e06a0b27e3b95f22766aaebb75e64c4cb8 /main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies | |
parent | d1ed86f2c4f3e7759086d99b782153181657243a (diff) |
[Core] Fix TargetFrameworkVersion in project templates
It now works for frameworks woth than .NETFramework.
Diffstat (limited to 'main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetFrameworkMoniker.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetFrameworkMoniker.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetFrameworkMoniker.cs index fb261f740a..d782dc0483 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetFrameworkMoniker.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetFrameworkMoniker.cs @@ -91,7 +91,7 @@ namespace MonoDevelop.Core.Assemblies { TargetFrameworkMoniker moniker; if (!TryParse (value, out moniker)) { - throw new FormatException (string.Format ("Invalid framewokr moniker '{0}'", value)); + throw new FormatException (string.Format ("Invalid framework moniker '{0}'", value)); } return moniker; } @@ -152,13 +152,7 @@ namespace MonoDevelop.Core.Assemblies } Version v; - if (!System.Version.TryParse (version, out v)) { - identifier = ID_NET_FRAMEWORK; - version = value; - return false; - } - - return true; + return System.Version.TryParse (version, out v); } internal string ToLegacyIdString () |