Skip to content

Building app extensions remotely from Windows doesn't work #23516

@rolfbjarne

Description

@rolfbjarne

When building an app with app extensions, as part of the app build process we build the app extensions:

<!-- Build the referenced project if required -->
<MSBuild
Projects="@(_AppExtensionReferenceWithConfigurationExistent)"
Properties="%(_AppExtensionReferenceWithConfigurationExistent.SetConfiguration); %(_AppExtensionReferenceWithConfigurationExistent.SetPlatform)"
Condition="'@(_AppExtensionReferenceWithConfigurationExistent)' != '' and '$(_BuildReferencedExtensionProjects)' == 'true' ">
<Output TaskParameter="TargetOutputs" ItemName="_ResolvedAppExtensionReferences" Condition="'%(_AppExtensionReferenceWithConfigurationExistent.ReferenceOutputAssembly)' != 'false'"/>
</MSBuild>

where we get the path to the resulting app extension (appex) from the "Build" target output, because we've overridden "Build" to return that for app extensions:

<Target Name="Build" Condition="'$(_InvalidConfigurationWarning)' != 'true'" DependsOnTargets="_GenerateBundleName;$(BuildDependsOn)" Outputs="@(_AppExtensionBundlePath)" />

However, when building from Windows, the "Build" target is overridden again:

<!-- Override Build -->
<Target Name="Build" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(BuildDependsOn)" Returns="@(TargetPath)">

so the logic specific to app extensions to return the path to the appex doesn't work.

Metadata

Metadata

Assignees

Labels

app-extensionsmsbuildIssues affecting our msbuild tasks/targets

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions