1、 接手以前的老项目,因为项目比较大,所以用Developer Command Prompt 的msbuild命令编译比较快一些,常用命令如下

devenv /?             帮助

ms build xx.sln    编译全部解决方案

1)      打开Developer Command Prompt for VS2013,(开始\visual studio2013\visual studio tools\Developer Command Prompt for VS2013)

注意要以管理员身份打开

2)      进入项目sln所在路径,如路径为C:\zxc\04 Retirement Studio\Solutions

输入cd C:\zxc\04 Retirement Studio\Solutions 回车

3)      输入msbuild + 解决方案名称,回车开始编译

输入:msbuild RetirementStudio.sln会车

4)如有错误会以红色提示,warning以黄色提示。

2、 在编译过程中报错。(主项目为RetirementStudio,其中报错的为子项目Common)

VS2013打开项目 在项目里面直接编译(rebuild)也报错

Error      1              The command "copy Mercer.RetirementStudio.Business.DataAcquisition.SSIS.Common.dll "C:\zxc\04 Retirement Studio\Solutions\Source\DataAcquisition\Business\SSIS\Common\..\RefBak\"" exited with code 1.                Common (Business\DataAcquisition\SSIS\Common)

3、 查看Common项目属性发现在Build Events中有如下设置:

copy $(TargetFileName) "$(ProjectDir)..\RefBak\"

猜测可能是输出文件路径不存在导致的错误,在项目Common.csproj的上一级目录

C:\zxc\04 Retirement Studio\Solutions\Source\DataAcquisition\Business\SSIS

下新建文件夹RefBak,重新编译即可通过

最新文章

  1. K/3 Cloud开发之旅 -- 主页自定义篇(一)
  2. EditText限制输入字符类型的几种方式
  3. BZOJ 1051: [HAOI2006]受欢迎的牛
  4. Apache2.4.6 添加虚拟主机
  5. C语言常用知识
  6. IIS 日志文件分析
  7. pl/sql programming 02 创建并运行plsql代码
  8. Delphi - 在ListView中添加一个进度条
  9. java编程思想-泛型思维导图
  10. InstallShield常用prq文件的下载地址
  11. petstore-jdbc
  12. 如何搭建个人博客网站(Mac)
  13. IntelliJ IDEA上操作GitHub
  14. Caused by: java.lang.ClassNotFoundException: org.springframework.web.filter.FormContentFilter
  15. JSONObject optString
  16. Linux 环境变量_006
  17. 数据库_存储过程简介(oracle版)
  18. 【Linux】深入理解Linux中内存管理
  19. 【转】四、可空类型Nullable<T>到底是什么鬼
  20. 数据结构(三)串---KMP模式匹配算法实现及优化

热门文章

  1. CF 834B The Festive Evening【差分+字符串处理】
  2. HDU 多校1.3
  3. hdu5558
  4. 最小生成树Kruskal+LCA+bfs【bzoj4242】水壶
  5. [Codeforces 8E] Beads
  6. 【分块】bzoj2957 楼房重建
  7. [CF509F]Progress Monitoring
  8. iOS开发——使用Autolayout弹出键盘
  9. python函数中的关键字参数
  10. u-boot-2012.10移植到AT91RM9200(包括NAND FLASH)