Skip to content

Conversation

@NikolaMilosavljevic
Copy link
Member

Contributes to dotnet/source-build#4101

Enables publishing in VMR.

Installers are not collected by common arcade publishing infra. All repos that build installers need to collect them in Publishing.props file.

Additionally installers need to be published to correct blob path, which includes versioned sub-directory. I'm obtaining the version value from MicrosoftWindowsDesktopAppRuntimewinx64PackageVersion property which is defined in all architecture builds. This repo does not appear to define any RID-specific properties, i.e. TargetRid.

</PropertyGroup>

<ItemGroup>
<_InstallersToPublish Remove="@(_InstallersToPublish)" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WindowsDesktop may be special here. I would find out how they are publishing their assets right now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this change would replace https://github.com/dotnet/windowsdesktop/blob/main/src/publish/prepare-artifacts.proj but that might need a bit more work.

Otherwise we would still publish differently. This applies to windowsdesktop and runtime. Both use prepare-artifacts.proj.

Copy link
Member

@ViktorHofer ViktorHofer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NikolaMilosavljevic I simplified this code a bit. I hope you don't mind. Testing it locally.

@ViktorHofer ViktorHofer enabled auto-merge (squash) March 15, 2024 17:29
@ViktorHofer ViktorHofer disabled auto-merge March 15, 2024 17:32
<ItemsToPushToBlobFeed Include="@(InstallerToPublish)"
IsShipping="true"
ManifestArtifactData="DotNetReleaseShipping=true"
PublishFlatContainer="true"
Copy link
Member

@ViktorHofer ViktorHofer Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mmitche any idea why this metadata is set? Just double checking if this is right. There isn't much documentation for this parameter.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PublishFlatContainer? This just says "I'm a blob not a package". It used to refer to some sleet feed vs. blob artifact pivot.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, thanks

Copy link
Member

@ViktorHofer ViktorHofer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validated offline. This works now.

@ViktorHofer ViktorHofer enabled auto-merge (squash) March 15, 2024 21:20
@ViktorHofer ViktorHofer merged commit 9976c54 into dotnet:main Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants