I uploaded a xsl file to a c# project - how to reference ended up being easy:
project.Properties.Resources.fileNameNoSuffix
This also worked:
public static string GetStringFromResources(string resourceName)
{
ResourceManager rm = new ResourceManager("project.Properties.Resources",
Assembly.GetExecutingAssembly());
return rm.GetString(resourceName);
This didnt
public static Stream GetStreamFromResources(string resourceName)
{
return Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName);
and Assembly.GetExecutingAssembly().GetManifestResourceNames ()
did not show the included file
No comments:
Post a Comment