说明

https://docs.microsoft.com/en-us/cpp/ide/common-macros-for-build-commands-and-properties?view=vs-2017

$(ProjectDir)      The directory of the project (defined as drive + path); includes the trailing backslash '\'.

$(SolutionDir)    The directory of the solution (defined as drive + path); includes the trailing backslash '\'.

$(TargetDir)       The directory of the primary output file for the build (defined as drive + path); includes the trailing backslash '\'.

example

https://stackoverflow.com/questions/6267788/making-pre-and-post-build-event-scripts-pretty

考虑用powershell脚本接收参数,然后打印出来确认

在项目属性中,找到Build Events

然后点击Edit Post-build,点击Macros就可以看到对应到的具体的变量的Value

如何去掉backslash

https://stackoverflow.com/questions/36975106/how-can-i-remove-tralling-backslash-from-projectdir

You can use the TrimEnd function to trim the trailing slash character

$(ProjectDir.TrimEnd('\'))

I found this option in this post

https://blogs.msdn.microsoft.com/twistylittlepassagesallalike/2011/04/23/everyone-quotes-command-line-arguments-the-wrong-way/

Common Macros for Build Commands and Properties相关推荐

  1. Warning: Multiple build commands for output file /xxx

    今天注意到这个问题,如下: 在这里找到了答案:http://www.cnblogs.com/weilaikeji/archive/2013/10/15/3369709.html 解决步骤: 1.选择你 ...

  2. 【翻译】(11)NDK Build

    ----- 英文文档见android-ndk-r5b的documentation.html 属于Android Native Development Kit (NDK)的一部分 见http://dev ...

  3. Build OS Menu of Platform Builder 5.0

    Sysgen/Build and sysgen/Build and sysgen current BSP区别: Sysgen: 更新Catalog后,生成NK.bin之前.不会更新之前Build完成的 ...

  4. Linux下编译build的命令,Linux命令行下编译Android NDK的示例代码

    这几天琢磨写一个Android的Runtime用来加速HTML5 Canvas,让GameBuilder+CanTK 不但开发速度快,运行速度也能接近原生应用.所以花了点时间研究Android NDK ...

  5. 理解 Android Build 系统

    Android Build 系统是用来编译 Android 系统,Android SDK 以及相关文档的一套框架.众所周知,Android 是一个开源的操作系统.Android 的源码中包含了许许多多 ...

  6. NDK其他build变量

    TARGET_ARCH:目标cpu的架构. TARGET_PLATFORM:目标Android平台的名字,如android-3等. TARGET_ARCH_ABI:目标cpu和abi的架构的名字. T ...

  7. Maven的构建配置文件(Build Profiles)

    在命令行使用构建配置文件时,是-P,比如:mvn -Pinput 注意:这里的构建配置文件并不是一个真正的文件,而是通过指定参数来做特定的事. 以下内容引用自https://ayayui.gitboo ...

  8. visual c++ build tools的安装与使用

    开发环境: win10 + Microsoft Visual C++ Build Tools 2015 ------------------------------------------------ ...

  9. Mac OS X Glut build instructions

    Mac OS X Glut build instructions(在Mac上用glut库编写OpenGL程序) Wentao Sun, Autodesk, Inc. 1. Building GLUT  ...

最新文章

  1. C++ 重载运算符 operator
  2. 打通Devops的Scrum敏捷工具
  3. Struts2-拦截器原理
  4. tomcat服务器安装
  5. CDN - 域名解析错误排查
  6. 橡皮擦_日本推出改邪归正橡皮擦,看得我头顶一凉
  7. 人工智能迎来寒冬,自动驾驶汽车发展受阻
  8. 帆软分组合并字符串、提取字符串中的数字、判断多项字符串至少一项被包含
  9. select系统调用
  10. BOOST库介绍(六)——容器
  11. 专业的统计分析软件 IBM SPSS Statistics 26 Mac版(附带安装包网盘资源)
  12. reactos操作系统实现(108)
  13. 经典日内策略分析(收藏版)Dual Thrust、ATR、R-Breaker、菲阿里四价
  14. 【Redis总结-基础入门】
  15. iOS开发之利用苹果系统自带地图进行地图开发
  16. 机器学习-周志华-学习记录-第一章绪论
  17. 结构体的定义与结构体变量的定义
  18. 视频文件M3U8和TS格式切片,讨论一下?
  19. (跟我一起来学区块链(1.6))之 区块链技术特性
  20. 全国普降大雪,人民喜忧参半!

热门文章

  1. 通用的类-可直接存储的Dictionary,可以被JSON或NSUserDefaults
  2. hdu 1430+hdu 3567(预处理)
  3. hdu 1142 记忆化搜索
  4. 一天一点数据结构+算法:复习堆的知识
  5. java在线支付---04_编写易宝支付的客户端加密工具类
  6. memset详解 设置无穷大INF
  7. ll按时间排序和查看目录下文件数
  8. C语言和设计模式(之模板模式)
  9. 一步一步写算法(之排序二叉树的保存和加载)
  10. php ueditor 去掉在线管理,UEditor 添加在线管理图片删除功能 (转载)