开发者

Confused about resources in a .NET project

I am trying to remove a 开发者_如何学编程massive amount of cruft from a .NET 3.5, VS2008 project and I am somewhat confused as to what gets compiled into an EXE and what isn't.

So for instance, if I double click on my Resources.Resx file, i get the following:

Confused about resources in a .NET project

As you can see it states that this bitmap is "Linked at compile time". However, when I go to the path of the file in the Solution Explorer, it says that the Build Action is set to None - thus, from what I understand, the bitmap won't be linked into the EXE.

Confused about resources in a .NET project

But at the same time, there is an entry in the Resources.resx. Anyway, I am confused. Would appreciate some clarity on the topic.


Even though you can see the files in your solution (because they have to exist somewhere first), when you compile your code, resource files are automatically embedded into the assembly manifest. Thus, they are part of the .dll or .exe

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜