MvxScaffolding icon indicating copy to clipboard operation
MvxScaffolding copied to clipboard

Rider Support

Open Hackmodford opened this issue 5 years ago • 3 comments

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

Hackmodford avatar Dec 16 '19 15:12 Hackmodford

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 avatar Jan 17 '21 16:01 Hackmodford

@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?

Plac3hold3r avatar Jan 18 '21 18:01 Plac3hold3r

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?

Hackmodford avatar Jan 18 '21 19:01 Hackmodford