To read an embedded text file in a .NET Standard 2.0 project use the following code snippet.
1 | string file; |
To aid in debugging assembly.GetManifestResourceNames()
will return the names of all the embedded resources in an assembly.
To read an embedded text file in a .NET Standard 2.0 project use the following code snippet.
1 | string file; |
To aid in debugging assembly.GetManifestResourceNames()
will return the names of all the embedded resources in an assembly.