Skip to content

Remove ProjectInvalidItems

apobekiaris edited this page Sep 4, 2020 · 3 revisions

external help file: XpandPwsh-help.xml Module Name: XpandPwsh schema: 2.0.0

Remove-ProjectInvalidItems

SYNOPSIS

Evaluates the MSBuild using Microsoft.Build.Framework and removes invalid items (Imports, Analyzers etc).

SYNTAX

Remove-ProjectInvalidItems [[-ProjectFile] <String>] [[-MSBuildProject] <Object>] [[-ItemType] <String[]>]
 [<CommonParameters>]

DESCRIPTION

Evaluates the MSBuild using Microsoft.Build.Framework and removes invalid items (Imports, Analyzers etc).

EXAMPLES

Example 1

PS C:\> Remove-ProjectInvalidItems $ProjectFile

PARAMETERS

-ItemType

{{ 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

-MSBuildProject

{{ Fill MSBuildProject Description }}

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProjectFile

{{ Fill ProjectFile Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

image

image


Star the project if you think it deserves it.

GitHub stars

Fork the project to extend and contribute.

GitHub forks

Clone this wiki locally