GithubHelp home page GithubHelp logo

vb6hobbyst7 / xsharpdev Goto Github PK

View Code? Open in Web Editor NEW

This project forked from x-sharp/xsharpdev

0.0 2.0 0.0 122.19 MB

XSharp Repository for the Compiler source code. The source code for the runtime, tools and vs integration can be found at https://github.com/X-Sharp/XSharpPublic

License: Apache License 2.0

Shell 0.09% Batchfile 0.01% C# 66.76% C++ 0.01% F# 0.01% PowerShell 0.22% XSLT 0.01% xBase 0.41% ANTLR 0.04% SystemVerilog 0.29% 1C Enterprise 0.11% Smalltalk 0.01% C 0.01% JavaScript 0.01% Dockerfile 0.01% Visual Basic .NET 32.05% CMake 0.01%

xsharpdev's Introduction

XSharpDev

XSharp Compiler repository

This repository contains the source code to the X# compiler Apart from the compiler this repository also has the source to:

  • Documentation

The source code for the Runtime, VsIntegration and tools is on https://github.com/X-Sharp/XSharpPublic/

The Roslyn folder contains (modified) source from Roslyn The XSharp folder contains our own source for the compiler, documentation and other components

We have tried to minimize the changes to the Roslyn code. All code changes are marked with #if XSHARP

For the build process of the compiler we create our own "specialized" version of the CSharp Compiler. The source for this compiler and codeanalysis.dll is in the Tools folder. This compiler will translate some of the Roslyn Namespaces from CSharp into XSharp to prevent name conflicts when assemblies of both origin are in memory at the same time

After retrieving this source code, you need to perform the following steps to be able to compile your XSharp Compiler:

  • Make sure you have VS 2019 or 2017 installed. The preferred edition is Enterprise.

  • Make sure you have Java JDK on your machine and that you have the Java binaries folder in your Path. Java can be downloaded from https://jdk.java.net/.

  • Goto the root of the repository

  • If you do not have Vs 2019 Enterprise you can set 2 environment variables to the VS version and edition you have installed SET VSVERSION=2019 (2017 also works) SET VSEDITION=Enterprise (or whichever edition you have installed i.e. Professional, Community, BuildTools)

  • Run the cmd file ContinuousIntegrationBuild.cmd This will:

    • download a .Net Core version in the Roslyn\Binaries folder
    • restore missing nuget packages
    • switch to the XSharp Folder
    • Restore the nuget packages for the X# projects
    • Build all configurations for the X# projects.
    • The output will be in the Binaries folder
    • The log file of the build process will be written into build-debug.log, build-public.log and/or build-release.log
  • Later you can build a specific version of the X# compiler by running the build.cmd file in the XSharp folder. You will have
    to pass it an argument. Valid arguments are Debug, Release, Public or All.

The source code is available under the Apache 2 license that you can find in the root of this repository: https://github.com/X-Sharp/XSharpDev/blob/master/license.txt.

Of course we welcome all additions, bug fixes etc.

Additional notes:

  • to open the projects in Visual Studio, you MUST have the correct .Net Core version loaded on your machine The version number for this SDK is specified in the global.json files inside the Roslyn and XSharp folders. At this moment this version is 2.1.500 This version number matches the version number in Roslyn\build\Targets\Tools.props and Roslyn\build\Targets\Tools.props.
  • The CI build process for Roslyn does not use this setting. This process uses the version defined in Roslyn\build\Targets\Tools.props and downloads a copy of .Net core into the Roslyn\Binaries\Tools\dotnet folder. The dotnet.exe file in this folder is used for the CI build.
  • The Build scripts in the XSharp subfolder add the Roslyn\Binaries\Tools\dotnet folder to the path and then call dotnet to restore the files. This will make sure that the SDK of the right version is found. If this somehow fails, then you can set an environment variable SET COREHOST_TRACE=1. This will show where dotnet.exe is looking for the sdk.

To open the current projects in Visual Studio you need to install .Net 5.0.102 (this is also the version in global.json in the XSharp and Roslyn folders)

Results of automated builds: ContinuousBuild

xsharpdev's People

Contributors

fforay avatar fxxm avatar nvkokkalis avatar robertvanderhulst avatar rolfvdhulst avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.