To use VSCode for .net core you would need Omnisharp extension so that we can debug our application just like as in Visual Studio. -- Photo by SpaceX on Unsplash Using the dotnet new command we create a web and an API project dotnet new webapp appname.web dotnet new webapi appname.api Create a solution so that it wraps all the projects in one place dotnet new sln appname dotnet sln add appname.web appname.api After building the Web and the API projects we need to create the launch.json which VScode refers to build and debug the application. For a complete reference on doing these projects consider this great resource . You can always use VSCode terminal to run these above commands as well, also note you can open multiple terminals the same VSCode instance like this . Setup the launch.json by clicking on add configuration and select .Net core web app. we will need to add two such configurations one for web and another for web ap...
When developing a web application we separate our application with *.web being initial server-side application and *.api application which will help us fetch/update data for client-side operations and avoid page reloads. Photo by Vincent van Zalinge on Unsplash Here is .NET Core application I was working on which had a similar kind of ask, and I wanted to use VSCode to debug my application. This is how we do it, first, we need to create a solution so that we keep both the API and Web project in one place dotnet new sln -n appname dotnet sln add src/appname/appname.web.csproj dotnet sln add src/appname/apname.api.csproj Open "launch.json" and Click on add configuration and add then select .NET Core Launch (web) No go ahead and rename to web or web-api, also add a development URL with a different than web configs the "env" property "env": { "ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_URLS": ...
Everyone is hanging out lately, so thought sharing some views of mine on the same. I might be biased on thoughts for Google's culture and intentions (don't be evil) seems to be on the same frequency as mine on that aspects. Hope Hangout does not end up with the same fate as of Google Wave . I know it was not a failure and most off its interesting features been ported to Google Drive or GMail in some or the other way. The best thing about this app is the seamless integration with multiple devices.( Yes Multiple devices! if you did not know) Here are some tips on getting it in multiple devices. On Android devices you can get it from Google Play . On Desktop try this extension for chrome. On Gmail try clicking on the profile pic on top of the chat window and then "Try the new Hangouts". You seem to be hanging from every where now. Happy Hangouts ;-)
Comments
Post a Comment