-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dotnet new fails: Object reference not set to an instance of an object #2189
Comments
Update: I installed dotnet core 3.1 via snap - works fine. Could be something missing in the official opensuse package or due to tumbleweed having a different libicu package (libicu-suse65_1). |
I'm having exact same problem on Fedora 31.
This is the output of my dotnet --info: `.NET Core SDK (reflecting any global.json): Runtime Environment: Host (useful for support): .NET Core SDKs installed: .NET Core runtimes installed: To install additional .NET Core runtimes or SDKs: Thanks. |
I fixed it by wiping the "/usr/share/dotnet/templates" and "~/.templateengine" folders. Then reinstalling dotnet core 3.1 and then running dotnet new --debug:reinit. Everything works fine now. |
Thanks! |
sweet! |
I have recieved same error today while installing dotnet 3.1 on centos7. First try was, i've removed all versions by calling yum remove dotnet* and install dotnet 3.1 but no success. (same error.) Second, uninstalled dotnet 3.1 and deleted remaining files with folder, /usr/share/dotnet. In this time, server were clean and installed dotnet 3.1 again. Voila, everything working as usual. |
Tenía el mismo problema con net5.0. Borré "/usr/share/dotnet/templates" como dice JorgeGomez y listo. |
Steps to reproduce
dotnet new console and dotnet new
Expected behavior
Creates a new console app / lists help for dotnet new
Actual Behavior
Environment Data
.NET Core SDK (reflecting any global.json): Version: 3.1.100 Commit: cd82f021f4 Runtime Environment: OS Name: opensuse-tumbleweed OS Version: 20191204 OS Platform: Linux RID: linux-x64 Base Path: /usr/share/dotnet/sdk/3.1.100/ Host (useful for support): Version: 3.1.0 Commit: 157910edee .NET Core SDKs installed: 3.1.100 [/usr/share/dotnet/sdk] .NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App] To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download
Tried Fixes in Dotnet new fails: Object reference not set to an instance of an object #657
ie.
dotnet new --debug:reinit rm -rf ~/.templateengine
Did not have this problem with dotnet sdk 2.0.
The text was updated successfully, but these errors were encountered: