Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 1.42 KB

common-msbuild-item-metadata.md

File metadata and controls

32 lines (28 loc) · 1.42 KB
title ms.date ms.topic dev_langs helpviewer_keywords ms.assetid author ms.author manager ms.workload
Common MSBuild item metadata | Microsoft Docs
07/13/2020
reference
VB
CSharp
C++
msbuild, common item metadata
item metadata (MSBuild)
9857505d-ae15-42f1-936d-6cd7fb9dd276
ghogen
ghogen
jillfra
multiple

Common MSBuild item metadata

The following table describes optional item metadata that have meaning for some MSBuild SDKs or targets, but that are not set by default for every item. You can set these to influence build behavior, but only if the SDK or target files you are using recognize it.

Item metadata SDKs Description
%(Link) All The Visual Studio project system uses Link metadata (if present) to alter what shows up in the project tree; you can put a file in a different logical folder structure in Solution Explorer.
In addition, the AssignTargetPath task looks at Link to determine where in the output directory to copy a file to, if it’s one of the items that gets copied.
%(LinkBase) .NET Core SDK Used to set the folder to be used for Link metadata for groups of items.

See also