This repository holds several tools for enhancing .NET and C# development:
-
The Loyc .NET Core libraries, a set of libraries whose theme is "stuff that should be built into the .NET framework, but isn't." These libraries have their own repository and home page, and the Loyc .NET Core repository is the
Core/folder in this repository. -
Enhanced C# (or EC#) is a liberalization and regularization of the C# language. You can think of EC# as a C# preprocessor, since only the "front end" part of the project is done. The preprocessor consists of three mostly-independent parts,
- The Enhanced C# parser
- LeMP, the Lexical Macro Processor
- LeMP Standard Macros
-
LLLPG, the Loyc LL(k) Parser Generator, which is used to generate code from the grammars of Enhanced C#, LES, and LLLPG itself.
These projects are the first products of the Loyc (Language of Your Choice) initiative.
If you just want the core libraries, you can find them in NuGet. Otherwise, see
- How to set up LeMP or LLLPG in Visual Studio
- How to set up LeMP or LLLPG on other platforms
- Download page
Open Loyc.netfx.sln in Visual Studio (or Loyc.netstd.sln for the .NET Standard edition), set the build configuration to Debug.NET45, and build it!
If Visual Studio complains about OxyPlot, the easiest fix is to unload the LoycCore.Benchmarks project (nothing depends on it). To fix it properly, open Core\Loyc.netstd.sln, right-click the solution, choose "Restore NuGet packages", build the solution (just to make sure it worked), and then return to the original solution.
LeMP and LLLPG are self-hosting: they rely on themselves to help build themselves. Therefore, a binary copy of LeMP and LLLPG is kept in the Lib\LeMP subdirectory. However, to avoid bloating the git history, it is rarely updated. Consider checking here for a newer release. As of late 2016, releases still contain the .NET 4 Release build rather than .NET 4.5, because the Visual Studio syntax highlighters are still built with VS 2010 (and compatible with VS 2010, VS 2012, VS 2013 and VS 2015). As soon as someone asks me to switch the main release .NET 4.5, I will.
Of course, you can also just build Loyc.sln to get a .NET 4.5 or even .NET 3.5 build. Compatibility with .NET 3.5 is aided by the Theraot compatibility library.
This is not necessary for pull requests: qwertie will take care of versioning.
- Rebuild all (Release configuration in Loyc.all.sln) and run tests (Tests.exe)
- Update version in Core/AssemblyVersion.cs
- Update appveyor.yml at
version:(first line) - Update appveyor.yml at
- set SEMVER=(semantic version combines w.x.y into wx.y, e.g. 2.7.1 => 27.1, because semantic versioning demands a new major version number for each breaking change, while the internal version number increments the minor version for a minor breaking change.) - If a GitHub release is to be created, uninstall the LeMP VS extension and rebuild it with UpdateLibLeMPAndReinstall.bat. Manually check that it still works.
- Commit changes
- Create an (unannotated) git tag like
v2.7.1locally:git tag v2.7.1. - (optional if releasing on GitHub) Push changes. Push the tag to make Appveyor publish NuGet packages:
git push origin v2.7.1. - Every so often, create a release on GitHub.com. Prepare a zip file from the built binaries and include Lib\LeMP\LeMP_VisualStudio.vsix separately as part of the release.
- Update documentation by running doc/Doxygen.bat in the gh-pages branch.