REM set version=31.0.0-pre1b
REM set platform=x86

if "%platform%"=="x64" (
	copy ..\x64\Release\CefSharp.Core.dll
	set DotPlatform=.x64
) else (
	copy ..\Win32\Release\CefSharp.Core.dll
	set Platform=x86
	set DotPlatform=
)

NuGet pack CefSharp.Common.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=%DotPlatform%;Platform=%Platform%
NuGet pack CefSharp.WpfOrWinForms.nuspec -NoPackageAnalysis -Version %version% -Properties ControlType=Wpf;DotPlatform=%DotPlatform%;Platform=%Platform%
NuGet pack CefSharp.WpfOrWinForms.nuspec -NoPackageAnalysis -Version %version% -Properties ControlType=WinForms;DotPlatform=%DotPlatform%;Platform=%Platform%

set version=31.0.0-CI-%APPVEYOR_BUILD_NUMBER%
REM set platform=x86

if "%platform%"=="x64" (
	copy ..\x64\Release\CefSharp.Core.dll
	set DotPlatform=.x64
) else (
	copy ..\Win32\Release\CefSharp.Core.dll
	set Platform=x86
	set DotPlatform=
)

NuGet pack CefSharp.Common.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=%DotPlatform%;Platform=%Platform%
NuGet pack CefSharp.WpfOrWinForms.nuspec -NoPackageAnalysis -Version %version% -Properties ControlType=Wpf;DotPlatform=%DotPlatform%;Platform=%Platform%
NuGet pack CefSharp.WpfOrWinForms.nuspec -NoPackageAnalysis -Version %version% -Properties ControlType=WinForms;DotPlatform=%DotPlatform%;Platform=%Platform%

Make CI NuGets unique by %APPVEYOR_BUILD_NUMBER%
Make CI NuGets unique by %APPVEYOR_BUILD_NUMBER%