Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

C# compiling on Windows without Visual Studio

 For the both JobScheduler versions (x86 and x64) both .NET Framework x86 and .NET Framework x64 (see WINDOWS_NET_SDK_HOME below) can be used for compilation.

Code Block
languagebash
titlecsharp_compilation.cmd
@echo off
rem --- Compiler Folder Location: x86 Windows ---
rem set WINDOWS_NET_SDK_HOME=C:\Windows\Microsoft.NET\Framework\v4.0.30319
rem --- Compiler Folder Location: x64 Windows ---
set WINDOWS_NET_SDK_HOME=C:\Windows\Microsoft.NET\Framework64\v4.0.30319

rem --- Compilation Dependencies: directory with the JobScheduler .NET API dlls (com.sos-berlin.engine.engine-job-api-dotnet.dll, jni4net.n-0.8.8.0.dll)
set REFERENCE_DIRECTORY=C:\Temp\samples\dependencies

rem --- Compilation Folder Location: directory with the .NET sources to compile
set SOURCE_DIRECTORY=C:\Temp\samples\sources

rem --- Compilation Output file
set OUTPUT_DLL=C:\Temp\samples\out\MySample.dll

%WINDOWS_NET_SDK_HOME%\csc.exe /nologo /t:library /out:"%OUTPUT_DLL%" /recurse:"%SOURCE_DIRECTORY%\*.*" /reference:"%REFERENCE_DIRECTORY%\com.sos-berlin.engine.engine-job-api-dotnet.dll";"%REFERENCE_DIRECTORY%\jni4net.n-0.8.8.0.dll"
echo %OUTPUT_DLL%

...