You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
995 B
C#
27 lines
995 B
C#
1 year ago
|
/*---------------------------------------------------------------------------------------------
|
||
|
* Copyright (c) Unity Technologies.
|
||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||
|
*--------------------------------------------------------------------------------------------*/
|
||
|
namespace Microsoft.Unity.VisualStudio.Editor
|
||
|
{
|
||
|
public interface IGUIDGenerator
|
||
|
{
|
||
|
string ProjectGuid(string projectName, string assemblyName);
|
||
|
string SolutionGuid(string projectName, ScriptingLanguage scriptingLanguage);
|
||
|
}
|
||
|
|
||
|
class GUIDProvider : IGUIDGenerator
|
||
|
{
|
||
|
public string ProjectGuid(string projectName, string assemblyName)
|
||
|
{
|
||
|
return SolutionGuidGenerator.GuidForProject(projectName + assemblyName);
|
||
|
}
|
||
|
|
||
|
public string SolutionGuid(string projectName, ScriptingLanguage scriptingLanguage)
|
||
|
{
|
||
|
return SolutionGuidGenerator.GuidForSolution(projectName, scriptingLanguage);
|
||
|
}
|
||
|
}
|
||
|
}
|