Skip to content

Commit

Permalink
[5.1] eng | Address strong naming issues in created nugets (#2698) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Javad Rahnama authored Jul 31, 2024
1 parent 5f7840e commit 0a7d192
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ steps:
inputs:
solution: '**/build.proj'
configuration: '${{parameters.Configuration }}'
msbuildArguments: '-p:AssemblyFileVersion=${{parameters.AssemblyFileVersion }} -t:BuildAllConfigurations -p:GenerateNuget=false -p:SignAssembly=true -p:AssemblyOriginatorKeyFile=$(Agent.TempDirectory)\netfxKeypair.snk'
msbuildArguments: '-p:AssemblyFileVersion=${{parameters.AssemblyFileVersion }} -t:BuildAllConfigurations -p:GenerateNuget=false -p:SignAssembly=true -p:SigningKeyPath=$(Agent.TempDirectory)\netfxKeypair.snk'

- ${{ if eq(parameters.product, 'AKV') }}:
- task: MSBuild@1
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/common/templates/steps/code-analyze-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ steps:
msBuildVersion: 17.0
msBuildArchitecture: x64
setupCommandlinePicker: vs2022
msBuildCommandline: 'msbuild ${{parameters.sourceRoot}}\build.proj -p:configuration=Release -p:GenerateNuget=false -p:BuildTools=false'
msBuildCommandline: 'msbuild ${{parameters.sourceRoot}}\build.proj -p:configuration=Release -p:GenerateNuget=false -p:BuildTools=false -p:SigningKeyPath=$(Agent.TempDirectory)\netfxKeypair.snk'
- ${{ if eq(parameters.product, 'AKV') }}:
- task: securedevelopmentteam.vss-secure-development-tools.build-task-roslynanalyzers.RoslynAnalyzers@3
displayName: 'Guardian Dotnet Analyzers '
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
<TargetGroup Condition="'$([MSBuild]::GetTargetFrameworkIdentifier($(TargetFramework)))'=='.NETStandard'">netstandard</TargetGroup>
<Platforms>AnyCPU;x64;x86</Platforms>
</PropertyGroup>
<PropertyGroup Condition="$(CDP_BUILD_TYPE)==Official">
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
<KeyFile>$(SigningKeyPath)</KeyFile>
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition="$(CDP_BUILD_TYPE)!=Official">
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Compile Include="Microsoft.Data.SqlClient.cs" />
<Compile Include="Microsoft.Data.SqlClient.Manual.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Product>Core $(BaseProduct)</Product>
</PropertyGroup>
<PropertyGroup Condition="$(CDP_BUILD_TYPE)==Official">
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
<KeyFile>$(SigningKeyPath)</KeyFile>
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition="$(CDP_BUILD_TYPE)!=Official">
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
<Product>Framework $(BaseProduct)</Product>
<Configurations>Debug;Release;</Configurations>
</PropertyGroup>
<PropertyGroup Condition="$(CDP_BUILD_TYPE)==Official">
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
<KeyFile>$(SigningKeyPath)</KeyFile>
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition="$(CDP_BUILD_TYPE)!=Official">
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Compile Include="Microsoft.Data.SqlClient.cs" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@
<ComCompatibleSideBySide>True</ComCompatibleSideBySide>
<GenerateTargetFrameworkAttribute>False</GenerateTargetFrameworkAttribute>
</PropertyGroup>
<PropertyGroup Condition="$(CDP_BUILD_TYPE)==Official">
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
<KeyFile>$(SigningKeyPath)</KeyFile>
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition="$(CDP_BUILD_TYPE)!=Official">
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
</PropertyGroup>
<!-- ********************** Configuration and Platform specific properties ********************* -->
<!-- All Available Configurations-->
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'" />
Expand Down

0 comments on commit 0a7d192

Please sign in to comment.