Description
Details about Problem
nanoFramework area: Visual Studio extension
VS version: N/A
VS extension version: <= 1.0.3.87
Target: N/A
Firmware image version: <= 1.0.4.390
Device capabilities output: N/A
Detailed repro steps so we can see the same problem
-
Add a .TinyFnt embedded resource
-
Observe that ProcessResourceFiles.Entry.typeDescriptions defines the datatype to Microsoft.SPOT.Font when it creates the *.Designer.cs file for the resource file.
If this would define the return type as byte[], then it would allow the consumer to embed TinyFont resources and handle the data rather than force inclusion of Microsoft.SPOT.Font and dependencies.
Other suggested things
I also recommend adding a nanoFramework Embedded Resource.resx template that automatically sets the "Custom Tool" to nFResXFileCodeGenerator. It took a few minutes to figure out why VS wouldn't create a valid *.Designer.cs file.
Matching changes are also required in nf-interpreter\src\CLR\CorLib\corlib_native_System_Resources_ResourceManager.cpp to return the byte[] instead of treating it as a Font (which is to _ASSERTE(false); and crash the uC).