Plac3hold3r/MvxScaffolding

Rider Support

Hackmodford opened this issue · 3 comments

Is it possible to have this as a plugin for Jetbrain's Rider IDE?

Was reading up on how to do this.

Rider supports templates via dotnet new.
I'm guessing Rider simply doesn't support all of the features in the template file.

Screen Shot 2021-01-17 at 11 06 22 AM

@Hackmodford if I understand correctly (I have not used Rider before) the top part "Solution name:" "Project name:" is all inferred from the template options, but the other config options are not?

I'm not sure.

According to their doc, you can do something like this.

{
  "author": "Your Name",
  "name": "Async Main Console Application",
  "description": "A project for creating a command-line application that can run on .NET Core on Windows, Linux and macOS, and has an async Main method.",
  "identity": "YourName.ConsoleApp.1.0",
  "shortName": "consoleasync",
  "tags": {
    "language": "C#",
    "type": "project"
  },
  "sourceName": "MyProject",
  "symbols": {
    "Framework": {
      "type": "parameter",
      "description": "The target framework for the project.",
      "datatype": "choice",
      "choices": [
        {
          "choice": "netcoreapp2.0"
        },
        {
          "choice": "netcoreapp3.0"
        }
      ],
      "defaultValue": "netcoreapp2.0"
    }
  }
}

And expect to see this.
custom_project_template

But it doesn't seem to work in our case. So maybe they just don't support all the configuration options of dotnet new?