public static string GuidForSolution(string projectName, string sourceFileExtension) { string result; if (sourceFileExtension.ToLower() == "cs") { result = "FAE04EC0-301F-11D3-BF4B-00C04F79EFBC"; } else { result = SolutionGuidGenerator.ComputeGuidHashFor(projectName); } return(result); }
public static string GuidForProject(string projectName) { return(SolutionGuidGenerator.ComputeGuidHashFor(projectName + "salt")); }
private static string ComputeGuidHashFor(string input) { byte[] bs = MD5.Create().ComputeHash(Encoding.Default.GetBytes(input)); return(SolutionGuidGenerator.HashAsGuid(SolutionGuidGenerator.HashToString(bs))); }
private string ProjectGuid(string assembly) { return(SolutionGuidGenerator.GuidForProject(this._projectName + Path.GetFileNameWithoutExtension(assembly))); }
string SolutionGuid(MonoIsland island) { return(SolutionGuidGenerator.GuidForSolution(_projectName, island.GetExtensionOfSourceFiles())); }
string ProjectGuid(string assembly) { return(SolutionGuidGenerator.GuidForProject(_projectName + Utility.FileNameWithoutExtension(assembly))); }
private string SolutionGuid() { return(SolutionGuidGenerator.GuidForSolution(this._projectName)); }