Norgul
Norgul

Reputation: 4783

Visual Studio web testing

I come from a world of PHP (Laravel) and have faced no issues with testing the API or webpage like this before. Every time I would make a change I'd simply refresh the page, and it would show me the result of my changed actions.

This does not seem to be the case with my new experience with VS as it seems I have to run F5 or Ctrl+F5 every time I make a simple change to the program. To make things even more annoying, it is always opening a new tab with each program run.

Is this simply the way "VS is", or am I missing something?

Upvotes: 0

Views: 34

Answers (2)

Aleksandar Matic
Aleksandar Matic

Reputation: 799

It doesn't have anything to do with VS. PHP is a script language, it doesn't get compiled before running like c# does. You have to do a build of the project in order for the DLLs to be up-to-date

Upvotes: 4

Dave
Dave

Reputation: 8471

I am going to assume you're using IIS express and ASP.NET.

Right click on Project and then choose View in Browser.

You'll need to do a build though if you make any changes to the C# but not if making changes to CSS/Javascript (excluding things like SASS etc)

Upvotes: 0

Related Questions