dimanche 15 mars 2020

Why does GetManifestResourceStream returns null (with dotnet core)

Using dotnet core: .NET Core SDK Version: 3.1.102

Why is the following returning null
?

typeof(MyClassName).GetTypeInfo().Assembly.GetManifestResourceStream("MyFile.cs")

I verified the file exists in solution and has in properties 'Embedded Resource'





Aucun commentaire:

Enregistrer un commentaire