Jervis.Qian
Jervis.Qian

Reputation: 25

where are the .cs files stored in the virtual os?

I'd like to modify my source code of asp.net project directly in the virtual os on Azure platform, but I cannot find the C# files.

Can anyone help?

Upvotes: 1

Views: 248

Answers (2)

Scott Earle
Scott Earle

Reputation: 680

The code is all compiled up before it is deployed. It needs to do this for many reasons, not least of which is to make sure everything that you need to run the code, is included with it.

Also - if your instance gets recycled, any changes you make to an instance of a virtual machine will be lost.

Deploying takes ages (like 20-30 minutes or so after everything is compiled), but it's the only way you can guarantee that all instances are running the right version of the code, since the deployed VM will be run as-is every time an instance starts or cycles.

Upvotes: 2

hollystyles
hollystyles

Reputation: 5039

The cs code-behinds are compiled into bin\appname.dll when you publish to Azure, you can't edit them "live." Any edits will be overwirtten anyway if the instance recycles.

Upvotes: 4

Related Questions