Jack Marchetti
Jack Marchetti

Reputation: 15754

Deploying a Pre Compiled Web Site Project

So I have a website project, which I precompile when I publish.

I have a question, when I need to make a small change to the deployed site, do I have to rebuild, re-publish and deploy the entire website structure again, or can I just copy the modified aspx page and the bin directory?

Please let me know!

Thanks guys!

Upvotes: 3

Views: 628

Answers (3)

Markive
Markive

Reputation: 2400

If you pre-compile epending on the options you have chosen you may be able to edit the .aspx page i.e. HTML code, but not the code-behind..

If the .aspx pages become just placeholders i.e. they are empty inside except for a single comment, you cant.

Upvotes: 1

Dillie-O
Dillie-O

Reputation: 29745

It is going to depend on how you did the precompiling of the site.

According to MSDN, if you did a precompile for deployment, the process takes aspx files and processes any internal code in them, so you will need to recompile everything.

If you did a precompile for deployment and update, the aspx files are not taken into consideration, so provided all you did was some UI changes, you can push the updated aspx file up without issue.

Upvotes: 3

Steve Temple
Steve Temple

Reputation: 2278

You should be able to republish locally and then copy up the modified published pages and the bin folder.

You shouldn't need to upload everything.

Upvotes: 1

Related Questions