469,925 Members | 1,424 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,925 developers. It's quick & easy.

VS' publish website feature not copying static files

Hi all,

I want to publish my asp.net 2.0 website using the "publish website"
feature of visual studio 2005. everything works fine so far, but the
IDE only compiles and copies the aspx, ascx, resources etc. files to
the destination directory. It does actually not copy .txt, .htm or
graphics files. MSDN says these files should be copied during the
publishing task, but they are definitely not copied. Neither does it
offer any troubleshooting steps. Is there a hidden setting somewhere?
Or do I misunderstand the "publish website" feature? I guess not,
because copying graphic files would actually make sense.
Any hints would be greatly appreciated. Thanks in advance.

Cheers, Hannes

Jul 17 '07 #1
2 2278
In the Properties panel, there is a Build Action option. Make sure this is
set to "Content". This will ensure that the file gets copied when you
Publish the project.

Note: Do not set the Copy to Output option to copy unless you want the file
copied to the Bin folder.
<sc*******@rehm.dewrote in message
news:11**********************@g37g2000prf.googlegr oups.com...
Hi all,

I want to publish my asp.net 2.0 website using the "publish website"
feature of visual studio 2005. everything works fine so far, but the
IDE only compiles and copies the aspx, ascx, resources etc. files to
the destination directory. It does actually not copy .txt, .htm or
graphics files. MSDN says these files should be copied during the
publishing task, but they are definitely not copied. Neither does it
offer any troubleshooting steps. Is there a hidden setting somewhere?
Or do I misunderstand the "publish website" feature? I guess not,
because copying graphic files would actually make sense.
Any hints would be greatly appreciated. Thanks in advance.

Cheers, Hannes
Jul 17 '07 #2
There is not Build Action Option in the properties for web files
(except my project settings are wrong).

On 17 Jul., 18:24, "Brandon Gano" <bg...@inocompany.comwrote:
In the Properties panel, there is a Build Action option. Make sure this is
set to "Content". This will ensure that the file gets copied when you
Publish the project.

Note: Do not set the Copy to Output option to copy unless you want the file
copied to the Bin folder.

<schnei...@rehm.dewrote in message

news:11**********************@g37g2000prf.googlegr oups.com...
Hi all,
I want to publish my asp.net 2.0 website using the "publish website"
feature of visual studio 2005. everything works fine so far, but the
IDE only compiles and copies the aspx, ascx, resources etc. files to
the destination directory. It does actually not copy .txt, .htm or
graphics files. MSDN says these files should be copied during the
publishing task, but they are definitely not copied. Neither does it
offer any troubleshooting steps. Is there a hidden setting somewhere?
Or do I misunderstand the "publish website" feature? I guess not,
because copying graphic files would actually make sense.
Any hints would be greatly appreciated. Thanks in advance.
Cheers, Hannes

Jul 19 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Mike S. | last post: by
2 posts views Thread by msnews.microsoft.com | last post: by
8 posts views Thread by Graham | last post: by
5 posts views Thread by NoNickname | last post: by
6 posts views Thread by ewolfman | last post: by
1 post views Thread by cadonahue | last post: by
10 posts views Thread by WT | last post: by
3 posts views Thread by mrajanikrishna | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.