Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

BuildTools should use props file for signing plugin #1186

Closed
gkhanna79 opened this issue Nov 2, 2016 · 2 comments
Closed

BuildTools should use props file for signing plugin #1186

gkhanna79 opened this issue Nov 2, 2016 · 2 comments
Assignees
Milestone

Comments

@gkhanna79
Copy link
Member

From @ericstj

We only import targets and not props files, whereas had we installed the microbuild package directly we’d get both.

Make a fix to buildtools to pick up props as well, update that in all release branches.

When release branches (both LTS and 1.1.0) are updated, please undo the change that forces the signing version to be 1.0.268.

@gkhanna79 gkhanna79 added this to the 1.1.0 milestone Nov 2, 2016
@markwilkie
Copy link
Member

From Eric St John,

We have two options to fix this:

  1. Just change the build definitions to lock in the signing plugin on a version that works with the buildtools in release.
  2. Make a fix to buildtools to pick up props as well, update that in all release branches.

I think #1 is the right thing to do in the release branches.

I think I found the problem.

There was a breaking change in the plugin.
WCF is using MicroBuild.Plugins.Signing.1.0.279
CoreFx is using MicroBuild.Plugins.Signing.1.0.268

The difference between these two? The 279 version adds a property MicroBuild_SigningEnabled to MicroBuild.Plugins.Signing.props.

As far as I can tell the only thing we import is

This means we’ll never import that props file which sets the property to enable the signing task.

I think the simple fix here is to change the plugin version your’re using.

I think someone from infrastructure side needs to see what needs to update in buidltools to pick up the new microbuild plugins. I believe that’d be having buidltools import the MicroBuild.core.props in https://github.com/dotnet/buildtools/blob/master/src/Microsoft.DotNet.Build.Tasks/PackageFiles/Build.Common.props like we do for the targets here:

<Import Project="$(MSBuildThisFileDirectory)MicroBuild.Core.targets" Condition="'$(IsTestProject)'!='true' and '$(SignType)' != 'oss'" />

Eric

@ericstj
Copy link
Member

ericstj commented Nov 2, 2016

Also undo the change in DotNetCore-BuildTools-Trusted, I had to force 1.0.268 here as well.

weshaggard added a commit to weshaggard/coreclr that referenced this issue Jun 22, 2018
weshaggard added a commit to dotnet/core-setup that referenced this issue Jun 22, 2018
weshaggard added a commit to dotnet/corefx that referenced this issue Jun 22, 2018
weshaggard added a commit to dotnet/coreclr that referenced this issue Jun 22, 2018
weshaggard added a commit to dotnet/core-setup that referenced this issue Jun 22, 2018
weshaggard added a commit to dotnet/corefx that referenced this issue Jun 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants