简体   繁体   中英

Copying a file to another Project's Debug folder in the Post Build Event

This is driving me insane. With Prism's Modularity Quickstart , building a Module moves it to the main application's bin\Debug folder. When I try to do the same, the file goes to the application's bin\Release folder. What am I doing wrong??

Post-Build Event

xcopy "$(TargetDir)MyModule.dll" 
      "$(SolutionDir)MainApplication\bin\$(ConfigurationName)\Modules\" /Y

The $(ConfigurationName) tag will contain the name of the current Solution Configuration.

You can change the solution configuration you are building under by going to Build -> Configuration Manager and change the Active Solution Configuration to "Debug". Alternatively there is a dropdown at the top of Visual Studio with this as well.

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