0

I have a nuget package which contains some logos which should be accessible.
The logos are located in the Resources Folder:
[![enter image description here][1]][1]

The logos are set up as embedded resource. I can access them with the following pack url when I add the project reference:

<Image Source="pack://application:,,,/Dexie.Space.Net;component/Resources/dexie_medium.png"></Image>

this does not work when I add the nuget package instead. I have done some research and edited the project file as such withiout success:

 </EmbeddedResource>
        <EmbeddedResource Include="Resources\dexie_black_medium.png">
            <Pack>True</Pack>
            <PackagePath>Resources/dexie_black_medium.png</PackagePath>
        </EmbeddedResource>
    <EmbeddedResource Include="Resources\dexie_medium.png">
            <Pack>True</Pack>
            <PackagePath>Resources/dexie_medium.png</PackagePath>
        </EmbeddedResource>
    <EmbeddedResource Include="Resources\dexie_white_medium.png">
            <Pack>True</Pack>
            <PackagePath>Resources/dexie_white_medium.png</PackagePath>
        </EmbeddedResource>
    <EmbeddedResource Include="Resources\duck_black_medium.png">
            <Pack>True</Pack>
            <PackagePath>Resources/duck_black_medium.png</PackagePath>
        </EmbeddedResource>
    <EmbeddedResource Include="Resources\duck_medium.png">
            <Pack>True</Pack>
            <PackagePath>Resources/duck_medium.png</PackagePath>
        </EmbeddedResource>
    <EmbeddedResource Include="Resources\duck_white_medium.png">
            <Pack>True</Pack>
            <PackagePath>Resources/duck_white_medium.png</PackagePath>
        </EmbeddedResource>

so either the package path or my pack url seems incorrect to me. [1]: https://i.stack.imgur.com/kaQ0d.png

julian bechtold
  • 1,875
  • 2
  • 19
  • 49

0 Answers0