CSSpecialValues.gms : Test handling of Special Values in object oriented C# API

Description

Contributor: Lutz Westermann, January 2015


Small Model of Type : .Net


Category : GAMS API library


Main file : CSSpecialValues.gms

$title 'Test handling of Special Values in object oriented C# API' (CSSPECIALVALUES,SEQ=47)

$onText
Contributor: Lutz Westermann, January 2015
$offText


$set srcRoot %gams.sysdir%apifiles%system.dirsep%CSharp%system.dirsep%

$escape &
$if %system.filesys% == UNIX
$if %sysenv.MPATH% == %&sysenv.MPATH%& $abort.noError Need Mono to run this on Unix

$                             set BUILD MSBuild.exe
$if %system.filesys% == UNIX $set BUILD $MPATH/xbuild
$                             set EXEC  =
$if %system.filesys% == UNIX $set EXEC '$MPATH/mono '

$                             set x64
$if %system.platform% == WEX $set x64 x64%system.dirsep%

$if %system.platform% == WEX
$if not set flags $set flags  -t:rebuild -p:Configuration=Release -p:Platform="x64"
$if %system.platform% == LEX
$if not set flags $set flags  /t:rebuild /p:Configuration=Release
$if %system.platform% == DEX
$if not set flags $set flags  /t:rebuild /p:Configuration=Release /p:DefineConstants="__APPLE__"
$if %system.platform% == DAX
$if not set flags $set flags  /t:rebuild /p:Configuration=Release /p:DefineConstants="__APPLE__"


$call %BUILD% %flags% "%srcRoot%SpecialValues%system.dirsep%SpecialValues.csproj"
$if errorlevel 1 $abort 'Problem compiling SpecialValues'
$call %EXEC%"%srcRoot%SpecialValues%system.dirsep%bin%system.dirsep%%x64%Release%system.dirsep%SpecialValues.exe" "%gams.sysdir%."
$if errorlevel 1 $abort 'Problem executing SpecialValues'