C
C#4mo 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
Mekasu01244mo ago
No description
mtreit
mtreit4mo 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
MODiX4mo 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
Mekasu01244mo 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
mtreit4mo ago
Using the code from your pastebin, it seems to work.
mtreit
mtreit4mo ago
No description
Mekasu0124
Mekasu01244mo 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
More Posts
Hello friends, is there anyone who can help me with C# selenium?I want to control an open Chrome page with Selenium. Is it possible to do this or how can I do it?Statement not printing to screenI have zero errors and I need to figure out why my code stops working after a certain pointStarting off aid?Hey all. I'm just starting off with trying to learn C# with game development intentions, and hopefulmulti threaded gate lock ORUsing the Monitor class, is there a way to create a lock with n input values, which creates a lock ftrying to search through a ReportviewerI am unsure of what is wrong but when i try to search for a specific value and try to show the reporTrying to get a game object to disappear and re-appear when a certain number of items are collected.I have a game object that when you collide with it, it takes you to the next level, but i would likeAdvice on how to structure a windows form application where it takes images to generate cards?I am making a win form for my card battling game but i'm unsure how to make it actually put the userUnhandled exception. System.IO.FileNotFoundExceptionHi, so I am trying to publish my app to Azure and when i try to load the page it gives Application EUnable to calculate/store correct value to the dbHello. I am developing a mortgage tracker for myself and currently trying to calculate my daily inteReading nested dictionaries received via MQTTHi, so basically someone coded a script, which sends JSONs per MQTT. I want to receive them in Unity