setlocal

set IDE_PATH=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
set BUILD_PATH=C:\Windows\Microsoft.NET\Framework64\v4.0.30319

"%BUILD_PATH%\MSBuild.exe" /p:Configuration=Release ..\Help\fooeditengine_api.shfbproj
"%IDE_PATH%\devenv" /build Release ..\Windows\FooEditEngine.sln
"%IDE_PATH%\devenv" /build Release ..\WPF\FooEditEngine.sln
"%IDE_PATH%\devenv" /build Release ..\Metro\Test.sln

md dist
copy ..\Help\Help\Documentation.chm dist
md dist\winform
copy ..\Windows\FooEditEngine\bin\Release\*.dll dist\winform
md dist\wpf
copy ..\WPF\FooEditEngine\bin\Release\*.dll dist\wpf
md dist\metro
copy ..\Metro\FooEditEngnine\bin\Release\*.dll dist\metro
copy ..\Metro\FooEditEngnine\bin\Release\*.pri dist\metro
md dist\metro\FooEditEngine\Themes
copy ..\Metro\FooEditEngnine\bin\Release\Themes\*.xaml dist\metro\FooEditEngine\Themes

endlocal
