Skip to content

Commit

Permalink
Actually add it to the project properly
Browse files Browse the repository at this point in the history
  • Loading branch information
MichielOda committed Nov 19, 2024
1 parent 386a01e commit 8cf5814
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Parsers.Common/VisualStudio/Projects/IProjectParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ internal interface IProjectParser
string GetTargetFrameworkMoniker();

IEnumerable<ProjectFile> GetSharedProjectCompileFiles();

DataMinerProjectType? GetDataMinerProjectType();
}
}
3 changes: 2 additions & 1 deletion Parsers.Common/VisualStudio/Projects/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private Project()
/// <summary>
/// Gets the DataMiner project type.
/// </summary>
public DataMinerProjectType DataMinerProjectType { get; set; }
public DataMinerProjectType? DataMinerProjectType { get; set; }

/// <summary>
/// Gets the project files.
Expand Down Expand Up @@ -181,6 +181,7 @@ public static Project Load(string path, string projectName)
project._files.AddRange(parser.GetSharedProjectCompileFiles());

project.TargetFrameworkMoniker = parser.GetTargetFrameworkMoniker();
project.DataMinerProjectType = parser.GetDataMinerProjectType();

return project;
}
Expand Down

0 comments on commit 8cf5814

Please sign in to comment.