1

I have a big application which I develop (ASP.NET MVC), it wasn't initially mine and I received it from my client. When I run it via Visual Studio, it takes about 2-3 minutes to launch.

I'm wondering what is going on after pressing F5 button in VS (except copiling and copying dll's, views, content to output folder).

Vnuuk
  • 6,177
  • 12
  • 40
  • 53

2 Answers2

1

If I had to guess I'd say that you're compiling the cshtml code and that can be very slow in older versions of visual studio. Check to see if you have

<MvcBuildViews>true</MvcBuildViews>

in your .csproj file.

see this answer MVC Application is extremely slow to build

Community
  • 1
  • 1
dibs487
  • 1,294
  • 4
  • 21
  • 36
1

I believe every time you launch it from Visual Studio it creates new dll files, hence the waiting. But I could be wrong.

Christopher Lake
  • 358
  • 4
  • 10