peachpie: Installing Peachpie .NET templates doesn't work

Issue

When i ran dotnet new -i Peachpie.Templates::*, it just showed a list of available default built-in templates in .NET Core SDK:

Template Name                                 Short Name           Language        Tags
--------------------------------------------  -------------------  --------------  ----------------------
Console Application                           console              [C#],F#,PHP,VB  Common/Console
Class library                                 classlib             [C#],F#,PHP,VB  Common/Library
WPF Application                               wpf                  [C#],VB         Common/WPF
WPF Class library                             wpflib               [C#],VB         Common/WPF
WPF Custom Control Library                    wpfcustomcontrollib  [C#],VB         Common/WPF
WPF User Control Library                      wpfusercontrollib    [C#],VB         Common/WPF
Windows Forms App                             winforms             [C#],VB         Common/WinForms
Windows Forms Control Library                 winformscontrollib   [C#],VB         Common/WinForms
Windows Forms Class Library                   winformslib          [C#],VB         Common/WinForms
Worker Service                                worker               [C#],F#         Common/Worker/Web
MSTest Test Project                           mstest               [C#],F#,VB      Test/MSTest
NUnit 3 Test Item                             nunit-test           [C#],F#,VB      Test/NUnit
NUnit 3 Test Project                          nunit                [C#],F#,VB      Test/NUnit
xUnit Test Project                            xunit                [C#],F#,VB      Test/xUnit
Razor Component                               razorcomponent       [C#]            Web/ASP.NET
Razor Page                                    page                 [C#]            Web/ASP.NET
MVC ViewImports                               viewimports          [C#]            Web/ASP.NET
MVC ViewStart                                 viewstart            [C#]            Web/ASP.NET
Blazor Server App                             blazorserver         [C#]            Web/Blazor
Blazor WebAssembly App                        blazorwasm           [C#]            Web/Blazor/WebAssembly
ASP.NET Core Empty                            web                  [C#],F#,PHP     Web/Empty
ASP.NET Core Web App (Model-View-Controller)  mvc                  [C#],F#         Web/MVC
ASP.NET Core Web App                          webapp               [C#]            Web/MVC/Razor Pages
ASP.NET Core with Angular                     angular              [C#]            Web/MVC/SPA
ASP.NET Core with React.js                    react                [C#]            Web/MVC/SPA
ASP.NET Core with React.js and Redux          reactredux           [C#]            Web/MVC/SPA
Razor Class Library                           razorclasslib        [C#]            Web/Razor/Library
ASP.NET Core Web API                          webapi               [C#],F#         Web/WebAPI
ASP.NET Core gRPC Service                     grpc                 [C#]            Web/gRPC
dotnet gitignore file                         gitignore                            Config
global.json file                              globaljson                           Config
NuGet Config                                  nugetconfig                          Config
Dotnet local tool manifest file               tool-manifest                        Config
Web Config                                    webconfig                            Config
Solution File                                 sln                                  Solution
Protocol Buffer File                          proto                                Web/gRPC

Examples:
    dotnet new mvc --auth Individual
    dotnet new web
    dotnet new --help
    dotnet new web --help

System Information

  • Operating System: Windows 10 Version 21H1 (Build 19043.1083) - x86 64-bit
  • Installed .NET SDKs: .NET Core SDK 3.1.410 (x64), .NET SDK 5.0.301 (x64)
  • Command Line dotnet Version: 5.0.301

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 32 (18 by maintainers)

Most upvoted comments

I will explain it now.

So, I remembered that I set a MSBuildSDKsPath environment variable while figuring out a solution for the issue. Then I checked the environment variable. It was set C:\Program Files\dotnet\sdk\3.1.410\Sdks. Then I changed it to C:\Program Files\dotnet\sdk\5.0.301\Sdks, and it solved the issue.

I managed to figure out and solve the issue. So, the issue is with the environment variable. I’ll explain further soon.