GetManifestResourceStream returns NULL

前端 未结 13 2677
走了就别回头了
走了就别回头了 2020-11-28 05:41

This is a C# .NET 4.0 application:

I\'m embedding a text file as a resource and then trying to display it in a dialog box:

    var assembly = Assembl         


        
13条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 05:54

    You probably need to specify the path to your txt file in the GetManifestResourceStream parameter, or you could try sticking the txt file in the same directory as your executable. Hope that helps!

提交回复
热议问题