~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildFileFormat.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
                        IList<TargetFrameworkMoniker> frameworkVersions = this.frameworkVersions;
75
75
                        return frameworkVersions.Contains (fx.Id) || supportsMonikers;
76
76
                }
 
77
 
 
78
                internal virtual bool SupportsSlnVersion (string version)
 
79
                {
 
80
                        return version == slnVersion;
 
81
                }
77
82
 
78
83
                public FilePath GetValidFormatName (object obj, FilePath fileName)
79
84
                {
257
262
                                return new MSBuildFileFormatVS08 ();
258
263
                        case "4.0":
259
264
                                return new MSBuildFileFormatVS10 ();
 
265
                        case "4.5":
 
266
                                return new MSBuildFileFormatVS12 ();
260
267
                        }
261
268
                        throw new Exception ("Unknown ToolsVersion '" + toolsVersion + "'");
262
269
                }
334
341
                        get { return "MSBuild10"; }
335
342
                }
336
343
        }
 
344
 
 
345
        class MSBuildFileFormatVS12: MSBuildFileFormat
 
346
        {
 
347
                public const string Version = "12.0.0";
 
348
                const string toolsVersion = "4.0";
 
349
                const string slnVersion = "12.00";
 
350
                const string productComment = "Visual Studio 2012";
 
351
                static TargetFrameworkMoniker[] frameworkVersions = {
 
352
                        TargetFrameworkMoniker.NET_2_0,
 
353
                        TargetFrameworkMoniker.NET_3_0,
 
354
                        TargetFrameworkMoniker.NET_3_5,
 
355
                        TargetFrameworkMoniker.NET_4_0,
 
356
                        TargetFrameworkMoniker.NET_4_5,
 
357
                        TargetFrameworkMoniker.SL_2_0,
 
358
                        TargetFrameworkMoniker.SL_3_0,
 
359
                        TargetFrameworkMoniker.SL_4_0,
 
360
                        TargetFrameworkMoniker.MONOTOUCH_1_0,
 
361
                        TargetFrameworkMoniker.PORTABLE_4_0
 
362
                };
 
363
                const bool supportsMonikers = true;
 
364
                
 
365
                public MSBuildFileFormatVS12 (): base (Version, toolsVersion, slnVersion, productComment, frameworkVersions, supportsMonikers)
 
366
                {
 
367
                }
 
368
                
 
369
                public override string Id {
 
370
                        get { return "MSBuild12"; }
 
371
                }
 
372
 
 
373
                internal override bool SupportsSlnVersion (string version)
 
374
                {
 
375
                        return version == "11.00" || version == "12.00";
 
376
                }
 
377
        }
 
378
 
337
379
}