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 commands keep prompting welcome text even if it is not the first time to run on a cmd shell

See original GitHub issue

Steps to reproduce

  • md consoleApp1;
  • cd consoleApp1;
  • dotnet new console;
  • dontet restore;
  • dotnet build;
  • dotnet run;

Expected behavior

all dotnet commands run succeeded with no errors or warnings, welcome text only prompts for the first time to run dotnet command on a cmd shell.

Actual behavior

all dotnet commands print duplicate text info:

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.
Decompressing 100% 3444 ms
Expanding 100% 3832 ms
Failed to create prime the NuGet cache. restore failed with: 1

In addition: Test .net core mstest, xunit, mvc or class lib or mvc project from CLI with the same issue, neither C# nor F#.

Product info

Install d15prerel.26627.3003 (bootstrappers\Enterprise)

Environment data

dotnet --info output:

.NET Command Line Tools (1.1.0-preview1-005051)

Product Information:
 Version:            1.1.0-preview1-005051
 Commit SHA-1 hash:  5e88564e56

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\1.1.0-preview1-005051

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
livarcocccommented, Jun 30, 2017

@ngbrown what you are seeing is actually different. You picked up a version of the preview3 of the CLI. This version of the CLI requires you to add a NuGet.Config with <add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" /> in the package sources, because the offline cache does not contain all the packages.

0reactions
MiaomiaoHuangfucommented, Jul 25, 2017

The issue is regression on d15rel.26724.00. dotnet --version: 1.1.0-preview1-005098

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I suppress .NET CLI's welcome message on first ...
I am using .NET CLI in an Azure DevOps pipeline, and I am using PowerShell to parse its output. The first command I...
Read more >
Ability to suppress welcome message #3828 - dotnet/sdk
Will an environment variable to disable the first run message be enough? Most of our envs don't have a commandline counterpart. And it...
Read more >
How to prevent the command prompt from closing after ...
Just open a command prompt at the location of your batch file, and manually key in the name of your batch file to...
Read more >
Command prompt popping up and disappearing ...
When trying to run Task Scheduler as admin / in general, I'm met with the error "MMC has detected an error in a...
Read more >
dotnet run command - .NET CLI
The dotnet run command provides a convenient option to run your application from the source code.
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