Debug multiple projects from one Visual Studio solution

When we try to troubleshoot issue in visual studio project having website and web service project both or may be troubleshooting different layers of visual studio project in solution we need to debug in multiple project.

Multiple project debugging is very simple but only difficulty is that Visual Studio keep is off by default. You can enable multiple project debugging with below simple steps in your solution. Keep on reading

Download Visual Studio 2017 ISO (offline installer) + Web Installer

This is a simple guide to download offline installer or ISO file for Visual Studio 2017.

As you all new Microsoft always provides web installer file for all new releases of Visual studio and on 7th March Microsoft has launched Visual Studio 2017 and this time also they haven’t provided offline installer or ISO file of the setup so we are here to explain how you can obtain offline installer or ISO file from this web installer EXE.

There are 7 simple steps for doing this:

1. Download web installer exe from this link

2. After download put this file in any folder like C:VS 2017.

3. Open command prompt with admin access and move to your visual studio eve folder using command cd c:CS 2017

4. Now run another command in command prompt vs_setup.exe /layout (vs_setup.exe is your file name so you can write what ever is your file name)

5. This will open a windows to ask location on your drive where you would like to download the visual studio offline / ISO installer.

6. Now it will download your visual studio and after it is completed you can run setup where you have selected to download it and that too without internet connection.

Visual studio 2017 will be launched on 7th March 2017

Finally Microsoft is going to launch Visual studio 15 (Visual studio 2017) on 7th March.

This version of Visual Studio will be launched at an event which will be organised on 7th and 8th March. This will also be a celebration event for 20th Anniversary of Visual Studio.

=&0=& of the event will include Keynote and demos by Julia Liuson, Brian Harry, Miguel de Icaza, and Scott Hanselman which can also be viewed on live streaming. They will show new things in Visual Studio, .NET, Xamarin, Azure etc.

Day 2 (8th March 2017) will be live interactive training day to teach how to be more productive using the all new Visual Studio 2017.

If you are interested in this event then you can register on this link https://launch.visualstudio.com

Apart from this live event there will be launch event by the Visual Studio community all around the world where developers can meet and collaborate in their local area.

You can even share a short story, video clip or image of your visual studio story. Share your story on Instagram, Twiter or Facebook with #MyVSStory

Microsoft Visual Studio 15 Preview 4 released – Download Offline installer ISO

Microsoft has released preview 4 of its next version of Visual Studio that is =&0=&on 22 August 2016. You can see fill list of new feature on below link:

https://www.visualstudio.com/en-us/news/releasenotes/vs15-relnotes

For downloading this preview version of Visual studio 15 you can use download option on below link:

https://go.microsoft.com/fwlink/?LinkId=733434

But main problem most of the users experience is not offline installer available there. So we have a simple set of steps you can follow and download Offline Installer ISO of any version of visual studio.

You just have to download web installer exe from link given above and then follow steps described in two of our previous. Here are those articles:

Download Visual Studio 2015 RC offline installer (ISO)
Download Visual Studio 15 ISO (Offline Installer) using web installer EXE

Only difference in steps of these articles and your steps would that you have to use web installer exe download from above link instead of web installer file described in these articles.

Download Visual Studio 15 ISO (Offline Installer) using web installer EXE

Most of the time Microsoft release online installers for all its new visual studio releases and later after few months they publish ISO installers. I don’t know why they used to follow such practices which is so annoying specially in places where internet speed is not good or consistent.

I am also among those who faced problems with these online installers every time and that is why I published an article last year to download Visual studio 2015 from its online installer exe and then install it offline anywhere. Here is that article and I am going to use same steps for Microsoft Visual Studio 15.

You can download online installer (web installer) exe of Microsoft Visual Studio 15 from here

After downloading copy download file vs_enterprise.exe, copy it to any folder on your computer like c:/VS15. Now open command prompt as administrator and move to your directory where you have copied. Type vs_enterprise.exe /Layout and press enter.

This will open a dialog to ask where you want to download installer file, so just select the folder you want and continue. It will start downloading Visual Studio 15 on your system in selected folder.

After download is complete you can use these offline installer files to install it anywhere.

Visual Studio 15 Preview 3 released on 7th July 2016

Microsoft has released its preview 3 of Visual Studio 15. Yes it is Visual Studio 15 is upcoming version of Microsoft Visual Studio after Visual Studio 2015.

Being one of the most user friendly and feature rich IDE for application development Visual Studio is one of the most successful product of Microsoft. Now they are stepping to become next generation universal IDE which will be able to provide development on any platform and language. This is because in this version Microsoft has included feature to import iOS code from xcode (isn’t it a great new for all visual studio fans who want to use Visual studio as iOS development IDE?).

Here is the list of some new feature and enhancements you will get in visual studio 2015:

1. Visual Studio Tools for Apache Cordova

It will come with Apache Cordova 6.1.1 so all new projects which you will create will target Cordova 6.1.1. Apart from that you will be able any plugin using their npm package name

One thing which we should take care of is that it does not support Windows  Store 8.1 application so you have to update your  Cordova project to target Windows 10.

2. Visual Studio Tools for Universal Windows App Development

Microsoft team has done many improvements based on feedback they got from users and now there are full list of new features as well for the users. One of them is updated .NET native chain which will provide improved performance for universal windows apps.

3. Android Development Support

Now Android project support Gradle to builds .apk and .aar

4. iOS Development Support

A new entry point wizard is introduced to import existing iOS projects developed in xcode. This is not the only thing there are lot more to try and for that you have to downloadVisual Studio 15

5. Improvements in C# and Visual Basic

There is very big list specially in this category which we can not describe here. One major thing which everyone would love (atleast I am very excited after knowing this) is now you can break strings in multiple concatenated strings without manually writing + sign every time. Just put your cursor where you want to split the string and press enter it will automatically do the rest. Sounds good!!!

6. Improved Feedback Workflow

This visual studio version has better and improve feedback collaboration and followup system.

7. NuGet 3.4

Now you will get NuGet 3.4 with this version of visual studio. This version of NuGet supports Android and iOS build action in contentFile element and running NuGet in Linux and Apple environment. There are many more features and enhancements you will get.

8. Debugging and Diagnostic

Now you can condition so that debugger will break only when specified condition is true.
There is new exception introduced to see exception information in a compact dialog with instant access to inner exception.

Image Source

9. IDE Improvements

Now visual studio will load 30 to 35% faster on first launch. There is all new version control status bar to keep track of uncommitted work ad make it easier to publish local repositories.

10. And Many More

This is not all there are many more features you will get in this full bundled visual studio package. You can check complete list here
https://www.visualstudio.com/en-us/news/releasenotes/vs15-relnotes
Article Source

Setup remote access to IISExpress visual studio on LAN

Many times you might need to access your under development site on other computer of your local network. I mostly required this thing to debug my application on mobile devices or webview mobile apps.

Main problem that one face to access under development site on other network computers that their development web server is IIS Express which doesn’t allows access to remote computers to your site.

=&0=&

So for doing this on my machine I searched for solution and found some which didn’t worked for me but later when I did hit and trial with those solutions I got this working for me. So for other developers who might be facing similar situations I am wroting this article to follow these steps to access IIS Express site on remote computer.

Step 1 – Run command prompt as administrator (yeah you read it right, you need administrator permissions to run this command) and run below command:

netsh http add urlacl url=http://edunyte/ user=everyone

Not to mention that you have specify your application url in place of http://edunyte/ in above command. This url could be anything like your system name (like we have placed above) or you system IP address like http://192.168.1.10/. You also have to specify the port in above command if your application is not running on default http port that is port 80.

Here is one sample of command if you are using IP and any port other then default http port:

netsh http add urlacl url=http://192.168.1.10:8080/ user=everyone

You an also specify the user name our user group to which you want to give access to this site remotely, for this you have to specify the user or user group name in place of everyone in above command. See the example below:

netsh http add urlacl url=http://edunyte:8080/ user=dilip

If you want to remove any previously added url just run below command by replacing our url with your (as explained above)

netsh http delete urlacl url=http://edunyte:8080/

Step 2 – Open applicationhost.config file from Documents/IISExpress/config and replace

<binding protocol="http" bindingInformation="*:8080:localhost" />

with

<binding protocol="http" bindingInformation="*:8080:edunyte" />

or

<binding protocol="http" bindingInformation="*:8080:192.168.1.10" />

Use any option from above two based on you are using IP or system name for your site

Step 3 – In Visual Studio go to your project properties, select web and change project url from http://localhost:8080/ to http://dilip-pc:8080/ or http://192.168.1.10:8080/ (use name method which you used for binding in applicationhost.config and to register url through cmd)

Step 4 – This is a not to miss step you you have firewall on your development machine. Add inbound rule to allow incoming connection on your application port (in our case it is 8080). After adding this firewall rule only you can access your application on remote system.

Step 5 – Stop IIS Express by right click on tray icon and selecting exit. Now run you application in visual studio and try to open it on other system on network. For this just type your application url as http://edunyte:8080/ or http://192.168.1.10:8080/ (again this url depends on you configuration above).

Frankly speaking I was not able to access my IIS Express site on my mobile device using machine name so I am using it though IP right now. But actually same procedure should work for both that is IP and machine name.

Solution for Visual Studio 2015 installation getting stuck during installation

In my previous article I shared series of incidents of issue I faced during installation of Visual Studio 2015 on my Windows 10 machine.

After searching a lot on google I found few informative links and I found them matching with my system environment.

I was using AVG Anti-Virus on my Windows 10 machine and this was the reason of this issue. Actually anyhow AVG was blocking Visual Studio 2015 installation in between and I and others too faced this problem mainly on Windows 10. Same issue could exist on older version of windows also (not sure because didn’t found any report of such issue).
=&0=&
So for installation I disabled the AVG protection temporarily and for making installation successful I even killed AVG process from Apps section of task manager (I am not sure if it was really needed).

Below are exact steps that I followed to get successful installation of visual studio.

  1. Cleared temp folder. Open temp folder by typing %temp% in run window
  2. Restart system
  3. Disbale AVG Antivirus temporarily
  4. Terminate AVG App from task manager
  5. Start installation again as administrator

 

After some more research I found that this problem is not only with AVG, Avast is also creating problem and so are some other antiviruses. So it is recommended by Microsoft team to disable any antivirus or anti-malware program on your system before installing visual studio because these type of programs can block installation on some steps.
=&1=&

Visual Studio 2015 Community / Enterprise got stuck during installation – Series of incedents

After facing problem in web installer (due to internet connectivity like all other Indians) I tried and found a method to download offline installer for Visual Studio 2015. You can read that article here.

Not after some time of writing this article some of my readers notified me that Microsoft has released a ISO file for offline installation to no need to follow any process now. I thought WOW that’s great. But everything was not so great because when I tried installing my all new Visual studio 2015 Enterprise using ISO then I found there are something to take care off to install it.

When I started installation first time I found that my installation was stuck at the very first step that is “Creating system restore point”. I faced the same issue in previous version of Visual Studios also so I thought let’s wait for some more time and luckily it moved to next step to install VS tools. I left my system for installation and after 2 hours I noticed that installation status was still around 10% so monitored it for few more minutes and there was no progress for next 20 minutes. This was not an online installer so the internet connectivity could not be an issue so I tried terminating the process and started installation again.

Again installation was stuck while creating restore point but this time it remained there for even longer and then installation went further. I noticed that it was stuck exactly where I terminated process last time but with a different status message. This time it said, “Another setup is in progress….” then it showed a retry message and again same message. This message swapping was there for few minutes and then installation was stopped with a big message on same window, and the message was “Another setup is in progress. Please wait for it to complete, then retry the current setup.”

Then I decided to Google it instead of headbang. Finally, I got the actual problem and various solutions which you can see and follow in detail in my next post.

Getting started with Hybrid (iOS, Android, Windows Phone and Windows) App in Apache Cordova and Visual Studio 2015

Microsoft has come up with  very useful tool integration this time in Visual Studio 2015. They have integrated Apache Cordova tools with this version of Visual Studio. You can download it it using online installer. But if you want to download it offline installer get it from my previous article Download Visual Studio 2015 RC offline installer (ISO).

Apache Cordova tools were available separately for Visual Studio 2013 also and you can download the from this link.

After download and install Visual Studio 2015 or Apache Cordova Tools (in case of Visual Studio 2013) we will first create and Hello World application.

Open Visual Studio instance and create new project. In create new project wizard go to installed templates and there you have to select Apache Cordova Apps. Now select Blank app and click Ok after giving name to your application.

This will create an blank application displaying a single line message “Hello, your application is ready!”. If you run this app on your phone it will look like below screenshot (taken on android device).
 

If you want sample of this hello world app you can get it from here.
You can also debug application on emulator. Android, Windows Phone and Windows emulator are downloaded with Visual Studio and for iOS emulator you need a Mac machine where you can install emulator and VS tools to connect remotely for emulator debugging.

Another easy way for debugging non-native module is using Ripple for Android and iOS available in Visual Studio.