A free trial is available. Download and install DuoCode and your 30-day trial will begin automatically.
When the trial period is over, you can purchase a license to continue working.
If you're working on an open-source project you can apply for a free license!
Subscribe for news and version updates
After installing the DuoCode extension, go to File - New Project, and under the Visual C# node you will see a brand new DuoCode category.
After creating a new project from template, you can press F5 to start debugging your application.
The DuoCode compiler is distributed as a NuGet package, and is added to the project automatically when creating a project from the template.
Alternatively, you can add the DuoCode compiler to an existing project by running Install-Package DuoCode -pre from the NuGet Package Manager Console.
Note: There are several limitations to using this approach, they are mentioned below in the Under the hood section.
Under the hood
When compiling the project, the DuoCode compiler (called dcc.exe) is executed by an MSBuild task. This is done by referencing DuoCode.targets from the .csproj file.
The reference is added automatically when creating a project from a DuoCode template, or by installing the DuoCode Compiler directly via NuGet.
DuoCode performs several steps:
Skips unsupported references: all references which cannot be compiled by DuoCode are automatically removed from the project during compilation.
Provides own mscorlib: the core DuoCode functions and libraries are located in the file mscorlib.js, which is placed next to the converted assembly.
Visual Studio 2013 with Update 4, Visual Studio 2015 and 2017 support debugging using source-maps with Internet Explorer or Microsoft Edge directly from the IDE.
Because DuoCode removes unsuppored references, it's generally recommended starting with one of the DuoCode project templates, rather than adding the DuoCode NuGet package to an existing project.