-
-
Notifications
You must be signed in to change notification settings - Fork 7
Remove ProjectInvalidItems
apobekiaris edited this page Sep 4, 2020
·
3 revisions
Evaluates the MSBuild using Microsoft.Build.Framework and removes invalid items (Imports, Analyzers etc).
Remove-ProjectInvalidItems [[-ProjectFile] <String>] [[-MSBuildProject] <Object>] [[-ItemType] <String[]>]
[<CommonParameters>]
Evaluates the MSBuild using Microsoft.Build.Framework and removes invalid items (Imports, Analyzers etc).
PS C:\> Remove-ProjectInvalidItems $ProjectFile
{{ Fill ItemType Description }}
Type: String[]
Parameter Sets: (All)
Aliases:
Accepted values: Imports, Analyzer
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill MSBuildProject Description }}
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ProjectFile Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.