我在Windows 7 Ultimate x64上使用VS2010。 我想在一个解决方案中自动构建多项目。VisualStudio - Q:如何在解决方案中构建多个项目之前执行过程
例如:) 解决方案StormSolution
包含4个项目。
1:Storm_Module1(输出文件扩展名:DLL)
2:Storm_Module2(输出文件扩展名:DLL)
3:CombineModule12(输出文件扩展名:DAT)
4: ConvertModule2CFGFile(输出文件扩展名:cfg)
第1,2步: Storm_Module1
和Storm_Module2
的结果是Standard Windows DLL
。
步骤3:的CombineModule12
结果是开放Storm_Module1.dll和Storm_Module2.dll使“combined.dat”文件,就像cmd.exe /c copy /b storm_module1.dll + storm_module2.dll combined.dat
命令。
步骤3-1:然后,让combined.dat文件到encrypted_combined.dat文件,encryption_tool。
第4步:打开“encrypted_combined.dat”文件,并将其制作成自己指定的cfg
文件。
问题发生在步骤4。我无法自动构建解决方案风暴。 因为我已经做“combined.dat”的Step3
结果为“encrypted_combined.dat”与encryption_tool。
因此,如果我在没有任何操作的情况下构建Storm解决方案,ConvertModule2CFGFile
项目无法打开最新更新encrypted_combined.dat。
我该如何执行加密工具Step4。
加密工具可以用参数执行。
ex :) cmd.exe /c "encryption tool.exe -mode_crypt combined.dat -output encrypted_combined.dat
。
在构建项目之前无法执行过程吗?
使用def文件使用lib.exe实用程序为相应的* .dll文件创建* .lib文件。 dll模块不需要保存在解决方案中,因为它们在编译期间不需要。保持项目链接器设置为共享模式。 – ark1974