Fragrance Of Programming
In this post I will show you how to integrate an OWIN project with Angular CLI project.
Below are the pre-requisites:
After the project is successfully created, add new "cs" file and name it as Startup.cs and delete "Global.asax" file.
Add the below NuGet packages and it's dependencies into your project:
Now in the Startup.cs file, please add the below code.
Now modify the web.config as shown below
We are done with the Owin project, so now let's create the Angular CLI project.
I am creating the Angular project inside directory "AngularProject" and overall structure of Owin and Angular is as shown below
Now open powershell and browse to parent directory of AngularProject i.e. in my case its "c:\git". Now execute the below command
Once the Angular CLI project is created successfully, open ".angular-cli.json" and modify the outdir file location to the App folder which we created in the owin project.
Now build the angular project using "ng build -ec" and you will notice that all the build files are copied into App folder.
Now run the Owin project which we created and you will see the index.html of Angular project got rendered using owin.
Hope you enjoyed reading!!!!
"Live" unit testing is nothing but automated execution of unit tests that may have impacted by your code change and it provides the real time results.
Currently, I am using NCrunch which provides the same mechanism and it really works well. However Microsoft has directly given that capability without using any extension or any other external tools.
For configuring the Live Testing settings, you need to browse to Tools-->Options and than select "Live Unit Testing".
Real time test case execution is really helpful and if you don't have Visual Studio Enterprise edition than you can still go for NCrunch.
Thanks for reading!!!