GUIDProvider.cs 995 B

1234567891011121314151617181920212223242526
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Unity Technologies.
  3. * Copyright (c) Microsoft Corporation. All rights reserved.
  4. * Licensed under the MIT License. See License.txt in the project root for license information.
  5. *--------------------------------------------------------------------------------------------*/
  6. namespace Microsoft.Unity.VisualStudio.Editor
  7. {
  8. public interface IGUIDGenerator
  9. {
  10. string ProjectGuid(string projectName, string assemblyName);
  11. string SolutionGuid(string projectName, ScriptingLanguage scriptingLanguage);
  12. }
  13. class GUIDProvider : IGUIDGenerator
  14. {
  15. public string ProjectGuid(string projectName, string assemblyName)
  16. {
  17. return SolutionGuidGenerator.GuidForProject(projectName + assemblyName);
  18. }
  19. public string SolutionGuid(string projectName, ScriptingLanguage scriptingLanguage)
  20. {
  21. return SolutionGuidGenerator.GuidForSolution(projectName, scriptingLanguage);
  22. }
  23. }
  24. }