E-invoice library for .NET and C# developers
Add e-invoicing to your own system without studying hundreds of pages of specifications. Plain C# objects in, valid XML out.
In short: To create and validate e-invoices in C#, you need UBL 2.1 or CII serialisation and validation against EN 16931 and the Peppol BIS Billing 3.0 rules. Those rules are published as Schematron, which needs XSLT 2.0, and .NET does not include an XSLT 2.0 processor. UtilStudio is therefore developing a .NET library (NuGet) that creates, reads and validates e-invoices with no external service. The library is still in development.
This product is not on sale or available for download yet. We are checking whether businesses need it, and its scope may still change.
Key facts
| Platform | Modern .NET and .NET Framework (NuGet package) |
|---|---|
| Formats | UBL 2.1, CII; EN 16931, Peppol BIS Billing 3.0 |
| Processing | In-process, no calls to external services |
| Status | In development, not on sale or available for download yet |
| Developer | UtilStudio, s.r.o., Slovakia (EU), company ID 46620613 |
| Updated | 5 November 2026 |
Why now
EU countries are moving to mandatory structured B2B e-invoicing based on EN 16931. Slovakia, for example, is due to require it from 1 January 2027. Internal and vertical business systems will need to export and import these invoices. Always check the current rules with the relevant national authority.
What it should do
- Create and read invoices and credit notes in UBL 2.1 and CII
- Validate EN 16931 and Peppol BIS Billing 3.0 rules
- Give clear error messages written for developers
- Ship as a NuGet package for modern .NET and .NET Framework
- Run with no data sent to a third-party server
Who it is for
- Authors of vertical and in-house business systems
- Integrators and custom software vendors
- Companies maintaining older C# applications
How to do it today
- Generate C# classes from the official XSD schemas (xsd.exe or XmlSchemaClassGenerator). This gives you serialisation, but no business-rule validation.
- The open-source ZUGFeRD-csharp library covers ZUGFeRD, Factur-X and XRechnung (CII syntax).
- The EN 16931 and Peppol BIS rules are published as Schematron. Running them needs an XSLT 2.0 processor (such as Saxon) or the Java-based KoSIT validator.
- Sending through Peppol is done by a certified access point through its API.
Frequently asked questions
Does the library send invoices over Peppol?
No. It creates and validates files. For delivery you need an access point or service provider, which you can connect through its API.
Does it replace a certified provider?
No. It helps get the invoice content right. Delivery and reporting duties depend on the rules that apply to you.
Will there be a trial?
We plan a trial through NuGet, so you can test the library on your own data before buying.
How do I create a UBL e-invoice in C#?
Build the invoice according to the EN 16931 semantic model and the Peppol BIS Billing 3.0 rules, serialise it to UBL 2.1 XML, then validate it with the XSD schema and the Schematron rules. Validation is the hard part, because .NET has no XSLT 2.0 support.
Which e-invoice formats does EN 16931 allow?
EN 16931 defines the content of an invoice and allows two syntaxes: UBL 2.1 and UN/CEFACT CII. Peppol BIS Billing 3.0 uses UBL; ZUGFeRD, Factur-X and XRechnung can use CII.