Skip to content

Solution template - making sure solution-level items exist in same folder as .sln #31

@Capsup

Description

@Capsup

I have a multi-project solution template and with the recent change to 16.10, I can now use solution-type templates and they work great in the .NET CLI.
However, in a Visual Studio host, I run into an issue if the user selects not to have the solution and project file be in the same location, in the Visual Studio creation dialog, because VS generates a new solution file at a folder level above whatever the template specifies.

I have a .editorconfig and nuget.config files that needs to be alongside the .sln to be loaded, but if the above option is chosen, then those files will end up being created in the child folder. If I select the above option, then it works just like it does with the CLI.

Is there any way for me to output those files in the correct location, depending on whatever the user selects in that dialog?

My template.json can be found here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions