Visual studio not copying content files from indirectly referenced project

前端 未结 5 666
滥情空心
滥情空心 2020-12-09 01:57

I have the following project structure:

Library1 <--[project reference]-- Library2 <--[ref]-- Executable
--------                          --------             


        
5条回答
  •  爱一瞬间的悲伤
    2020-12-09 02:33

    Another option would be to embed ContentFile as a resource inside the Library1 assembly and extract it using Assembly.GetManifestResource().

    See these links for more info:

    http://www.attilan.com/2006/08/accessing-embedded-resources-using.html

    http://blogs.msdn.com/b/alexdan/archive/2007/12/19/loading-embedded-resources-in-c-using-getmanifestresourcestream.aspx

提交回复
热议问题