src/T4Toolbox.VisualStudio/OutputFileManager.cs
/// <summary>
/// Returns a list of item types available in the specified <paramref name="project" />.
/// </summary>
Returns a list of item types available in the specified .
Returns a list of item types available in the specified .
private static ICollection<string> GetAvailableItemTypes(Project project)
        {
            var itemTypes = new List<string> { ItemType.None, ItemType.Compile, ItemType.Content, ItemType.EmbeddedResource };
            var projectInstance = new ProjectInstance(project.FullName);
            foreach (ProjectItemInstance item in projectInstance.Items)
            {
                if (item.ItemType == "AvailableItemName")
                {
                    itemTypes.Add(item.EvaluatedInclude);
                }
            }
            return itemTypes;
        }
private static ICollection < string > GetAvailableItemTypes ( Project project ) { var itemTypes = new List < string > { ItemType . None , ItemType . Compile , ItemType . Content , ItemType . EmbeddedResource } ; var projectInstance = new ProjectInstance ( project . FullName ) ; foreach ( ProjectItemInstance item in projectInstance . Items ) { if ( item . ItemType == " " ) { itemTypes . Add ( item . EvaluatedInclude ) ; } } return itemTypes ; }
Returns a list of item types available in the specified .
Returns a list of item types available in the specified .
project
Project