示例#1
0
 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;
 }
示例#2
0
 public void AddFile(ProjectFile projectFile)
 {
     if (projectFile == null) throw new ArgumentNullException("projectFile");
     projectFiles.Add(projectFile);
 }