Bridge.NET is an open source C#-to-JavaScript Compiler. Write your application in C# and run on billions of devices. Compile your C#...
into JavaScript
Run the sample above at Deck.NET. TL;DR
Getting StartedA great place to start if you're new to Bridge is reviewing the Getting Started wiki. The easiest place to see Bridge in action is Deck.NET. SampleThe following code sample demonstrates a simple App.cs class that will run automatically on page load and write a message to the Bridge Console. Example (Deck)
The C# class above will be compiled into JavaScript and added to /Bridge/ouput/demo.js within your project. By default, Bridge will use the Namespace name as the file name. In this case: demo.js. There are many options to control the output of your JavaScript files, and the Attribute Reference is important documentation to review.
InstallationA full list of installation options available at bridge.net/download/, including full support for Visual Studio and Visual Studio Community on Windows, and Visual Studio Mac. Bridge for Visual StudioIf you're using Visual Studio for Windows, the easiest way to get started is by adding the Bridge.NET for Visual Studio extension. From within Visual Studio, go to the From the options on the left side, be sure to select Online, then search for Bridge. Clicking Download will install Bridge for Visual Studio. After installation is complete, Visual Studio may require a restart. Once installation is complete you will have a new Bridge.NET project type. When creating new Bridge enabled projects, select this project type. NuGetAnother option is installation of Bridge into a new C# Class Library project using NuGet. Within the NuGet Package Manager, search for Bridge and click to install. Bridge can also be installed using the NuGet Command Line tool by running the following command:
More information regarding Nuget package installation for Bridge is available in the Documentation. ContributingInterested in contributing to Bridge? Please see CONTRIBUTING.md. We also flag some Issues as up-for-grabs. These are generally easy introductions to the inner workings of Bridge, and are items we just haven't had time to implement. Your help is always appreciated. How to HelpWe need your help spreading the word about Bridge. Any of the following items will help:
TestingBridge is continually tested with the full test runner available at http://testing.bridge.net/. CreditsBridge is developed by the team at Object.NET. Frameworks and Tools for .NET Developers. LicenseApache License, Version 2.0 Please see LICENSE for details. |