C
C#9mo ago
Mekasu0124

✅ 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
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
No description
7 Replies
Mekasu0124
Mekasu0124OP9mo ago
No description
mtreit
mtreit9mo ago
Can you put it on github so people can see exactly what your code and csproj look like? It's hard to tell from screenshots. Or use $paste to share your code.
MODiX
MODiX9mo ago
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
Mekasu0124
Mekasu0124OP9mo ago
I didn't post my code because it's exact copy/past from the tutorial link. I just clicked their little Copy Code button and pasted it into my editor. I followed all of their steps from the beginning with using the cli to create the project I just don't think it's registering my args https://pastebin.com/YSxvewar here's my code
mtreit
mtreit9mo ago
Using the code from your pastebin, it seems to work.
mtreit
mtreit9mo ago
No description
Mekasu0124
Mekasu0124OP9mo ago
it worked for me after I packaged the project. idk I guess I missed a step or something. thank you
Want results from more Discord servers?
Add your server