private static string ConvertFileTypeToVcxProjElement(ProjectSourceFileType fileType) { switch (fileType) { case ProjectSourceFileType.SourceCode: return("ClCompile"); case ProjectSourceFileType.SourceCodeAssembler: return("MASM"); case ProjectSourceFileType.SourceCodeObjective: case ProjectSourceFileType.HeaderFile: return("ClInclude"); case ProjectSourceFileType.InlineImplementation: return("None"); case ProjectSourceFileType.ResourceScript: return("ResourceCompile"); default: throw new NotImplementedException(); } }
/// <summary> /// Initializes new source file. /// </summary> /// <param name="filePath">Path to source file.</param> /// <param name="fileType">Type of source file.</param> public ProjectFile(string filePath, ProjectSourceFileType fileType) { FilePath = filePath; FileType = fileType; }