You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
671 B
21 lines
671 B
namespace VSCodeEditor |
|
{ |
|
public interface IGUIDGenerator |
|
{ |
|
string ProjectGuid(string projectName, string assemblyName); |
|
string SolutionGuid(string projectName, string extension); |
|
} |
|
|
|
class GUIDProvider : IGUIDGenerator |
|
{ |
|
public string ProjectGuid(string projectName, string assemblyName) |
|
{ |
|
return SolutionGuidGenerator.GuidForProject(projectName + assemblyName); |
|
} |
|
|
|
public string SolutionGuid(string projectName, string extension) |
|
{ |
|
return SolutionGuidGenerator.GuidForSolution(projectName, extension); // GetExtensionOfSourceFiles(assembly.sourceFiles) |
|
} |
|
} |
|
}
|
|
|