Security Warning Dialog Box (MSBuild Project File)


The Security Warning dialog box warns developers about security issues with projects.

UI Elements

  • Ask me for every project in this solution
    Select this option to be prompted for every project in the solution. This is set by default.

Project Items in Potentially Dangerous Locations

Some items in otherwise safe .targets files use user-defined project properties set their paths. To prevent an item from overwriting an important file, project files that contain item paths that evaluate to one of the following locations or any subdirectories of these locations are considered to be potential security risks unless they are also located in or below the solution file or project file directory:

  • The root directory of any drive.

  • The Windows directory, for example, C:\Windows\.

  • The Program Files directory, for example, C:\Program Files\.

  • Network shares.

See Also

MSBuild Reference
MSBuild Concepts