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

Strong-naming for Bicep.Types.Az nuget package #1741

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/35MSSharedLib1024.snk
Binary file not shown.
3 changes: 3 additions & 0 deletions src/Bicep.Types.Az/Bicep.Types.Az.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@
<EmbeddedResource Include="%(TypeFiles.CompressedFile)" LogicalName="%(LogicalName)" />
</ItemGroup>
</Target>

<!-- Need to sign the assembly with a strong name in Official Build. -->
<Import Project="$(EnlistmentRoot)\StrongName.props" />
</Project>
1 change: 1 addition & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<RestoreLockedMode Condition="'$(CI)' == 'true'">true</RestoreLockedMode>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<EnlistmentRoot>$(MSBuildThisFileDirectory.TrimEnd('\\'))</EnlistmentRoot>
</PropertyGroup>

<ItemGroup>
Expand Down
8 changes: 8 additions & 0 deletions src/StrongName.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- TF_BUILD is a read-only predefined variable in ADO. It is set to True when starting a build task. -->
<PropertyGroup Condition="'$(TF_BUILD)' == 'True'">
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
<AssemblyOriginatorKeyFile Condition="'$(AssemblyOriginatorKeyFile)' == ''">$(MSBuildThisFileDirectory)35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
</Project>