开发者

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

开发者 https://www.devze.com 2023-03-08 10:04 出处:网络
This is driving me insane. With Prism\'s Modularity Quickstart, building a Module moves it to the main application\'s bin\\Debug folder开发者_JS百科. When I try to do the same, the file goes to the ap

This is driving me insane. With Prism's Modularity Quickstart, building a Module moves it to the main application's bin\Debug folder开发者_JS百科. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消