static void SetFileType(ProjectFile file, IFileTypeHierarchy fileTypeHierarchy) { var fileType = fileTypeHierarchy.GetFileType(file.FullPath); file.BuildAction = BuildAction.Compile; if (fileType == null) return; file.BuildAction = fileType.BuildAction; file.DependentUpon = fileType.DependentUpon; }
public void AddFile(ProjectFile projectFile) { if (projectFile == null) throw new ArgumentNullException("projectFile"); projectFiles.Add(projectFile); }