Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
Add ProjectModelTasks.CreateSolution
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Nov 9, 2019
1 parent 8e05527 commit 5a02ad7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions source/Nuke.Common/ProjectModel/ProjectModelTasks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ namespace Nuke.Common.ProjectModel
[PublicAPI]
public static class ProjectModelTasks
{
public static Solution CreateSolution(string fileName = null)
{
return SolutionSerializer.Deserialize(
new[]
{
"Microsoft Visual Studio Solution File, Format Version 12.00",
"# Visual Studio 15",
"VisualStudioVersion = 15.0.26124.0",
"MinimumVisualStudioVersion = 15.0.26124.0"
},
fileName);
}

public static Solution ParseSolution(string solutionFile)
{
return SolutionSerializer.Deserialize(solutionFile);
Expand Down

0 comments on commit 5a02ad7

Please sign in to comment.