oskardudycz / GoldenEye

The CQRS flavoured framework that will speed up your WebAPI and Microservices development
MIT License
287 stars 50 forks source link

Template is not working #81

Open AndiRudi opened 3 years ago

AndiRudi commented 3 years ago

I tried installing the template using dotnet new -i GoldenEye.WebApi.Template.SimpleDDD but couldn't get it to be listed in the .net templates.

To be sure it is not related to my machine I tried as well on my 2nd mac. Both have .net sdk 5.0.101 installed, my 2nd machine has also all other sdks from 2.2 installed.

The template is indeed downloaded and is shown under ~/.templateengine/dotnetcli/v5.0.101/content but it's not part of the list when you do dotnet new after installing.

The exact output if the installation is

dotnet new -i GoldenEye.WebApi.Template.SimpleDDD
  Determining projects to restore...
  Restored /Users/NAME/.templateengine/dotnetcli/v5.0.101/scratch/restore.csproj (in 616 ms).

and then the list does not show the GoldenEye template.

I found a workaround by specifying the direct path to the downloaded nupkg file

dotnet new -i ~/.templateengine/dotnetcli/v5.0.101/content/goldeneye.webapi.template.simpleddd.5.0.0.nupkg

I have also tried to find the issue but had no luck

oskardudycz commented 3 years ago

@AndiRudi I'm aware of that issue. The template built for .NET 3.1, and it seems not to be compatible with .NET 5. It's high on my TODO list to bring it to life.

AndiRudi commented 3 years ago

I think this example might help