Skip to content

Microbuild signing - #47

Merged
333fred merged 10 commits into
dotnet:masterfrom
333fred:microbuild-signing
Aug 16, 2016
Merged

333fred merged 10 commits into
dotnet:masterfrom
333fred:microbuild-signing

Conversation

@333fred

@333fred 333fred commented Aug 15, 2016

Copy link
Copy Markdown
Member

This adds PublicSigning to local builds, and DelaySigning+RealSigning when running on MicroBuild. I've also updated our MicroBuild definition to include the -RealSign parameter, which won't have an effect until this PR is merged.

Tagging @eerhardt @piotrpMSFT @livarcocc @brthor @natidea @dotnet/project-system for review.

@333fred

333fred commented Aug 15, 2016 •

Copy link
Copy Markdown
Member Author

If you'd like to see the output of a signed build, it's on \internal_drop_root\roslyn-project-system\dotnet-core-sdk-testing. If you don't know what the drop root is, you can find it in the MicroBuild variable definitions, or just message me and I'll give you the link. Don't want to post it on a repo that'll eventually go public.


<!-- If RealSigning -->
<Message Text="Performing Real Signing" Condition="'$(SignType)'=='real'"/>
<Exec Command="$(SignTool) -nugetPackagesPath &quot;$(NuGet_Packages)&quot; -config &quot;@(SigningConfig)&quot; &quot;$(OutDir.TrimEnd('\'))&quot;"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This change sort of conflicts with my latest PR #46. Basically, the output assembly is getting placed into the PackagesLayout folder during build of the tasks assembly. That's the assembly that needs to be signed.

What do you think about hooking the signing tool up during the Build of the tasks assembly, instead of in an outside project?

@333fred 333fred Aug 16, 2016 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The part that tells MicroBuild what to sign is a combination of the path at the end and SignToolConfig.json. I'm not sure how this conflicts with that PR, we'll just have to pass $(OutDir)PackagesLayoutDir as the path instead of just $(OutDir). Is there something I'm missing?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The tasks assembly is located in 2 places in $(OutDir)PackagesLayoutDir, once in netcoreapp1.0 and once in net46. I'd rather we sign the file once, and then place/copy the signed file into the packages layout directory. So I think I'll move the "layout" code out of the Tasks.csproj and instead into the NuGet.proj file, which solves all these problems.

Comment thread build/build.proj

<Target Name="SignPackages">

<MSBuild BuildInParallel="true"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should ensure that BuildNuGetPackages is dependent on this target, or else we will build the nuget packages in parallel, and then we won't get our signed assemblies in the nuget packages.

@eerhardt

Copy link
Copy Markdown
Member

This looks good, @333fred. Thanks for taking care of this.

:shipit: after addressing the "parallel build" comment.

springmin added a commit to springmin/sdk-ohos that referenced this pull request Oct 4, 2026
Advance WORKLOAD_BUNDLE_SHA256 from f086d161 (kit dotnet#46) to 27c54c62, the kit dotnet#47
repack of openharmony-workload-1.0.0-preview.28: the Sdk pack carries the FIX-PREEMPT-RAW
shell (ui abc 370,240/4b439e83, pages/Index.ets 326,953/69dc09e0, provenance bb5a1758;
headless 24,324/798b2477 unchanged), the unchanged host (297,888/7b1694d9), the P2c
skills[].uris targets (77,401/9d0389d4) and tasks (40,960/0c186779); the kits haps were
rebuilt with the FIX-A11YFLYOUT MAUI slice (d5384d6cc3) and the Ref/Runtime managed packs
were rebuilt from the same sources. Installer tests: 43/43 + 10/10 + 5/5,
fetch-nativeaot --local content check OK (r2 OpenSSL shim 5/5).
springmin added a commit to springmin/sdk-ohos that referenced this pull request Oct 5, 2026
Advance WORKLOAD_BUNDLE_SHA256 from 27c54c62 (kit dotnet#47) to 3b62cee2, the kit dotnet#48 repack of
openharmony-workload-1.0.0-preview.28: the Sdk pack carries the MULTIWINDOW-S shell
(ui abc 375,268/9cd2b4c3, pages/Index.ets with the window mode declaration + size-change
subscription, provenance updated; headless 24,324/798b2477 unchanged) and the rebuilt host
(FPS48 60 Hz XComponent frame-rate vote + AOT-STARTUP overlay first-use mount and identical
app-context replay skip + interp R2R=0); the kit haps were rebuilt with the MULTIWINDOW-S
MAUI slice (ed02203bfd) and the Ref/Runtime managed packs were rebuilt from the same sources.
Installer tests: 43/43 + 10/10 + 5/5, fetch-nativeaot --local content check OK (r2 OpenSSL
shim 5/5).
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