0

I have a sample project that is structured like the below image:

Project struct

The WebApplication2 has depended on ClassLibrary1 at publishing time like this:

enter image description here

I want to copy some needed file in ClassLibrary1 project after publishing in a specific folder, for example in Plug-in/ClassLibrary1/ If you've looked at Orchard you'd see something like this.

Thanks.

Saeed Hamed
  • 732
  • 2
  • 10
  • 28

1 Answers1

1

In general (regardless of the type of the application) you could define custom actions during deployment, if you build a setup application. I think that limited edition of the InstallShield is the default solution for VS2013. There you could create some custom actions writing a script. Inside this script you could deploy the specific file. An alternative against the InstallShield is the WiX which you could use to build an MSI file using an XML.

Regarding web applications in particular, you could use the publish mechanism provided by the Visual Studio. This tutorial describes how you could configure it so that it would copy all project files. Then you could add the specific file as a project file and copy it each time you publish your website.

Hope I helped!

Pantelis Natsiavas
  • 5,293
  • 5
  • 21
  • 36
  • thanks :), but my problem is something else. My project is a web application and I want to copy required files on building or publishing. – Saeed Hamed Jan 11 '14 at 10:15