Embedded resource in .Net Core libraries

前端 未结 5 610
醉梦人生
醉梦人生 2020-12-24 10:05

I just have started looking into .Net Core, and I don\'t see classical resources and anything what looks like resources. In classical .Net class libraries I was able to add,

5条回答
  •  伪装坚强ぢ
    2020-12-24 11:00

    I have not confirmed this in documentation, but for me, it would appear the auto-generated Resource code that retrieves embedded files found in Resource.Designer.cs is now functioning again in .NET Core 3.1. I can now retrieve an embedded jpg simply by calling the Properties.Resources.MyImageName which returns a Bitmap object.

提交回复
热议问题