1

I'm trying to use the Web One Click Publish feature in VS10 to push my asp.net app to IIS. I have some .resx files and another folder for uploaded images, none of these got copied to IIS. How do I tell it to copy the specified files and folders

Thank you so much, Ray.

Ray
  • 12,101
  • 27
  • 95
  • 137

1 Answers1

1

Have you checked to make sure that the properties of the .resx files have "Copy to Output Directory" set to Copy Always?

alt text


UPDATE: I apologize for not reading your question closely enough.

According to this link http://msdn.microsoft.com/en-us/library/dd434211.aspx, you should check the Items to Deploy drop down list and make sure you have one of the following two options set:

All files in this project. All files included in the project are deployed to the destination server. Files that are in the project folder but are not included in the project are excluded.

or

All files in this project folder. All files in the project folder are deployed to the destination server, even if they are excluded from the project.

alt text

jslatts
  • 9,307
  • 5
  • 35
  • 38
  • Tried this. It copied the .resx and its containing folder to the /bin directory in IIS, is there a way to tell it not to do that? – Ray Nov 01 '10 at 20:42
  • You are right, I updated my answer with a (hopefully) more appropriate answer. I apologize for not reading your question carefully. – jslatts Nov 01 '10 at 22:46
  • Thank you so much, jslatts, for your input! I've upvoted it & marked it as answer! Changing to "All files in this project" did get the resx files out of /bin folder, though it also carried extra files like all my web.config files over to IIS, I can live with that. Thanks! – Ray Nov 02 '10 at 17:42
  • I am not sure if there is any easy way to make it ignore extra web.config files short of manually editing the MSBuild scripts to do so. If you wanted to go down that path, it might take a bit of work but it certainly could be done. – jslatts Nov 02 '10 at 17:56
  • 1
    You can exclude the extra .config files by unloading the project and editing the project file. In the PropertyGroup element, add elements like Web.Debug.config – East of Nowhere Sep 22 '11 at 18:21