MSBuild内置变量列表 [英] List of MSBuild built-in variables

查看:68
本文介绍了MSBuild内置变量列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取内置的MSBuild变量列表?

How can I get a list of built-in MSBuild variables?

我需要知道如何确定当前项目的csproj名称,并认为了解在MSBuild中还能找到什么还有帮助.

I need to know how to determine the current project's csproj name, and thought it might be useful to know what else I can find out in MSBuild.

推荐答案

来自MSDN的综合列表:

Comprehensive lists from MSDN:

  • MSBuild reserved properties
  • Common MSBuild properties
  • Macros for Build Commands and Properties

其他有用的列表:

  • Well-known item metadata
  • MSBuild special characters

第一个链接显示了项目名称的MSBuild属性:

First link shows the MSBuild property for project name:

MSBuildProjectName 项目文件的文件名,不包含该文件 扩展名

MSBuildProjectName The file name of the project file without the file name extension

这篇关于MSBuild内置变量列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆