Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

Handling optional project ref in .sln files? #38

@jdkang

Description

@jdkang

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<% } %>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions