Open johlju opened 7 years ago
Please note that I also added that file to .gitignore so it doesn't get pushed to the repository.
It's not possible to use this to override the warning mentioned above because then the tests fail on an unallowed override was used. 😄
# Suppressing this rule because Invoke-Build is an alias
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingCmdletAliases', '')]
param()
To be able to run this locally the environment variables need to be set to mimic the behavior of AppVeyor.
I ended up creating a script
Start-Build.ps1
in the root folder that sets the variables before runningInvoke-Build
. This is not an optimal idea since this script generate a varning in the unit test that Invoke-Build is an alias, and should be change to point to the full script path'C:\Program Files\WindowsPowerShell\Modules\InvokeBuild\3.6.4\Invoke-Build.ps1'
. Since the version can change, it's not possible to change to the full path.