Browse Source

Fix #2757: Inject ILSpyUpdateAssemblyInfo into GetPackageVersionDependsOn so Pack uses the generated version when evaluating project references. (#2769)

pull/2774/head
Siegfried Pammer 3 years ago committed by GitHub
parent
commit
6d4c5f3273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj
  2. 9
      ICSharpCode.ILSpyX/ICSharpCode.ILSpyX.csproj

10
ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj

@ -39,6 +39,8 @@ @@ -39,6 +39,8 @@
<DebugSymbols>true</DebugSymbols>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<CodeAnalysisRuleSet>ICSharpCode.Decompiler.ruleset</CodeAnalysisRuleSet>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
@ -57,9 +59,13 @@ @@ -57,9 +59,13 @@
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<!-- Inject ILSpyUpdateAssemblyInfo as dependency of the GetPackageVersion
target so Pack uses the generated version when evaluating project references. -->
<PropertyGroup>
<CodeAnalysisRuleSet>ICSharpCode.Decompiler.ruleset</CodeAnalysisRuleSet>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GetPackageVersionDependsOn>
ILSpyUpdateAssemblyInfo;
$(GetPackageVersionDependsOn)
</GetPackageVersionDependsOn>
</PropertyGroup>
<Import Project="..\packages.props" />

9
ICSharpCode.ILSpyX/ICSharpCode.ILSpyX.csproj

@ -53,6 +53,15 @@ @@ -53,6 +53,15 @@
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<!-- Inject ILSpyUpdateAssemblyInfo as dependency of the GetPackageVersion
target so Pack uses the generated version when evaluating project references. -->
<PropertyGroup>
<GetPackageVersionDependsOn>
ILSpyUpdateAssemblyInfo;
$(GetPackageVersionDependsOn)
</GetPackageVersionDependsOn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.IO.Compression" Version="4.3.0" />
<PackageReference Include="System.Reflection.Metadata" Version="$(SystemReflectionMetadataVersion)" />

Loading…
Cancel
Save