简体   繁体   中英

VS2010 copy files from bin after publish

Solution contains 2 projects. All of them are mvc sites, but on the second site the file global.asax was deleted.The first project has reference to the second. All views, images, js and css files of the second project have attribute "copy always". In the first project in post-build event command line I added a script which copies these files from bin to another folder("Base"). After build everything is working fine, but after publishing with "in file system" method the files don't copy from bin folder. "Base" folder isn't added to the first project, it is created after the first build.

  1. Set project build order

  2. Copy manually in the Post-buid event like this.

COPY "$(TargetDir)*.*" "c:\\MySolution\\MyProject\\etc"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM