question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet new -i Avalonia.Templates doesnt work

See original GitHub issue

Im trying to install Avalonia templates to my system. Im using linux.

dotnet new -i Avalonia.Templates

Expected behavior Need to install template so I can select it under “New Solution” from Jetbrains Rider IDE. image

Screenshots image

Desktop (please complete the following information): Linux zorinos 5.4.0-65-generic #73~18.04.1-Ubuntu SMP Tue Jan 19 09:02:24 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

╰─ dotnet --info                                                              ─╯
.NET SDK (reflecting any global.json):
 Version:   5.0.103
 Commit:    72dec52dbd

Runtime Environment:
 OS Name:     zorin
 OS Version:  15
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /home/ajinkya/dotnet/sdk/5.0.103/

Host (useful for support):
  Version: 5.0.3
  Commit:  c636bbdc8a

.NET SDKs installed:
  5.0.103 [/home/ajinkya/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.3 [/home/ajinkya/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.3 [/home/ajinkya/dotnet/shared/Microsoft.NETCore.App]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
steelxcommented, Feb 26, 2021

@steelx you didnt show if there was an error or what went wrong?

Im new to C#. I was trying to install this template from CLI hoping it would appear inside Rider IDE.

when I type this cmd in terminal to do so: dotnet new -i Avalonia.Templates

I get this below message, but there is info of success or error. image

0reactions
martinandersen3dcommented, Feb 8, 2023

download the git repository as a zip file.

unpack the zip file

point the install command, to the unzipped folder:

dotnet new install ./avalonia-dotnet-templates-master

Then start a new terminal session and:

dotnet new avalonia.app

enter directory and

dotnet run

Maybe not what you where looking for, but it worked for me…

I guess this will work to:

```
git clone https://github.com/AvaloniaUI/avalonia-dotnet-templates.git
dotnet new install ./avalonia-dotnet-templates
```

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install Avalonia Templates on my machine. : r/dotnet
I tried to install the templates first as it says in the official documentations but I got this error that says "Avalonia.Templates could...
Read more >
Avalonia.Templates 11.0.2
Templates for creating Avalonia applications and libraries. ... NET CLI. dotnet new install Avalonia.Templates::11.0.2. This package contains a .
Read more >
Create a New Project
With the templates installed, you can create the application from the template: dotnet new avalonia.mvvm -o ToDoList -n ToDoList.
Read more >
Add Avalonia file templates : RSRP-481583
About the project templates: they should already work out-of-the-box in both Rider and VS/ReSharper, provided you have installed them into dotnet new or...
Read more >
How to remove/uninstall item templates in Visual Studio 2010
It works for me in VS 2019 and VS 2020 to uninstall Avalonia templates. ... The dotnet new --uninstall command uninstalls a template...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found