Skip to content
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

Switch to Embedded Package Icons #30979

Closed
wtgodbe opened this issue Sep 26, 2019 · 12 comments
Closed

Switch to Embedded Package Icons #30979

wtgodbe opened this issue Sep 26, 2019 · 12 comments

Comments

@wtgodbe
Copy link
Member

wtgodbe commented Sep 26, 2019

Once we move to the 3.0.100 SDK in our rel/3.0 branches, we'll start hitting NU5048. This is about moving from PackageIconUrl (a link in the nuspec to a URL where the package icon image lives), to an embedded image in the package itself. We need to react to this in CoreFx once we update the SDK - see dotnet/blazor#1896 for an example PR.

CC @ericstj @Anipik @safern @ViktorHofer

We should make sure somebody is doing this for CoreClr/Core-Setup/Standard as well

@ViktorHofer
Copy link
Member

I'm surprised that we didn't hit NU5048 yet. We switched to 3.0.100 in master already and have a PR up that update to 3.0.100 in the release/3.0.

@wtgodbe
Copy link
Member Author

wtgodbe commented Sep 26, 2019

I don't even know how CoreFx/Core-Setup get IconUrl's into their .nuspec's - I confirmed that the packages we shipped with GA do have the iconUrl metadata in their .nuspec's, but there is no instance of the PackageIconUrl property in CoreFx. Maybe we're using some Arcade/SDK default?

@ericstj
Copy link
Member

ericstj commented Sep 26, 2019

We do it here: https://github.com/dotnet/arcade/blob/0f1befce6666a71ae459ac61507a00535bbdfe75/src/Microsoft.DotNet.Build.Tasks.Packaging/src/build/Packaging.targets#L51.

Work would be to add a new property and expose it on GenerateNuSpec. We could bundle the default icon with the packaging infra, same as we do the other files and make it happen for our stuff automatically.

Perhaps NU5048 isn't triggered in PackageBuilder? I'd have to look at where they inserted that check.

@ericstj
Copy link
Member

ericstj commented Sep 26, 2019

Yeah, NuGet only runs this during the Pack task. Maybe we should consider adding that to our own pack task (so long as we still need it and cannot move to using the nuget pack task).

@ericstj ericstj assigned ericstj and unassigned Anipik Oct 16, 2019
@danmoseley
Copy link
Member

@ViktorHofer @wtgodbe can you clarify the importance of this one? It's marked 3.0 but nobody is working on it.

Is this required to ship 3.0 (or 3.1)?

We should make sure somebody is doing this for CoreClr/Core-Setup/Standard as well

Is this confirmed, can you link issues?

@ericstj
Copy link
Member

ericstj commented Oct 21, 2019

I have a fix for this. I'll be putting it into arcade, we just need to make sure we get it to all the right places.

@ericstj
Copy link
Member

ericstj commented Oct 29, 2019

@wtgodbe @mmitche this change is in to arcade, do you guys plan to manually flow Arcade into CoreFx release branches?

@ericstj ericstj assigned wtgodbe and unassigned ericstj Oct 29, 2019
@mmitche
Copy link
Member

mmitche commented Oct 29, 2019

@ericstj Ya, once we finish 3.0.1

@ericstj
Copy link
Member

ericstj commented Oct 29, 2019

Assume the same will happen in 3.1?

@mmitche
Copy link
Member

mmitche commented Oct 29, 2019

Yeah, those arcade subscriptions flow to both places

@ericstj
Copy link
Member

ericstj commented Nov 4, 2019

Hey folks, just checked release/3.1 and this didn't happen. @wtgodbe don't we want this in the preview 3 build?

@msftgits msftgits transferred this issue from dotnet/corefx Feb 1, 2020
@msftgits msftgits added this to the 3.0.x milestone Feb 1, 2020
@wtgodbe
Copy link
Member Author

wtgodbe commented Feb 3, 2020

Looks like this has been done

@wtgodbe wtgodbe closed this as completed Feb 3, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants