Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.62 KB

File metadata and controls

40 lines (31 loc) · 1.62 KB
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
VB
CSharp
C++
helpviewer_keywords
FindAppConfigFile task [MSBuild]
MSBuild, FindAppConfigFile task
author ghogen
ms.author ghogen
ms.subservice msbuild

FindAppConfigFile task

Finds the app.config file, if any, in the provided lists.

Parameters

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.

Remarks

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.

See also