{"id":25440202,"url":"https://github.com/raynersec/csharp-compiler-win-linux","last_synced_at":"2025-05-15T13:34:17.264Z","repository":{"id":133434602,"uuid":"313621841","full_name":"RaynerSec/CSharp-Compiler-Win-Linux","owner":"RaynerSec","description":"Compile C# To Windows Executable On Linux","archived":false,"fork":false,"pushed_at":"2020-11-28T09:00:27.000Z","size":65,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T11:35:20.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RaynerSec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-17T13:04:43.000Z","updated_at":"2021-03-06T17:54:09.000Z","dependencies_parsed_at":"2023-03-16T05:15:36.709Z","dependency_job_id":null,"html_url":"https://github.com/RaynerSec/CSharp-Compiler-Win-Linux","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaynerSec%2FCSharp-Compiler-Win-Linux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaynerSec%2FCSharp-Compiler-Win-Linux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaynerSec%2FCSharp-Compiler-Win-Linux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaynerSec%2FCSharp-Compiler-Win-Linux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaynerSec","download_url":"https://codeload.github.com/RaynerSec/CSharp-Compiler-Win-Linux/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254349520,"owners_count":22056366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-17T11:29:54.990Z","updated_at":"2025-05-15T13:34:17.255Z","avatar_url":"https://github.com/RaynerSec.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSharp-Compiler-Win-Linux\nCompile C# To Windows Executable On Linux\n\n## Usage\n### How To Use CSharp-Compiler-Win-Linux 32Bit Version\n1. Install Dependencies In Debian/Ubuntu/Kali/Parrot Sec OS Linux `sudo apt-get update \u0026\u0026 sudo apt-get install mono-complete mono-devel git -y`\n2. Git Clone Repo `git clone https://github.com/RaynerSec/CSharp-Compiler-Win-Linux`\n3. Change Directory `cd CSharp-Compiler-Win-Linux`\n4. Give execution permission `chmod +x cs-compiler-32bit.sh`\n5. Run script `./cs-compiler-32bit.sh \u003coptions\u003e`\n### How To Use CSharp-Compiler-Win-Linux 64Bit Version\n1. Install Dependencies In Debian/Ubuntu/Kali/Parrot Sec OS Linux `sudo apt-get update \u0026\u0026 sudo apt-get install mono-complete mono-devel git -y`\n2. Git Clone Repo `git clone https://github.com/RaynerSec/CSharp-Compiler-Win-Linux`\n3. Change Directory `cd CSharp-Compiler-Win-Linux`\n4. Give execution permission `chmod +x cs-compiler-64bit.sh`\n5. Run script `./cs-compiler-64bit.sh \u003coptions\u003e`\n### How To Use CSharp-Compiler-Win-Linux Itanium Version\n1. Install Dependencies In Debian/Ubuntu/Kali/Parrot Sec OS Linux `sudo apt-get update \u0026\u0026 sudo apt-get install mono-complete mono-devel git -y`\n2. Git Clone Repo `git clone https://github.com/RaynerSec/CSharp-Compiler-Win-Linux`\n3. Change Directory `cd CSharp-Compiler-Win-Linux`\n4. Give execution permission `chmod +x cs-compiler-itanium.sh`\n5. Run script `./cs-compiler-itanium.sh \u003coptions\u003e`\n### How To Use CSharp-Compiler-Win-Linux Arm Version\n1. Install Dependencies In Debian/Ubuntu/Kali/Parrot Sec OS Linux `sudo apt-get update \u0026\u0026 sudo apt-get install mono-complete mono-devel git -y`\n2. Git Clone Repo `git clone https://github.com/RaynerSec/CSharp-Compiler-Win-Linux`\n3. Change Directory `cd CSharp-Compiler-Win-Linux`\n4. Give execution permission `chmod +x cs-compiler-arm.sh`\n5. Run script `./cs-compiler-arm.sh \u003coptions\u003e`\n### CSharp-Compiler-Win-Linux 32Bit Version Options\n```\nUsage: cs-compiler-32bit.sh [options] source-files\n   --about              About the Mono C# compiler      \n   -addmodule:M1[,Mn]   Adds the module to the generated assembly                                            \n   -checked[+|-]        Sets default aritmetic overflow context\n   -clscheck[+|-]       Disables CLS Compliance verifications                                                \n   -codepage:ID         Sets code page to the one in ID (number, utf8, reset)                                \n   -define:S1[;S2]      Defines one or more conditional symbols (short: -d)                                  \n   -debug[+|-], -g      Generate debugging information                                                       \n   -delaysign[+|-]      Only insert the public key into the assembly (no signing)\n   -doc:FILE            Process documentation comments to XML file\n   -fullpaths           Any issued error or warning uses absolute file path\n   -help                Lists all compiler options (short: -?)\n   -keycontainer:NAME   The key pair container used to sign the output assembly\n   -keyfile:FILE        The key file used to strongname the ouput assembly\n   -langversion:TEXT    Specifies language version: ISO-1, ISO-2, 3, 4, 5, 6, Default or Experimental\n   -lib:PATH1[,PATHn]   Specifies the location of referenced assemblies\n   -main:CLASS          Specifies the class with the Main method (short: -m)\n   -noconfig            Disables implicitly referenced assemblies\n   -nostdlib[+|-]       Does not reference mscorlib.dll library\n   -nowarn:W1[,Wn]      Suppress one or more compiler warnings\n   -optimize[+|-]       Enables advanced compiler optimizations (short: -o)\n   -out:FILE            Specifies output assembly name\n   -pathmap:K=V[,Kn=Vn] Sets a mapping for source path names used in generated output\n   -pkg:P1[,Pn]         References packages P1..Pn\n   -recurse:SPEC        Recursively compiles files according to SPEC pattern\n   -reference:A1[,An]   Imports metadata from the specified assembly (short: -r)\n   -reference:ALIAS=A   Imports metadata using specified extern alias (short: -r)\n   -sdk:VERSION         Specifies SDK version of referenced assemblies\n                        VERSION can be one of: 2, 4, 4.5 (default) or a custom value\n   -target:KIND         Specifies the format of the output assembly (short: -t)\n                        KIND can be one of: exe, winexe, library, module\n   -unsafe[+|-]         Allows to compile code which uses unsafe keyword\n   -warnaserror[+|-]    Treats all warnings as errors\n   -warnaserror[+|-]:W1[,Wn] Treats one or more compiler warnings as errors\n   -warn:0-4            Sets warning level, the default is 4 (short -w:)\n   -helpinternal        Shows internal and advanced compiler options\n\nResources:\n   -linkresource:FILE[,ID] Links FILE as a resource (short: -linkres)\n   -resource:FILE[,ID]     Embed FILE as a resource (short: -res)\n   -win32res:FILE          Specifies Win32 resource file (.res)\n   -win32icon:FILE         Use this icon for the output\n   @file                   Read response file for more options\n\nOptions can be of the form -option or /option\n```\n### CSharp-Compiler-Win-Linux 64Bit Version Options\n```\nUsage: cs-compiler-64bit.sh [options] source-files\n   --about              About the Mono C# compiler      \n   -addmodule:M1[,Mn]   Adds the module to the generated assembly                                            \n   -checked[+|-]        Sets default aritmetic overflow context\n   -clscheck[+|-]       Disables CLS Compliance verifications                                                \n   -codepage:ID         Sets code page to the one in ID (number, utf8, reset)                                \n   -define:S1[;S2]      Defines one or more conditional symbols (short: -d)                                  \n   -debug[+|-], -g      Generate debugging information                                                       \n   -delaysign[+|-]      Only insert the public key into the assembly (no signing)\n   -doc:FILE            Process documentation comments to XML file\n   -fullpaths           Any issued error or warning uses absolute file path\n   -help                Lists all compiler options (short: -?)\n   -keycontainer:NAME   The key pair container used to sign the output assembly\n   -keyfile:FILE        The key file used to strongname the ouput assembly\n   -langversion:TEXT    Specifies language version: ISO-1, ISO-2, 3, 4, 5, 6, Default or Experimental\n   -lib:PATH1[,PATHn]   Specifies the location of referenced assemblies\n   -main:CLASS          Specifies the class with the Main method (short: -m)\n   -noconfig            Disables implicitly referenced assemblies\n   -nostdlib[+|-]       Does not reference mscorlib.dll library\n   -nowarn:W1[,Wn]      Suppress one or more compiler warnings\n   -optimize[+|-]       Enables advanced compiler optimizations (short: -o)\n   -out:FILE            Specifies output assembly name\n   -pathmap:K=V[,Kn=Vn] Sets a mapping for source path names used in generated output\n   -pkg:P1[,Pn]         References packages P1..Pn\n   -recurse:SPEC        Recursively compiles files according to SPEC pattern\n   -reference:A1[,An]   Imports metadata from the specified assembly (short: -r)\n   -reference:ALIAS=A   Imports metadata using specified extern alias (short: -r)\n   -sdk:VERSION         Specifies SDK version of referenced assemblies\n                        VERSION can be one of: 2, 4, 4.5 (default) or a custom value\n   -target:KIND         Specifies the format of the output assembly (short: -t)\n                        KIND can be one of: exe, winexe, library, module\n   -unsafe[+|-]         Allows to compile code which uses unsafe keyword\n   -warnaserror[+|-]    Treats all warnings as errors\n   -warnaserror[+|-]:W1[,Wn] Treats one or more compiler warnings as errors\n   -warn:0-4            Sets warning level, the default is 4 (short -w:)\n   -helpinternal        Shows internal and advanced compiler options\n\nResources:\n   -linkresource:FILE[,ID] Links FILE as a resource (short: -linkres)\n   -resource:FILE[,ID]     Embed FILE as a resource (short: -res)\n   -win32res:FILE          Specifies Win32 resource file (.res)\n   -win32icon:FILE         Use this icon for the output\n   @file                   Read response file for more options\n\nOptions can be of the form -option or /option\n```\n### CSharp-Compiler-Win-Linux Itanium Version Options\n```\nUsage: cs-compiler-itanium.sh [options] source-files\n   --about              About the Mono C# compiler      \n   -addmodule:M1[,Mn]   Adds the module to the generated assembly                                            \n   -checked[+|-]        Sets default aritmetic overflow context\n   -clscheck[+|-]       Disables CLS Compliance verifications                                                \n   -codepage:ID         Sets code page to the one in ID (number, utf8, reset)                                \n   -define:S1[;S2]      Defines one or more conditional symbols (short: -d)                                  \n   -debug[+|-], -g      Generate debugging information                                                       \n   -delaysign[+|-]      Only insert the public key into the assembly (no signing)\n   -doc:FILE            Process documentation comments to XML file\n   -fullpaths           Any issued error or warning uses absolute file path\n   -help                Lists all compiler options (short: -?)\n   -keycontainer:NAME   The key pair container used to sign the output assembly\n   -keyfile:FILE        The key file used to strongname the ouput assembly\n   -langversion:TEXT    Specifies language version: ISO-1, ISO-2, 3, 4, 5, 6, Default or Experimental\n   -lib:PATH1[,PATHn]   Specifies the location of referenced assemblies\n   -main:CLASS          Specifies the class with the Main method (short: -m)\n   -noconfig            Disables implicitly referenced assemblies\n   -nostdlib[+|-]       Does not reference mscorlib.dll library\n   -nowarn:W1[,Wn]      Suppress one or more compiler warnings\n   -optimize[+|-]       Enables advanced compiler optimizations (short: -o)\n   -out:FILE            Specifies output assembly name\n   -pathmap:K=V[,Kn=Vn] Sets a mapping for source path names used in generated output\n   -pkg:P1[,Pn]         References packages P1..Pn\n   -recurse:SPEC        Recursively compiles files according to SPEC pattern\n   -reference:A1[,An]   Imports metadata from the specified assembly (short: -r)\n   -reference:ALIAS=A   Imports metadata using specified extern alias (short: -r)\n   -sdk:VERSION         Specifies SDK version of referenced assemblies\n                        VERSION can be one of: 2, 4, 4.5 (default) or a custom value\n   -target:KIND         Specifies the format of the output assembly (short: -t)\n                        KIND can be one of: exe, winexe, library, module\n   -unsafe[+|-]         Allows to compile code which uses unsafe keyword\n   -warnaserror[+|-]    Treats all warnings as errors\n   -warnaserror[+|-]:W1[,Wn] Treats one or more compiler warnings as errors\n   -warn:0-4            Sets warning level, the default is 4 (short -w:)\n   -helpinternal        Shows internal and advanced compiler options\n\nResources:\n   -linkresource:FILE[,ID] Links FILE as a resource (short: -linkres)\n   -resource:FILE[,ID]     Embed FILE as a resource (short: -res)\n   -win32res:FILE          Specifies Win32 resource file (.res)\n   -win32icon:FILE         Use this icon for the output\n   @file                   Read response file for more options\n\nOptions can be of the form -option or /option\n```\n### CSharp-Compiler-Win-Linux Arm Version Options\n```\nUsage: cs-compiler-arm.sh [options] source-files\n   --about              About the Mono C# compiler      \n   -addmodule:M1[,Mn]   Adds the module to the generated assembly                                            \n   -checked[+|-]        Sets default aritmetic overflow context\n   -clscheck[+|-]       Disables CLS Compliance verifications                                                \n   -codepage:ID         Sets code page to the one in ID (number, utf8, reset)                                \n   -define:S1[;S2]      Defines one or more conditional symbols (short: -d)                                  \n   -debug[+|-], -g      Generate debugging information                                                       \n   -delaysign[+|-]      Only insert the public key into the assembly (no signing)\n   -doc:FILE            Process documentation comments to XML file\n   -fullpaths           Any issued error or warning uses absolute file path\n   -help                Lists all compiler options (short: -?)\n   -keycontainer:NAME   The key pair container used to sign the output assembly\n   -keyfile:FILE        The key file used to strongname the ouput assembly\n   -langversion:TEXT    Specifies language version: ISO-1, ISO-2, 3, 4, 5, 6, Default or Experimental\n   -lib:PATH1[,PATHn]   Specifies the location of referenced assemblies\n   -main:CLASS          Specifies the class with the Main method (short: -m)\n   -noconfig            Disables implicitly referenced assemblies\n   -nostdlib[+|-]       Does not reference mscorlib.dll library\n   -nowarn:W1[,Wn]      Suppress one or more compiler warnings\n   -optimize[+|-]       Enables advanced compiler optimizations (short: -o)\n   -out:FILE            Specifies output assembly name\n   -pathmap:K=V[,Kn=Vn] Sets a mapping for source path names used in generated output\n   -pkg:P1[,Pn]         References packages P1..Pn\n   -recurse:SPEC        Recursively compiles files according to SPEC pattern\n   -reference:A1[,An]   Imports metadata from the specified assembly (short: -r)\n   -reference:ALIAS=A   Imports metadata using specified extern alias (short: -r)\n   -sdk:VERSION         Specifies SDK version of referenced assemblies\n                        VERSION can be one of: 2, 4, 4.5 (default) or a custom value\n   -target:KIND         Specifies the format of the output assembly (short: -t)\n                        KIND can be one of: exe, winexe, library, module\n   -unsafe[+|-]         Allows to compile code which uses unsafe keyword\n   -warnaserror[+|-]    Treats all warnings as errors\n   -warnaserror[+|-]:W1[,Wn] Treats one or more compiler warnings as errors\n   -warn:0-4            Sets warning level, the default is 4 (short -w:)\n   -helpinternal        Shows internal and advanced compiler options\n\nResources:\n   -linkresource:FILE[,ID] Links FILE as a resource (short: -linkres)\n   -resource:FILE[,ID]     Embed FILE as a resource (short: -res)\n   -win32res:FILE          Specifies Win32 resource file (.res)\n   -win32icon:FILE         Use this icon for the output\n   @file                   Read response file for more options\n\nOptions can be of the form -option or /option\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraynersec%2Fcsharp-compiler-win-linux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraynersec%2Fcsharp-compiler-win-linux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraynersec%2Fcsharp-compiler-win-linux/lists"}