< Back

Assert-WebProjectConsistency

Sat Jan 18, 2020 6:44 pm

NAME Assert-WebProjectConsistency



SYNOPSIS

Runs various sanity checks on a web project and it's configuration files.





SYNTAX

Assert-WebProjectConsistency [-ProjectFilePath] <String> [-BuildConfiguration] <String> [<CommonParameters>]





DESCRIPTION

Checks for:

- SlowCheetah

- Build actions set for XDT files

- Reserved file names like "Web.config"

- Configuration file encoding





PARAMETERS

-ProjectFilePath <String>

The absolute path to the .csproj-file.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-BuildConfiguration <String>

The current build configuration.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Assert-WebProjectConsistency -ProjectFilePath "D:\\Projects\\MySolution\\src\\MyProject\\code\\MyProject.csproj"

-BuildConfiguration "Staging"















RELATED LINKS