You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Work was started to on adding support for generics.
Considering that this is a work intensive effort, we are currently seeking financial sponsors to resume the work on this.
If you're a commercial user in need for this feature please reach out to to the Core Team. Keep in mind that all this it's a combined and community effort. Several small contributions can add up and bring in a huge impact!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The same applies. .NET nanoFramework mscorlib (along with the other libs that "mirror" .NET) are aligned with the full framework as much as possible. The exceptions are, obviously, the lack of generics and all that goes in tow like async/await, etc.
When generics become available the "alignment" will be worked on.
Any estimate on funding required? What about a Gofundme? Get some heavy hitters in the .NET world to help spread the word (I could hit up one). I think a lot of C# fans would throw in some $ as they like the idea of improvement in this area even if they are not embedded developers or hobbyists.
@Ellerbach said "still a long road to go" but 5 of 6 tasks are complete. Is that final task super challenging?
Hi @t9mike,
It’s hard to estimate how much funding is required but we are speaking in units of 10K€, most likely 40K€+. Even if you see checked boxes, there is still quite some things to do. A checkbox in this context means: the minimum to see if it’s working is done. It doesn’t mean, it’s production code quality ready with all the tests. As soon as you introduce something that is a large change like this one, there will be, some small issues which will have to be investigated, some may be edge cases because some elements may be missing in the platform and will have to be added. It took years to have something stable on generics on the .NET Framework! OK, the compiler is now perfect for that but it has to be fitting into the small device.
The debugger part is extremely complex. It takes hours to setup (2 Visual Studio sessions plus 1 VS Code plus hardware debugging), you need then to understand step by step what’s happening, it’s a lot of work.
I love the idea of having a fund raising, I would love as well to see professional users funding this seriously as well. I’m sure that all together, something can be achieved. And it has as well to be fair and enough to make the changes and support afterward properly. Up to the point it can become a community effort.
Support for generics now? I want use nanoCLR for game develop C# script
I would think it is easier and cheaper to develop your game in Raspberry Pi and full dotnet framework is available. Maybe look at Meadows where full framework C# is supported.
On Wed, 10 Aug. 2022, 6:51 pm alberk8, ***@***.***> wrote:
Support for generics now? I want use nanoCLR for game develop C# script
I would think it is easier and cheaper to develop your game in Raspberry
Pi and full dotnet framework is available. Maybe look at Meadows
<https://www.wildernesslabs.co/> where full framework C# is supported.
—
Reply to this email directly, view it on GitHub
<#782 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCSC7OVRK7PFUFJFOSAI23VYNUQ3ANCNFSM47FOLUUQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
I sincerely hope to support generics. Currently, many MCUs have a clock frequency greater than 200MHz and a storage capacity of 16MB, RAM8MB
I hope to configure generics as optional, so that high-capacity microcontrollers can use this benefit
Reacted by Rick Bartlett, Cory Charlton, Daniel, Felix Weiß, Hrishikesh46779, Don Yonce, Michał Gajek and axtox
After years of waiting, planning, and deep engine work — the moment is here: generics are officially supported in .NET nanoFramework, and the public preview is live! 🥳
This is a huge milestone for the platform — one of the most requested features since the beginning — and it fundamentally expands the kind of C# code you can write and reuse on constrained devices. We’ve aligned with the CLI/ECMA spec, extended our metadata model, updated the type system, upgraded the toolchain, and reimagined parts of the runtime to make this real.
Read the full blog post.
Doc with instructions here.
Reacted by acrigney and p3p3pp3
Reacted by Mike Muegel, Mikael Mogren, p3p3pp3 and Daniel Meza
Reacted by Sour, Daniel, Hans Bakker, p3p3pp3 and Daniel Meza
Activity
[-]Support for generics T<>[/-][+]Support for generics `Generic<T>`[/+][-]Support for generics `Generic<T>`[/-][+]Support for generics <T>[/+]stale commentedon Aug 22, 2021
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
11 remaining items
josesimoes commentedon Feb 7, 2022
The same applies. .NET nanoFramework mscorlib (along with the other libs that "mirror" .NET) are aligned with the full framework as much as possible. The exceptions are, obviously, the lack of generics and all that goes in tow like async/await, etc.
When generics become available the "alignment" will be worked on.
t9mike commentedon Feb 8, 2022
Any estimate on funding required? What about a Gofundme? Get some heavy hitters in the .NET world to help spread the word (I could hit up one). I think a lot of C# fans would throw in some $ as they like the idea of improvement in this area even if they are not embedded developers or hobbyists.
@Ellerbach said "still a long road to go" but 5 of 6 tasks are complete. Is that final task super challenging?
Ellerbach commentedon Feb 9, 2022
Hi @t9mike,
It’s hard to estimate how much funding is required but we are speaking in units of 10K€, most likely 40K€+. Even if you see checked boxes, there is still quite some things to do. A checkbox in this context means: the minimum to see if it’s working is done. It doesn’t mean, it’s production code quality ready with all the tests. As soon as you introduce something that is a large change like this one, there will be, some small issues which will have to be investigated, some may be edge cases because some elements may be missing in the platform and will have to be added. It took years to have something stable on generics on the .NET Framework! OK, the compiler is now perfect for that but it has to be fitting into the small device.
The debugger part is extremely complex. It takes hours to setup (2 Visual Studio sessions plus 1 VS Code plus hardware debugging), you need then to understand step by step what’s happening, it’s a lot of work.
I love the idea of having a fund raising, I would love as well to see professional users funding this seriously as well. I’m sure that all together, something can be achieved. And it has as well to be fair and enough to make the changes and support afterward properly. Up to the point it can become a community effort.
lvzuoxin commentedon Aug 10, 2022
Support for generics now?
I want use nanoCLR for game develop C# script
alberk8 commentedon Aug 10, 2022
I would think it is easier and cheaper to develop your game in Raspberry Pi and full dotnet framework is available. Maybe look at Meadows where full framework C# is supported.
josesimoes commentedon Aug 10, 2022
Development of this it's on hold. Progress will be reported here. 🙂
acrigney commentedon Aug 10, 2022
DocBrown101 commentedon Aug 10, 2022
@acrigney But Meadow only works with a single board, which isn't cheap either.
28106830 commentedon Jan 8, 2025
I sincerely hope to support generics. Currently, many MCUs have a clock frequency greater than 200MHz and a storage capacity of 16MB, RAM8MB
I hope to configure generics as optional, so that high-capacity microcontrollers can use this benefit
josesimoes commentedon Dec 15, 2025
After years of waiting, planning, and deep engine work — the moment is here: generics are officially supported in .NET nanoFramework, and the public preview is live! 🥳
This is a huge milestone for the platform — one of the most requested features since the beginning — and it fundamentally expands the kind of C# code you can write and reuse on constrained devices. We’ve aligned with the CLI/ECMA spec, extended our metadata model, updated the type system, upgraded the toolchain, and reimagined parts of the runtime to make this real.
Read the full blog post.
Doc with instructions here.
Sour-Codes commentedon Dec 15, 2025
I almost spun off on the highway seeing the email notification of this.
I'm immediately checking this out when I get a moment to sit down.
Seriously, the best Christmas gift having generic support. I can get rid of my
workaround from all of my libraries.
Thanks for the support.
mikeobrien commentedon Dec 15, 2025
This is HUGE! Big thanks to everyone involved!