I absolutely love your approach to teaching. It's not just that your videos are in-depth, the amount of effort you put into picking topics to cover that are actually helpful is also very admirable.
This is very cool! Too many people discount CLI because it seems complicated or seems to require esoteric knowledge/memorization, but as someone who grew up in the era of the Commodore VIC-20, I appreciate how much closer to the machine the CLI can put me.
Wow this was amazing! I was looking for content on this topic for hours. Clear, to the point, detailed. I'll definitely look up your courses. Thank you
Wow, I love your tutorials, always have been very helpful to me. And I really like how you include the explanation of basic things like git, because that helps more people including the very begginners. Thanks a lot!
Great overview video Tim, makes it easy to pick up. Had an explore and found you can run everything from the sln folder (C:\temp\CliDemo) as long as you specify the project paths (don't even need the whole path, just the folder name) e.g. dotnet add DemoLib package Dapper; dotnet add DemoApp reference DemoLib; dotnet run --project DemoApp; dotnet publish DemoApp -p:PublishSingleFile=true etc.
@@IAmTimCorey it's not so bad with tab completion for the paths but I agree for interactive use. I think it makes most sense for scripting. Personal preference I guess, I'd rather a script not need to depend on changing directory from its starting point.
Great content will you be making vids about microservices and testing, you already did and covered about testing but i would like to see how e2e and specflow testing is done
Hello, Tim. I appreciate you for all the tutorials you did and for sharing knowledge with us, I learned a lot from you, even more than what the university teaches me. Could you make in the near future, a video about how we can find the solution to certain tasks/problems? By what set of steps should I think about the solution? I often copy code from several places and manage to do what I propose, or either follow tutorials that implement the feature, but I would like and it would help me to think by myself and come up with my own solutions. Thanks a lot!
Thanks for this great video. I wasn't able to get this to work, maybe you can help me understand why? I am trying to learn the Stride game engine (C# based). The only way they give you to create a release build is through VS, which I can't run, so I am trying to do it from command prompt. I have changed directory to where the .sln file is and tried to use dotnet build/build -c Release/publish(not wirtten this way, it was written out properly in command prompt for each type). It keeps saying " Unable to find a project to restore!", but then immediately afterward it prints the path and name of the the .sln file. No builds have been created. Do you know how to make this work?
Thanks Cory, it was really helpful. You can tell a video tutorial is useful when you don't get bored or feeling lost. Great video. I am trying to use CLI to publish MAUI app (android/iOS/windows). Do you know know tutorial for that?
Hi Tim, Hope you are well! When I do dotnet run on a rest api project I get a "ctrl-x" to end even if I just run the app from the prompt. I'm on macos btw. Where do I go to find info on how to get around that in a cicd jenkins pipeline. I have some postman newman test I want to run. Thanks, Darren
Hi Tim. I have problem with one commend on Linux: dotnet publish -p:PublishSingleFile=true -r linux-x64 -self-contained true I get : MSBuild: error MSB1008: Only one project can be specifed
Are you running this in the directory of your project? It won’t work if it is the solution directory or if there are multiple projects in the directory.
Thanks for the great video. But I am a little confused, what is the difference between dotnet build and dotnet publish commands ? Since we can also grab the output of the dotnet build command and put it somewhere ? Also I see that after running dotnet publish command, we see the same exact output as build command produces ?
This answer will help: stackoverflow.com/a/55959286/733798 Basically, publish actually prepares your application to move. Build doesn't, so while it can sometimes work, it won't always.
Nice to know this concept. Thanks Tim. Also, your content, explanation is superb. Could you please make sure the text will be clearly visible. It is shady and blur, not clear to note down the points quickly...
Hi Tim -- your videos are awesome, thanks so much for publishing these! Quick question - I have followed along in this video and everything seems to work, but when I do the publish to a single file step, I get mostly the same output you get, however I get an error that says "publishing to a single file is only supported for executable apps" when it is chewing on DemoLib. It does not spit up an error for DemoApp. The resulting app seems to work fine... I am curious as to why you do not get that error in your video?
Chapters come from my viewers. I don't have the time to go back through and add chapters, but if a viewer wants to contribute chapters in the comments, I will add them to the description.
Could you show how to debug using .pdb on a published .exe? I always wondered what is the file for and now I know but still I can't imageine how to use it.
No, because if it doesn't create a class then you cannot immediately add the library as a reference since there is nothing in the namespace. It is essentially a work-around. But I agree it is annoying.
@@IAmTimCorey Thanks Tim! I guess I could delete it as a part of a script. I am a huge advocate for automation. I would love an opportunity to go through an automation approach between database project, local DB publish, and “dotnet scaffold”. I stumbled upon a beautiful approach that makes it so easy to keep a database, its project, and the application models all in sync. I know your preference is dapper over the entity framework, and that’s not here nor there really, but for the EF and db-first folks out there, a few may experience nirvana. Lol. I would love an opportunity to discuss with you about this and dev in general.
That's why there is so many free videos here on TH-cam - not everyone can pay for content. I work hard to ensure that my paid content funds more free content. That way, everyone can benefit.
I absolutely love your approach to teaching. It's not just that your videos are in-depth, the amount of effort you put into picking topics to cover that are actually helpful is also very admirable.
Thank you!
This is very cool! Too many people discount CLI because it seems complicated or seems to require esoteric knowledge/memorization, but as someone who grew up in the era of the Commodore VIC-20, I appreciate how much closer to the machine the CLI can put me.
Thanks for sharing.
I've looked at training videos from several sources recently and you are easily the best coach by some distance.
Thank you!
Wow this was amazing! I was looking for content on this topic for hours. Clear, to the point, detailed. I'll definitely look up your courses. Thank you
I am glad it was so helpful.
This is absolutely wonderful. To find something like this that makes development easier.
I’m glad it is helpful.
Wow, I love your tutorials, always have been very helpful to me. And I really like how you include the explanation of basic things like git, because that helps more people including the very begginners. Thanks a lot!
You are welcome.
Great overview video Tim, makes it easy to pick up. Had an explore and found you can run everything from the sln folder (C:\temp\CliDemo) as long as you specify the project paths (don't even need the whole path, just the folder name)
e.g. dotnet add DemoLib package Dapper; dotnet add DemoApp reference DemoLib; dotnet run --project DemoApp; dotnet publish DemoApp -p:PublishSingleFile=true etc.
Yep, it just takes more typing.
@@IAmTimCorey it's not so bad with tab completion for the paths but I agree for interactive use. I think it makes most sense for scripting. Personal preference I guess, I'd rather a script not need to depend on changing directory from its starting point.
Thank you Tim. How to add an item (C# class) into the C# project?
Just put it in the folder where the csproj file is or in a subfolder of that main folder. That's it.
@@IAmTimCorey Thank you!
Thanks!
Thank you!
Excellent Video! Thanks. Just in time. I'm about to get serious about the dotnet CLI. Thank you.
You are welcome.
Can't wait for the raspbery pi video, i thinking about buying one for a long time.
Amazing, I was able to understand your English perfectly, it's an amazing class, tks 🇧🇷
Happy to hear that!
Your Content is always top notch man!!
Thanks!
@@IAmTimCorey I was joking 😃😃... Sorry just kidding....your content really is top
Loved this . Will watch more of your videos ...
Great!
Great content will you be making vids about microservices and testing, you already did and covered about testing but i would like to see how e2e and specflow testing is done
Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
I have already added microservices in suggestions site . Still waiting for the video
I've the courage to open solution and project files now. Thank you!
Excellent!
Hello, Tim.
I appreciate you for all the tutorials you did and for sharing knowledge with us, I learned a lot from you, even more than what the university teaches me.
Could you make in the near future, a video about how we can find the solution to certain tasks/problems? By what set of steps should I think about the solution? I often copy code from several places and manage to do what I propose, or either follow tutorials that implement the feature, but I would like and it would help me to think by myself and come up with my own solutions.
Thanks a lot!
A lot of that comes from practice. The more you practice planning, the better you will become at it.
lol...University are KILLERS of innovation. Robots maker.
Excellent video Tim, Thanks! Showed me exactly what I needed 👍🏼
You are welcome.
Another great video from great Tim 👌
Thanks!
Excellent as always! Thanks a lot Tim!
You are welcome.
Thanks so much for this video, I have been wanting to get vs code working to create programs on a linux box and this helped me get that working.
You are welcome.
Master, you have become an idol for me
I'm glad you find the content helpful.
It would have been great if you also covered configaration and launchsettings. Great video!
Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
Great video as always.
You are welcome.
Hi @IAmTimCorey,how we can figure out which build tool used Ms build or .net cli to build .csproj
Thanks for this great video. I wasn't able to get this to work, maybe you can help me understand why? I am trying to learn the Stride game engine (C# based). The only way they give you to create a release build is through VS, which I can't run, so I am trying to do it from command prompt. I have changed directory to where the .sln file is and tried to use dotnet build/build -c Release/publish(not wirtten this way, it was written out properly in command prompt for each type). It keeps saying " Unable to find a project to restore!", but then immediately afterward it prints the path and name of the the .sln file. No builds have been created. Do you know how to make this work?
The exact commands I entered were these:
dotnet build
dotnet build -c Release
dotnet publish -p:PublishSingleFile=true -r win-x64 --self-contained true
This is really helpful! Thanks Tim
You are welcome.
Thanks Cory, it was really helpful. You can tell a video tutorial is useful when you don't get bored or feeling lost. Great video.
I am trying to use CLI to publish MAUI app (android/iOS/windows). Do you know know tutorial for that?
Thank you my friend. Your videos are lovely. c:
You are welcome.
This clears up a lot of territory. Much to build on here.
I am glad it was helpful.
Thanks bro! Awesome one! Extremely useful, at least for me
You are welcome.
excellent video
Thanks!
Hi Tim, Hope you are well! When I do dotnet run on a rest api project I get a "ctrl-x" to end even if I just run the app from the prompt. I'm on macos btw. Where do I go to find info on how to get around that in a cicd jenkins pipeline. I have some postman newman test I want to run. Thanks, Darren
So it is just "dotnet run > /dev/null &" on a mac... lol
I really enjoyed your explanation thank you !
You are welcome.
Really interesting, thank you!
You are welcome.
What I learned from this video is that before every command, you have to enter a 'cls' command.
😂
Thank you! So helpful!!
You are welcome.
Amazing job 👍
Thanks!
Great video, thanks!
You're welcome!
On Linux I use cli all the time but always nice to watch and maybe learn something new :)
Great!
Hi Tim. I have problem with one commend on Linux:
dotnet publish -p:PublishSingleFile=true -r linux-x64 -self-contained true
I get :
MSBuild: error MSB1008: Only one project can be specifed
Are you running this in the directory of your project? It won’t work if it is the solution directory or if there are multiple projects in the directory.
@@IAmTimCorey I am running on linux in VirtualBox, on windows evrything is allright. I have one project.
Thanks for the great video. But I am a little confused, what is the difference between dotnet build and dotnet publish commands ?
Since we can also grab the output of the dotnet build command and put it somewhere ?
Also I see that after running dotnet publish command, we see the same exact output as build command produces ?
This answer will help: stackoverflow.com/a/55959286/733798
Basically, publish actually prepares your application to move. Build doesn't, so while it can sometimes work, it won't always.
awesome tutorial. thank you.
You are welcome.
Can you make another video using the mvc project and watch mode that comes with?
Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
Nice to know this concept. Thanks Tim.
Also, your content, explanation is superb. Could you please make sure the text will be clearly visible. It is shady and blur, not clear to note down the points quickly...
I would recommend checking your video playback settings. This was recorded in 1080p, and the text is crisp and clear.
Hi Tim -- your videos are awesome, thanks so much for publishing these! Quick question - I have followed along in this video and everything seems to work, but when I do the publish to a single file step, I get mostly the same output you get, however I get an error that says "publishing to a single file is only supported for executable apps" when it is chewing on DemoLib. It does not spit up an error for DemoApp. The resulting app seems to work fine... I am curious as to why you do not get that error in your video?
You don't publish the class library. Only UI projects can be published this way.
Thank you!
You're welcome!
Great as always thanks you sir :) quick question any plans for graphql tutorial ?
Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
Absolute cinema
Thanks!
Could you chapterize please ?
Chapters come from my viewers. I don't have the time to go back through and add chapters, but if a viewer wants to contribute chapters in the comments, I will add them to the description.
Could you show how to debug using .pdb on a published .exe? I always wondered what is the file for and now I know but still I can't imageine how to use it.
Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
thank you sir...
You are welcome.
thanks sir !
You are welcome.
When we can use Ms build when we can use dotnet cli commands
Another good video! Is there a way to dotnet new that does not create Class1.cs? (I wish Microsoft would stop creating Class1 ! Lol)
No, because if it doesn't create a class then you cannot immediately add the library as a reference since there is nothing in the namespace. It is essentially a work-around. But I agree it is annoying.
@@IAmTimCorey Thanks Tim! I guess I could delete it as a part of a script. I am a huge advocate for automation. I would love an opportunity to go through an automation approach between database project, local DB publish, and “dotnet scaffold”. I stumbled upon a beautiful approach that makes it so easy to keep a database, its project, and the application models all in sync. I know your preference is dapper over the entity framework, and that’s not here nor there really, but for the EF and db-first folks out there, a few may experience nirvana. Lol. I would love an opportunity to discuss with you about this and dev in general.
thanks
You are welcome.
Cool
👍
But anyway U are great!
Thanks!
tết năm nay nghèo quá không có tiền
That's why there is so many free videos here on TH-cam - not everyone can pay for content. I work hard to ensure that my paid content funds more free content. That way, everyone can benefit.
Awesome tutorial 👍
Thanks!
Thank you Tim ,you saved alot of Time ⏱👍👋
You are welcome.