There is no built in option available in Visual Studio to publish just one file, but there are some alternatives to achieve the same
1. If you publish with the Source Code along with the aspx pages then you can make use of Copy WebSite option listed in the Website Menu in Visual Studio
2. If you are publishing only the necessary files, then you will have to do it manually, by copy pasting the aspx pages that was changed and replacing the DLL file alone for this website if there was any change in .cs file.
Thanks
Arun
Marked as answer by surjeet_kumar1 on Feb 01, 2012 11:09 AM
For webapplication, yes you got rebuild and publish everything...but for website, you will get two options in visual studio, replace matching files or delete all files, if you select option one then only changed files will be published or else everything
will be published...
ramiramilu, where do you set these two options in VS. I am having the same problem and I cannot find any setting and I never get any prompt. Thanks in advance!
surjeet_kuma...
Member
621 Points
192 Posts
How to publish a single modified page of a website?
Jan 31, 2012 11:09 AM|LINK
when i publish our website using vs 2005 the all page of website are republish. but i want to publish ony single modified page as i want.
Thanks
Arunmhn
Participant
1876 Points
348 Posts
Re: How to publish a single modified page of a website?
Jan 31, 2012 11:35 AM|LINK
There is no built in option available in Visual Studio to publish just one file, but there are some alternatives to achieve the same
1. If you publish with the Source Code along with the aspx pages then you can make use of Copy WebSite option listed in the Website Menu in Visual Studio
2. If you are publishing only the necessary files, then you will have to do it manually, by copy pasting the aspx pages that was changed and replacing the DLL file alone for this website if there was any change in .cs file.
Thanks
Arun
ramiramilu
All-Star
97799 Points
14494 Posts
Re: How to publish a single modified page of a website?
Jan 31, 2012 12:46 PM|LINK
For webapplication, yes you got rebuild and publish everything...but for website, you will get two options in visual studio, replace matching files or delete all files, if you select option one then only changed files will be published or else everything will be published...
Thanks,
JumpStart
etell0
Member
240 Points
76 Posts
Re: How to publish a single modified page of a website?
Jan 31, 2012 12:53 PM|LINK
upload bin folder and the page which have you modified....
jgoeke
Member
3 Points
1 Post
Re: How to publish a single modified page of a website?
Dec 07, 2012 10:05 PM|LINK
ramiramilu, where do you set these two options in VS. I am having the same problem and I cannot find any setting and I never get any prompt. Thanks in advance!