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 not working

See original GitHub issue

Steps to reproduce

  1. Create a new directory
  2. Go to it with command prompt
  3. Launch “dotnet new”

Expected behavior

A C# “hello world” program is generated

Actual behavior

Errors during nuget cache population (?)

C:\Users\fano\Documenti\test_dotnet_new>dotnet new

Welcome to .NET Core!
---------------------
Learn more about .NET Core @ https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs.

Telemetry
--------------
The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include command-line arguments. The data is collected by Microsoft and shared with the community.
You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell.
You can read more about .NET Core tools telemetry @ https://aka.ms/dotnet-cli-telemetry.

Configuring...
-------------------
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.

Unhandled Exception: System.Exception: input .lzma is too short
   at Microsoft.DotNet.Archive.CompressionUtility.Decompress(Stream inStream, Stream outStream, IProgress`1 progress)
   at Microsoft.DotNet.Archive.IndexedArchive.Extract(String compressedArchivePath, String outputDirectory, IProgress`1 progress)
   at Microsoft.DotNet.Configurer.NuGetPackagesArchiver.ExtractArchive()
   at Microsoft.DotNet.Configurer.NuGetCachePrimer.PrimeCache()
   at Microsoft.DotNet.Configurer.DotnetFirstTimeUseConfigurer.Configure()
   at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(INuGetCacheSentinel nugetCacheSentinel)
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)

Environment data

.NET Command Line Tools (1.0.4)

Product Information: Version: 1.0.4 Commit SHA-1 hash: af1e6684fd

Runtime Environment: OS Name: Windows OS Version: 10.0.15063 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\1.0.4

I have used dotnet before without problems so you this “welcome” as if I never used it?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fanoIcommented, Aug 10, 2017

Yes ‘dotnet new console’ creates the classical C# “hello world” for example.

0reactions
RZProfcommented, Jul 5, 2018

I have an error Failed to load �P�U, error: /usr/lib/libm.so.6: version GLIBC_2.27’ not found (required by /opt/dotnet/shared/Microsoft.NETCore.App/2.1.1/libcoreclr.so) Failed to bind to CoreCLR at ‘/opt/dotnet/shared/Microsoft.NETCore.App/2.1.1/libcoreclr.so’ i dont know what is it!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is the 'dotnet new console' command not working in ...
Ensure that DotNet Core is installed on your system. · Ensure that the PATH is set correctly so that you can execute the...
Read more >
dotnet new install - .NET CLI
The dotnet new install command installs a template package from the PATH or NUGET_ID provided. If you want to install a specific version...
Read more >
dotnet new console not working
dotnet new console not working · Open your profile folder (C:\Users\J) in File Explorer. · If you see . · Go to the...
Read more >
Dotnet commands not working even after installing .NET ...
I have installed VSC and .NET core 5.0 SDK through the package manager. The c# add-on is installed in VSC. With all of...
Read more >
dotnet new console not working [Ubuntu 23.04]
I am trying to install .NET SDK to use with VS Code. When I type dotnet new console the following is returned: The...
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