MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService.GetExeLocation C# (CSharp) Méthode

GetExeLocation() static private méthode

static private GetExeLocation ( MonoDevelop.Core.Assemblies.TargetRuntime runtime, string toolsVersion ) : string
runtime MonoDevelop.Core.Assemblies.TargetRuntime
toolsVersion string
Résultat string
		static string GetExeLocation (TargetRuntime runtime, string toolsVersion)
		{
			FilePath sourceExe = typeof(MSBuildProjectService).Assembly.Location;

			if ((runtime is MsNetTargetRuntime) && int.Parse (toolsVersion.Split ('.')[0]) >= 4)
				toolsVersion = "dotnet." + toolsVersion;

			var exe = sourceExe.ParentDirectory.Combine ("MSBuild", toolsVersion, "MonoDevelop.Projects.Formats.MSBuild.exe");
			if (File.Exists (exe))
				return exe;
			
			throw new InvalidOperationException ("Unsupported MSBuild ToolsVersion '" + toolsVersion + "'");
		}