Redth / ResizetizerNT

Add SVG's and PNG's to your shared Xamarin Project
MIT License
318 stars 31 forks source link

Nuget installation does not include the "SharedImage" Build Action #11

Closed wagesj45 closed 4 years ago

wagesj45 commented 4 years ago

When installing the Nuget package, both Stable 0.1.0 and Preview 0.1.0-8, the SharedImage build action is not included in the base Xamarin Forms project. It is included on the *.Android, *.iOS, and *.UWP projects.

image

image

Redth commented 4 years ago

Did you restart Visual Studio after you installed the NuGet package?

wagesj45 commented 4 years ago

Yes. Restarted Visual Studio, updated to latest version and started again, restarted Windows, restarted everything. It did not show up or include the build action when I tried installing again.

Redth commented 4 years ago

Very odd. I can't really do much more about that, I've already defined the AvailableItemName for it, the IDE needs to do the rest.

You can of course still manually edit your .csproj and add your items:

<ItemGroup>
  <SharedImage Include="Icons\cog.svg" BaseSize="100,100" />
</ItemGroup>