In .NET Framework I was able to add images to the project ressources and get them via Properties.Resources.resource_name
. I've tried the same thing with a .NET 6 Forms app. Intellicode suggests me my ressource
var tmp = Properties.Resources.icon_refresh;
However when ever I hit this line of code I get the following error message:
System.Resources.MissingManifestResourceException: "Could not find the resource "Properties.Resources.resources" among the resources
Am I missing something important for the .NET 6 app?