Been a long time so here it goes -- debugging multiple projects
If you look around a lot you will eventually find this
https://docs.microsoft.com/en-us/visualstudio/ide/how-to-set-multiple-startup-projects?view=vs-2017
But actually, you can't do that well
- Most people have custom run configurations
- In my case, I was passing parameters to a console program that contacts a service, both in the same solution... doing "multiple project startup" doesn't give me enough control
- Microsoft doesn't have good support for this configuration https://developercommunity.visualstudio.com/content/problem/225855/multiple-startup-project-selection-not-saved.html
- It doesn't offer a seamless experience (the service should be persistent, callable from Postman, etc.)
(the most important picture in the world my friends Java but I liked the picture)
So here is what you do, if you want to debug dotnet core webservices
* You publish in debug mode to folder
* Startup the project after setting ASPNETCORE_ENVIRONMENT variable
(Do PowerShell for powers)
* Now startup your web project / console program / whatever is going to contact the service in Visual Studio
* Now back to OLD SCHOOL and ATTACH TO PROCESS
(I know, greatest window in the world)
So it's a little pain in the ass to get it to work especially if you debug a lot. Attach to process every single time. But the key is dotnet core comes with its own webserver (Kestrel). You don't need IIS anymore and you don't need IIS Express anymore.
I am sure there's some crazy way to get it working with IIS / Visual Studio integration, remote debugging, etc., etc., but this way works and doesn't involve downloading a half dozen things and configuring IIS (which is half the point of dotnet core, lol). It also gets you ready for the day everything is on command line and you don't need Visual Studio (yeah, right).
Happy Coding
Hello today decided to climb on the Internet in search of something interetninkogo and found this site fine play casino slots Today I will withdraw my first mo
ReplyDeleteGreat job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. There tend to be not many people who can certainly write not so simple posts that artistically. Continue the nice writing Gutter Blog
ReplyDeleteWonderful Blog!!! Thanks for sharing this post with us... and it is more helpful for us.
ReplyDeleteIOS Training in Chennai
ios training institute in chennai
Best ios Training institutes in Chennai
ios developer course in chennai
IOS training in OMR
IOS Training in Annanagar
Big data training in chennai
JAVA Training in Chennai
Selenium Training in Chennai
JAVA Training in Chennai
Thanks for posting keep updating it.
ReplyDeleteIonic Training in Chennai
Ionic training course
German Classes in Chennai
TOEFL Coaching in Chennai
Informatica Training in Chennai
Spoken English Classes in Chennai
Ionic Training in Tambaram
Ionic Training in Adyar
This stays as one of the best and attractive post I have read yet. Great sharing this post.
ReplyDeleteIELTS Training in Tambaram
IELTS Training in Velachery
IELTS Training in T Nagar
Spoken English Classes in Chennai
Best Spoken English Classes in Chennai
IELTS Coaching Centre in Chennai
IELTS Coaching in Chennai
English Speaking Classes in Mumbai
English Speaking Course in Mumbai
IELTS Coaching in Mumbai
This was an excellent post and very good information provided, Thanks for sharing.
ReplyDeletePython Training in Chennai
Python Course in Bangalore
Python Training in Coimbatore
Python course in Chennai
Big Data Training in Bangalore
dot net training institutes in bangalore
Best Python Training in Chennai
Python Classes in Chennai
Nice Article you have posted here. Thank you for giving this innovative information and
ReplyDeleteplease add more in future.
Hadoop Admin Training in Chennai
Big Data Administrator Training
Blockchain Training in Chennai
German Courses in Chennai
French Language Classes in Chennai
Xamarin Training in Chennai
content writing training in chennai
spanish language classes in chennai
Hadoop Admin Training in Tnagar
Hadoop Admin Training in OMR
I am glad to locate your recognized method for composing the post. Presently you make it simple for me to comprehend and actualize the idea. Much obliged to you for the post. cursos de ti online
ReplyDeleteReading a lot of contents in a simple way.Thank you for sharing the blog. Java training in Chennai | Certification | Online Course Training | Java training in Bangalore | Certification | Online Course Training | Java training in Hyderabad | Certification | Online Course Training | Java training in Coimbatore | Certification | Online Course Training | Java training in Online | Certification | Online Course Training
ReplyDeleteI can say that essay-editor website is an amazing place to start creating your projects. You will just need to be patient a little bit!
ReplyDeleteThis post is so interactive and informative.keep update more information...
ReplyDeleteSpoken English Classes in Tambaram
Spoken English Classes in Chennai
MyFone Filme Crack is video editing software that allows users to create movie trailers, movies, and music videos in a very simple and easy way.Gilisoft Video Editor 15.5.0 Crack
ReplyDeleteReally a awesome blog for the freshers. Thanks for posting the information. Discover the world's best GCSE home tuition with Ziyyara Edutech! Our dedicated GCSE online tuition is designed to empower students with exceptional educational support.
ReplyDeleteFor more info visit Home tuition of GCSE