Replace legacy StyleCop(Plus) with StyleCopAnalyzers
Analyzers are enabled in the Debug configuration only to avoid unnecessary overheads when compiling normally.
This commit is contained in:
16
thirdparty/fetch-thirdparty-deps.ps1
vendored
16
thirdparty/fetch-thirdparty-deps.ps1
vendored
@@ -11,22 +11,6 @@ if (!(Test-Path "nuget.exe"))
|
||||
(New-Object System.Net.WebClient).DownloadFile("https://dist.nuget.org/win-x86-commandline/latest/nuget.exe", $target)
|
||||
}
|
||||
|
||||
if (!(Test-Path "StyleCopPlus.dll"))
|
||||
{
|
||||
echo "Fetching StyleCopPlus from NuGet."
|
||||
./nuget.exe install StyleCopPlus.MSBuild -Version 4.7.49.5 -ExcludeVersion -Verbosity quiet -Source nuget.org
|
||||
cp StyleCopPlus.MSBuild/tools/StyleCopPlus.dll .
|
||||
rmdir StyleCopPlus.MSBuild -Recurse
|
||||
}
|
||||
|
||||
if (!(Test-Path "StyleCop.dll"))
|
||||
{
|
||||
echo "Fetching StyleCop files from NuGet."
|
||||
./nuget.exe install StyleCop.MSBuild -Version 4.7.49.0 -ExcludeVersion -Verbosity quiet -Source nuget.org
|
||||
cp StyleCop.MSBuild/tools/StyleCop*.dll .
|
||||
rmdir StyleCop.MSBuild -Recurse
|
||||
}
|
||||
|
||||
if (!(Test-Path "ICSharpCode.SharpZipLib.dll"))
|
||||
{
|
||||
echo "Fetching ICSharpCode.SharpZipLib from NuGet."
|
||||
|
||||
14
thirdparty/fetch-thirdparty-deps.sh
vendored
14
thirdparty/fetch-thirdparty-deps.sh
vendored
@@ -13,20 +13,6 @@ download_dir="${0%/*}/download"
|
||||
mkdir -p "${download_dir}"
|
||||
cd "${download_dir}" || exit 1
|
||||
|
||||
if [ ! -f StyleCopPlus.dll ]; then
|
||||
echo "Fetching StyleCopPlus from NuGet"
|
||||
../noget.sh StyleCopPlus.MSBuild 4.7.49.5
|
||||
cp ./StyleCopPlus.MSBuild/tools/StyleCopPlus.dll .
|
||||
rm -rf StyleCopPlus.MSBuild
|
||||
fi
|
||||
|
||||
if [ ! -f StyleCop.dll ]; then
|
||||
echo "Fetching StyleCop files from NuGet"
|
||||
../noget.sh StyleCop.MSBuild 4.7.49.0
|
||||
cp ./StyleCop.MSBuild/tools/StyleCop*.dll .
|
||||
rm -rf StyleCop.MSBuild
|
||||
fi
|
||||
|
||||
if [ ! -f ICSharpCode.SharpZipLib.dll ]; then
|
||||
echo "Fetching ICSharpCode.SharpZipLib from NuGet"
|
||||
../noget.sh SharpZipLib 1.1.0
|
||||
|
||||
Reference in New Issue
Block a user