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

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

endlocal
