我想在为我的程序生成最终安装程序时实现更多的粒度。为了举例,让我们假设这被称为:程序。它由客户端和服务器组成。在这个例子中,我们有 5 个项目。
如果我只是通过 Bundle 项目构建安装程序,一切都是完美的。但是我希望它发生的方式是首先构建客户端和服务器(单独)以运行测试,如果成功 - 生成工件,然后 Budle 将使用这些工件生成最终安装程序。
目前我只用客户端成功地做到了这一点,msbuild Client.csproj /p:OutputPath=$binariesPath在指定的位置产生输出,然后使用
msbuild Bundle.wixproj /p:OutputPath=$installerPath /p:LinkerBindInputPaths=$binariesPath这个输出并在$installerPath
我尝试了多个 LinkerBindInputPaths 之类的/p:LinkerBindInputPaths=$binariesPath\Client /p:LinkerBindInputPaths=$binariesPath\Server,但这似乎不起作用。
也许我可以再挤一步并构建每个安装程序。这使我可以为每个组件获得单独的 MSI。目前,每个 MSI 都与其安装程序项目严格相关:
<MsiPackage Id="Client" SourceFile="$(var.ClientInstaller.TargetPath)" Vital="no" /> <MsiPackage Id="Server" SourceFile="$(var.ServerInstaller.TargetPath)" Vital="no" />
所以我的问题是:如何构建Bundle.wixproj以便我可以使用自定义的覆盖 MSI 源文件位置,我以前构建的输出所在的位置?
我刚刚开始学习 C++,试图学习一些基础知识。现在在 Eclipse 中使用 gcc 版本 5.2.1 进行编译,项目使用 c++11 参数进行编译。
\n\n现在,当我尝试时,就会出现包含问题#include <map>(只要编译器进入其中,我什至不使用映射,只是尝试包含它,这并不重要)。据我所知,地图本身有问题,但似乎不对。这里是简短的失败片段。
08:54:59 **** Incremental Build of configuration Debug for project RpnCalculator ****\nmake all \nBuilding file: ../Test/AddShouldBeRegistered.cpp\nInvoking: Cross G++ Compiler\ng++ -I/home/yoger/Coding/cpputest/include -O0 -g3 -Wall -c -fmessage- length=0 -std=c++11 -v -MMD -MP -MF"Test/AddShouldBeRegistered.d" -MT"Test/AddShouldBeRegistered.d" -o "Test/AddShouldBeRegistered.o" "../Test/AddShouldBeRegistered.cpp"\nUsing built-in specs.\nCOLLECT_GCC=g++\nTarget: x86_64-linux-gnu\nConfigured with: ../src/configure -v --with-pkgversion=\'Ubuntu 5.2.1-22ubuntu2\' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin …Run Code Online (Sandbox Code Playgroud)