post-build-event

Copy target file to another location in a post build step in CMake

送分小仙女□ 提交于 2019-11-27 18:34:13
I have a dynamic library that gets a different name depending on configuration, specified in the CMake scripts by: set_target_properties(${name} PROPERTIES OUTPUT_NAME ${outputName}64) set_target_properties(${name} PROPERTIES DEBUG_OUTPUT_NAME ${outputName}64_d) The end result is that I get a different name on release and debug builds. I would like to copy the resulting library to a different directory as a post-build step, but the gift(?) of CMake-Fu did not smile upon yours truly. I have tried doing this: GET_TARGET_PROPERTY(origfile mylibrary LOCATION) STRING(REGEX REPLACE "/" "\\\\"

How can you access the Visual Studio solution level platform from a C# project's build event?

本小妞迷上赌 提交于 2019-11-27 06:42:25
问题 We have a large VS 2010 solution that is mostly C# code but there are a few native DLLs that various C# projects depend upon (including our unit testing DLL). We're in the processing of trying to support both 32-bit and 64-bit versions of our libraries. So we're now build the native DLLs as 32-bit and 64-bit. The problem is that a lot of our C# project's have post-build events that copy the required native DLLs into the project's TargetDir. Now that we have two different versions of the

Visual studio 2010 - Per Developer/machine/environment Web.Config settings

人盡茶涼 提交于 2019-11-27 03:27:01
问题 Wanted to pick the brains of those MS Build/ VS Post build exponents here. I would like to have my web.config entries customizable per user/machine/environment. I could have my configurable/changeable entries marked in the web.config and would like those entries overridden by the respective user/environment file and would like to have an order that decides which entries should trump the other if the entry is found in multiple files. for eg: web.config has a $connectionstring entry and the

How do I fix MSB3073 error in my post-build event?

[亡魂溺海] 提交于 2019-11-26 19:58:46
问题 I'm working on a project that requires that DLLs generated by building my solution to be copied from the bin folder to another folder, both of which are on my machine, in my C drive. I've written a batch file that uses xcopy to accomplish this, which you can see here: xcopy /s /y /q "C:\Users\scogan\Documents\Visual Studio 2012\Projects\Organizr\Server\bin\Debug\Organizr.Services.dll" "C:\inetpub\wwwroot\AppServer\bin\" xcopy /s /y /q "C:\Users\scogan\Documents\Visual Studio 2012\Projects

Visual Studio Post Build Event - Copy to Relative Directory Location

。_饼干妹妹 提交于 2019-11-26 18:16:55
On a successful build, I wish to copy the contents of the output directory to a different location under the same "base" folder. This parent folder is a relative part and can vary based on Source Control settings. I have listed a few of the Macro values available to me ... $(SolutionDir) = D:\GlobalDir\Version\AppName \Solution1\build $(ProjectDir) = D:\GlobalDir\Version\AppName \Solution1\Version\ProjectA\ I want to copy the Output Dir contents to the following folder : D:\GlobalDir\Version\AppName \Solution2\Project\Dependency The base location "D:\GlobalDir\Version\AppName" needs to be

Are there any better ways to copy a native dll to the bin folder?

别等时光非礼了梦想. 提交于 2019-11-26 13:59:02
问题 I have C# wrapper code that calls functions from a native (C++) dll. Currently, I can add a reference to the C# dll and have set the 'Copy Local' option to true. However the native dll, which is a dependency, cannot be added as a reference - so there is no 'Copy Local' option. I have tried the following approaches Using a post-build events to copy the native dll from the Libs folder to the $(TargetFolder) copy "$(ProjectDir)Libs\NQuantLibc.dll" "$(TargetDir)NQuantLibc.dll" Included the native

Visual Studio Post Build Event - Copy to Relative Directory Location

不羁的心 提交于 2019-11-26 06:14:22
问题 On a successful build, I wish to copy the contents of the output directory to a different location under the same \"base\" folder. This parent folder is a relative part and can vary based on Source Control settings. I have listed a few of the Macro values available to me ... $(SolutionDir) = D:\\GlobalDir\\Version\\AppName \\Solution1\\build $(ProjectDir) = D:\\GlobalDir\\Version\\AppName \\Solution1\\Version\\ProjectA\\ I want to copy the Output Dir contents to the following folder : D:\