I'm looking to use dotnet new to help template both old VS solutions and new dotnet type projects.
See also: VS Solution File
When manipulating an .sln for inclusion of OPTIONAL projects (i.e. giving the user the option for sub projects such as Foo.Data/Foo.Data.csproj) the .sln file would need its references updated/omitted.
In yeoman/npm
In yeoman/npm this is handled with inline code.
GlobalSection(ProjectConfigurationPlatforms) = postSolution<% for(var project in projects) { %>
{<%= projects[project].projectGuid %>}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{<%= projects[project].projectGuid %>}.Debug|Any CPU.Build.0 = Debug|Any CPU
{<%= projects[project].projectGuid %>}.Release|Any CPU.ActiveCfg = Release|Any CPU
{<%= projects[project].projectGuid %>}.Release|Any CPU.Build.0 = Release|Any CPU<% } %>
I'm looking to use
dotnet newto help template both old VS solutions and new dotnet type projects.See also: VS Solution File
When manipulating an
.slnfor inclusion of OPTIONAL projects (i.e. giving the user the option for sub projects such asFoo.Data/Foo.Data.csproj) the.slnfile would need its references updated/omitted.In yeoman/npm
In yeoman/npm this is handled with inline code.