Explicitly specified NuGet package source in the Windows dependencies script

Otherwise NuGet breaks there are alternative (private) NuGet feeds set up on the local machine and one of them isn't responding currently.
This commit is contained in:
Pavel Penev
2019-03-07 12:38:11 +02:00
committed by reaperrr
parent 6d63c99104
commit ffac21c3d3

View File

@@ -14,7 +14,7 @@ if (!(Test-Path "nuget.exe"))
if (!(Test-Path "StyleCopPlus.dll")) if (!(Test-Path "StyleCopPlus.dll"))
{ {
echo "Fetching StyleCopPlus from NuGet." echo "Fetching StyleCopPlus from NuGet."
./nuget.exe install StyleCopPlus.MSBuild -Version 4.7.49.5 -ExcludeVersion -Verbosity quiet ./nuget.exe install StyleCopPlus.MSBuild -Version 4.7.49.5 -ExcludeVersion -Verbosity quiet -Source nuget.org
cp StyleCopPlus.MSBuild/tools/StyleCopPlus.dll . cp StyleCopPlus.MSBuild/tools/StyleCopPlus.dll .
rmdir StyleCopPlus.MSBuild -Recurse rmdir StyleCopPlus.MSBuild -Recurse
} }
@@ -22,7 +22,7 @@ if (!(Test-Path "StyleCopPlus.dll"))
if (!(Test-Path "StyleCop.dll")) if (!(Test-Path "StyleCop.dll"))
{ {
echo "Fetching StyleCop files from NuGet." echo "Fetching StyleCop files from NuGet."
./nuget.exe install StyleCop.MSBuild -Version 4.7.49.0 -ExcludeVersion -Verbosity quiet ./nuget.exe install StyleCop.MSBuild -Version 4.7.49.0 -ExcludeVersion -Verbosity quiet -Source nuget.org
cp StyleCop.MSBuild/tools/StyleCop*.dll . cp StyleCop.MSBuild/tools/StyleCop*.dll .
rmdir StyleCop.MSBuild -Recurse rmdir StyleCop.MSBuild -Recurse
} }
@@ -30,7 +30,7 @@ if (!(Test-Path "StyleCop.dll"))
if (!(Test-Path "ICSharpCode.SharpZipLib.dll")) if (!(Test-Path "ICSharpCode.SharpZipLib.dll"))
{ {
echo "Fetching ICSharpCode.SharpZipLib from NuGet." echo "Fetching ICSharpCode.SharpZipLib from NuGet."
./nuget.exe install SharpZipLib -Version 0.86.0 -ExcludeVersion -Verbosity quiet ./nuget.exe install SharpZipLib -Version 0.86.0 -ExcludeVersion -Verbosity quiet -Source nuget.org
cp SharpZipLib/lib/20/ICSharpCode.SharpZipLib.dll . cp SharpZipLib/lib/20/ICSharpCode.SharpZipLib.dll .
rmdir SharpZipLib -Recurse rmdir SharpZipLib -Recurse
} }
@@ -38,7 +38,7 @@ if (!(Test-Path "ICSharpCode.SharpZipLib.dll"))
if (!(Test-Path "MaxMind.Db.dll")) if (!(Test-Path "MaxMind.Db.dll"))
{ {
echo "Fetching MaxMind.Db from NuGet." echo "Fetching MaxMind.Db from NuGet."
./nuget.exe install MaxMind.Db -Version 2.0.0 -ExcludeVersion -Verbosity quiet ./nuget.exe install MaxMind.Db -Version 2.0.0 -ExcludeVersion -Verbosity quiet -Source nuget.org
cp MaxMind.Db/lib/net45/MaxMind.Db.* . cp MaxMind.Db/lib/net45/MaxMind.Db.* .
rmdir MaxMind.Db -Recurse rmdir MaxMind.Db -Recurse
} }
@@ -46,7 +46,7 @@ if (!(Test-Path "MaxMind.Db.dll"))
if (!(Test-Path "SharpFont.dll")) if (!(Test-Path "SharpFont.dll"))
{ {
echo "Fetching SharpFont from NuGet." echo "Fetching SharpFont from NuGet."
./nuget.exe install SharpFont -Version 4.0.1 -ExcludeVersion -Verbosity quiet ./nuget.exe install SharpFont -Version 4.0.1 -ExcludeVersion -Verbosity quiet -Source nuget.org
cp SharpFont/lib/net45/SharpFont* . cp SharpFont/lib/net45/SharpFont* .
cp SharpFont/config/SharpFont.dll.config . cp SharpFont/config/SharpFont.dll.config .
rmdir SharpFont -Recurse rmdir SharpFont -Recurse
@@ -56,7 +56,7 @@ if (!(Test-Path "SharpFont.dll"))
if (!(Test-Path "nunit.framework.dll")) if (!(Test-Path "nunit.framework.dll"))
{ {
echo "Fetching NUnit from NuGet." echo "Fetching NUnit from NuGet."
./nuget.exe install NUnit -Version 3.0.1 -ExcludeVersion -Verbosity quiet ./nuget.exe install NUnit -Version 3.0.1 -ExcludeVersion -Verbosity quiet -Source nuget.org
cp NUnit/lib/net40/nunit.framework* . cp NUnit/lib/net40/nunit.framework* .
rmdir NUnit -Recurse rmdir NUnit -Recurse
} }
@@ -85,7 +85,7 @@ if (!(Test-Path "windows/SDL2.dll"))
if (!(Test-Path "Open.Nat.dll")) if (!(Test-Path "Open.Nat.dll"))
{ {
echo "Fetching Open.Nat from NuGet." echo "Fetching Open.Nat from NuGet."
./nuget.exe install Open.Nat -Version 2.1.0 -ExcludeVersion -Verbosity quiet ./nuget.exe install Open.Nat -Version 2.1.0 -ExcludeVersion -Verbosity quiet -Source nuget.org
cp Open.Nat/lib/net45/Open.Nat.dll . cp Open.Nat/lib/net45/Open.Nat.dll .
rmdir Open.Nat -Recurse rmdir Open.Nat -Recurse
} }
@@ -93,7 +93,7 @@ if (!(Test-Path "Open.Nat.dll"))
if (!(Test-Path "windows/lua51.dll")) if (!(Test-Path "windows/lua51.dll"))
{ {
echo "Fetching Lua 5.1 from NuGet." echo "Fetching Lua 5.1 from NuGet."
./nuget.exe install lua.binaries -Version 5.1.5 -ExcludeVersion -Verbosity quiet ./nuget.exe install lua.binaries -Version 5.1.5 -ExcludeVersion -Verbosity quiet -Source nuget.org
cp lua.binaries/bin/win32/dll8/lua5.1.dll ./windows/lua51.dll cp lua.binaries/bin/win32/dll8/lua5.1.dll ./windows/lua51.dll
rmdir lua.binaries -Recurse rmdir lua.binaries -Recurse
} }
@@ -101,7 +101,7 @@ if (!(Test-Path "windows/lua51.dll"))
if (!(Test-Path "windows/freetype6.dll")) if (!(Test-Path "windows/freetype6.dll"))
{ {
echo "Fetching FreeType2 from NuGet." echo "Fetching FreeType2 from NuGet."
./nuget.exe install SharpFont.Dependencies -Version 2.6.0 -ExcludeVersion -Verbosity quiet ./nuget.exe install SharpFont.Dependencies -Version 2.6.0 -ExcludeVersion -Verbosity quiet -Source nuget.org
cp SharpFont.Dependencies/bin/msvc9/x86/freetype6.dll ./windows/freetype6.dll cp SharpFont.Dependencies/bin/msvc9/x86/freetype6.dll ./windows/freetype6.dll
rmdir SharpFont.Dependencies -Recurse rmdir SharpFont.Dependencies -Recurse
} }
@@ -109,7 +109,7 @@ if (!(Test-Path "windows/freetype6.dll"))
if (!(Test-Path "windows/soft_oal.dll")) if (!(Test-Path "windows/soft_oal.dll"))
{ {
echo "Fetching OpenAL Soft from NuGet." echo "Fetching OpenAL Soft from NuGet."
./nuget.exe install OpenAL-Soft -Version 1.16.0 -ExcludeVersion -Verbosity quiet ./nuget.exe install OpenAL-Soft -Version 1.16.0 -ExcludeVersion -Verbosity quiet -Source nuget.org
cp OpenAL-Soft/bin/Win32/soft_oal.dll windows/soft_oal.dll cp OpenAL-Soft/bin/Win32/soft_oal.dll windows/soft_oal.dll
rmdir OpenAL-Soft -Recurse rmdir OpenAL-Soft -Recurse
} }
@@ -117,7 +117,7 @@ if (!(Test-Path "windows/soft_oal.dll"))
if (!(Test-Path "FuzzyLogicLibrary.dll")) if (!(Test-Path "FuzzyLogicLibrary.dll"))
{ {
echo "Fetching FuzzyLogicLibrary from NuGet." echo "Fetching FuzzyLogicLibrary from NuGet."
./nuget.exe install FuzzyLogicLibrary -Version 1.2.0 -ExcludeVersion -Verbosity quiet ./nuget.exe install FuzzyLogicLibrary -Version 1.2.0 -ExcludeVersion -Verbosity quiet -Source nuget.org
cp FuzzyLogicLibrary/bin/Release/FuzzyLogicLibrary.dll . cp FuzzyLogicLibrary/bin/Release/FuzzyLogicLibrary.dll .
rmdir FuzzyLogicLibrary -Recurse rmdir FuzzyLogicLibrary -Recurse
} }
@@ -125,7 +125,7 @@ if (!(Test-Path "FuzzyLogicLibrary.dll"))
if (!(Test-Path "rix0rrr.BeaconLib.dll")) if (!(Test-Path "rix0rrr.BeaconLib.dll"))
{ {
echo "Fetching rix0rrr.BeaconLib from NuGet." echo "Fetching rix0rrr.BeaconLib from NuGet."
./nuget.exe install rix0rrr.BeaconLib -Version 1.0.1 -ExcludeVersion -Verbosity quiet ./nuget.exe install rix0rrr.BeaconLib -Version 1.0.1 -ExcludeVersion -Verbosity quiet -Source nuget.org
cp rix0rrr.BeaconLib/lib/net40/rix0rrr.BeaconLib.dll . cp rix0rrr.BeaconLib/lib/net40/rix0rrr.BeaconLib.dll .
rmdir rix0rrr.BeaconLib -Recurse rmdir rix0rrr.BeaconLib -Recurse
} }