C#C
C#2y ago
Mek

✅ Not understanding Microsoft Tutorial

I'm following the microsoft tutorial on creating a cli application. https://learn.microsoft.com/en-us/dotnet/core/tools/global-tools-how-to-create.

My first problem was under Test The Application section, I ran the commands that they posted
dotnet run
dotnet run -- "Hello from the bot"
dotnet run -- Hello from the bot
and I got Hello World 3 times in a row. If I ran dotnet run --ShowBot "Hello from the bot" it would show the appropriate message under the ShowBot function. I didn't understand that as I have followed everything to the T.

My second problem is my current problem. Under Package the tool it says to update the .csproj file to which did and then run dotnet pack to which I also did, but I cannot find the ./nupkg folder anywhere that it states

The microsoft.botsay.1.0.0.nupkg file is created in teh folder identified by the <PackageOutputPath> value from the microsoft.botsay.csproj file, which in this example is the .nupkg folder.
So where did the folder go? And also, after packaging the project with the dotnet pack command, the first problem got fixed? 🤷 idk about that one
image.png
Was this page helpful?