Red Gate forums :: View topic - RGPublish ignores empty folders in precompiled ASP.NET sites
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

RGPublish ignores empty folders in precompiled ASP.NET sites

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
jakenuts



Joined: 13 Oct 2009
Posts: 8

PostPosted: Wed Sep 18, 2013 9:13 pm    Post subject: RGPublish ignores empty folders in precompiled ASP.NET sites Reply with quote

I'm trying to use RGPublish to deploy an ASP.NET site that is pre-compiled. Because some folders contain controls that are compiled to code alone the folders they occupied are empty and when I pass the site to RGPublish it doesn't seem to include them in the package. This causes an error when some routing & other code try to access the folder and see that it isn't there. Is there any way to preserve empty folders when publishing?

Thanks!

James
Back to top
View user's profile Send private message
Emma A



Joined: 30 Mar 2009
Posts: 40

PostPosted: Fri Sep 20, 2013 1:54 pm    Post subject: Reply with quote

Hi James,

When RgPublish is run against a .csproj file it does not package the entire directory contents of your project it packages the output of building the solution.

So you could address the issue you are having in one of two ways:-
  • You could include a file in the folders and mark it as content and then the folders will be included when you run the RgPublish command on your project (csproj file)
  • You could run RgPublish against the output folder for your build (e.g. source), because RgPublish lets you package the entire contents of a folder and so these folders would be there. This will include all files that are within this directory. If you need to exclude some of these files you would need to create a nuspec file.


Hope this helps.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group