コード例 #1
0
ファイル: ProjectGeneration.cs プロジェクト: super-180/first
        /// <summary>
        /// Get a Project("{guid}") = "MyProject", "MyProject.unityproj", "{projectguid}"
        /// entry for each relevant language
        /// </summary>
        string GetProjectEntries(IEnumerable <Assembly> islands)
        {
            var projectEntries = islands.Select(i => string.Format(
                                                    m_SolutionProjectEntryTemplate,
                                                    m_GUIDGenerator.SolutionGuid(m_ProjectName, GetExtensionOfSourceFiles(i.sourceFiles)),
                                                    i.name,
                                                    Path.GetFileName(ProjectFile(i)),
                                                    ProjectGuid(i)
                                                    ));

            return(string.Join(Environment.NewLine, projectEntries.ToArray()));
        }
コード例 #2
0
 string SolutionGuid(Assembly assembly)
 {
     return(m_GUIDProvider.SolutionGuid(m_ProjectName, GetExtensionOfSourceFiles(assembly.sourceFiles)));
 }
コード例 #3
0
 string SolutionGuid(Assembly assembly)
 {
     return(m_GUIDGenerator.SolutionGuid(m_ProjectName, ScriptingLanguageFor(assembly)));
 }