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

查看:12
本文介绍了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.

推荐答案

来自 Microsoft Docs(新文档)的综合列表:

Comprehensive lists from Microsoft Docs (New Docs):

来自 MSDN(旧版文档)的综合列表:

Comprehensive lists from MSDN (Legacy Docs):

其他有用的列表:

第一个链接显示项目名称的 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天全站免登陆