✅ 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
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 one7 Replies
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.
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!
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 codeUsing the code from your pastebin, it seems to work.
it worked for me after I packaged the project. idk I guess I missed a step or something. thank you