| title | FindAppConfigFile Task | |||
|---|---|---|---|---|
| description | Learn to use the MSBuild FindAppConfigFile task to find the app.config file, if any, in the provided lists. | |||
| ms.date | 11/04/2016 | |||
| ms.topic | reference | |||
| dev_langs |
|
|||
| helpviewer_keywords |
|
|||
| author | ghogen | |||
| ms.author | ghogen | |||
| ms.subservice | msbuild |
Finds the app.config file, if any, in the provided lists.
The following table describes the parameters of the FindAppConfigFile task.
| Parameter | Description |
|---|---|
AppConfigFile |
Optional xref:Microsoft.Build.Framework.ITaskItem[] output parameter.Specifies the first matching item found in the list, if any. |
PrimaryList |
Required xref:Microsoft.Build.Framework.ITaskItem[] parameter.Specifies the primary list to search through. |
SecondaryList |
Required xref:Microsoft.Build.Framework.ITaskItem[] parameter.Specifies the secondary list to search through. |
TargetPath |
Required String parameter.Specifies the value to add as metadata. |
In addition to having the parameters that are listed in the table, this task inherits parameters from the xref:Microsoft.Build.Tasks.TaskExtension class, which itself inherits from the xref:Microsoft.Build.Utilities.Task class. For a list of these additional parameters and their descriptions, see TaskExtension base class.