nanoframework / Home

:house: The landing page for .NET nanoFramework repositories.
https://www.nanoframework.net
MIT License
862 stars 78 forks source link

Tinyfnt resource file are always added as String #1547

Open Feiko opened 1 week ago

Feiko commented 1 week ago

Tool

Visual Studio extension

Description

If you add a tinyfnt file to the nf resource manager it will be added as a string and not a Font.

How to reproduce

  1. Download small.tinyfnt
  2. Create a new nFSolution
  3. Add a new "Resource File (.NET nanoFramework)"
  4. Add a new resource
  5. Select Type "File" and select the small.tinyfnt
  6. Click save or "run custom tool"
  7. The generated Recource.Desinger.cs output will only show "internal static string GetString(Resource.StringResources id)" And is missing the expected "internal static string GetFont(......)"

Expected behaviour

The generated Recource.Desinger.cs output will only show "internal static string GetString(Resource.StringResources id)" And is missing the expected "internal static string GetFont(......)"

Screenshots

No response

Aditional context

latest clean VS2022 with nanoFramework extension

Feiko commented 6 days ago

Looks like this issue is caused by a bug in Visual Studio. Please check following bug report

josesimoes commented 2 days ago

Waiting for fix upstream. Reportedly will be released in VS v17.12