-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix NuGet pack #7
Fix NuGet pack #7
Comments
Note: If you comment out the Icon.png line 12 of the Windows.Toolkit.Common.props, then you can pack locally. |
Just stumbled across this when going through repo...
That should fix the issue. Ping me if any build code that was updated by me causing any problems. You can check |
Thanks for the tips @Nirmal4G. I remember we were trying to use @niels9001 where else were we talking about the icon? I see we have #77 as well, but I don't see our prior chat there. Let's get the new icon setup next week during a 1:1 and then we can get a PR opened to close this and that issue together. |
For reference, NuGet icon for Labs can be found here: https://github.com/CommunityToolkit/design-assets/blob/main/Logos/Windows-Labs/Windows-Labs.nuget-256.png |
Huh, I updated the Same in VS: Looks like it's missing even though it's clearly defined here: https://github.com/CommunityToolkit/Windows/blob/710c30ff564fe596b03db7ab247d267c7fd8a171/Windows.Toolkit.Common.props#L12 I'm not sure why this didn't work... |
@michael-hawker I don't see an |
Thanks for pointing that out @Nirmal4G, I'll have to look. We'll also have to be aware of this issue as well: NuGet/Home#9250 - but I'd imagine the Package Explorer app wouldn't have that same issue. |
Going to try updating the NuGet pack lib we were using 5.2.0, but there's a 6.7.0 available - iconUrl is working fine... just not |
Confirmed this is fixed by CommunityToolkit/Windows#174 now! 🎉🎉🎉 According to this doc still it's recommended to specify both so that older clients can get the icon from the url. So, I'll leave that in. Was definitely due to us using version 5.2.0... 🤦♂️ Filed an issue as that is the version called out in the docs as well: https://github.com/NuGet/docs.microsoft.com-nuget/issues/3124 |
Describe the bug
Related to #77
If you right-click on a library and try and
Pack
to build a NuGet package you get an error aboutIcon.png
missing.In face these resources for the icon don't exist in the repro:
https://github.com/CommunityToolkit/Labs-Windows/blob/c322845be3b1692fae6665480e9ed18ce6e4787a/Windows.Toolkit.Common.props#L12-L13
https://github.com/CommunityToolkit/Labs-Windows/blob/ed6bd23523770f34ebf6b41304dd257374fe1f04/Directory.Build.targets#L14-L19
We should be able to pack locally as well as have the proper files and icons included in the NuGet package.
@niels9001 do you know which icon asset should we use?
Steps to reproduce
Expected behavior
Able to pack NuGet package
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
I guess this is ignored on the commandline?
Help us help you
Yes, but only if others can assist.
The text was updated successfully, but these errors were encountered: