James Hill
James Hill

Reputation: 61802

Visual Studio 2010 - Partially Publish Web Site?

I just completed a website that is image heavy and I'm publishing the site to an FTP server. The publish time takes ~5 minutes. Is there a way for me to configure which file types get published? I'd like to push out changes only if the file extention is: (.config, .aspx, .cs, .asmx, .js, .html, .css, .master).

Is this possible?

Upvotes: 3

Views: 3589

Answers (3)

Beno
Beno

Reputation: 4753

you can set the Build Action for whatever you don't want published to None

These won't get copied to the deployment directory

I have just confirmed that it works (I tested on a MVC3 site)

so you'll have to change the setting for each file you want to exclude but you can change the setting of multiple at one time and folders can't be excluded

enter image description here

Upvotes: 1

Jayesh
Jayesh

Reputation: 1523

No, the publish process publishes the whole website.

Publish it on your local computer first and then use an FTP tool (Filezilla, CoreFTP...) to selectively upload your files to the server.

Upvotes: 4

Ken D
Ken D

Reputation: 5968

Unfortunately No, it is not possible. Publish operation is either-all-or-none operation.

Even though, I sometimes only copy the DLL assembly (from bin directory to IIS website folder) if the change is only in the code-behind files and the markup/images/other-content have no changes.

Upvotes: 1

Related Questions