Skip to content

Commit 7aa2004

Browse files
committed
Auto-bump assembly version of task assemblies
1 parent 995ba5a commit 7aa2004

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/Tasks/Microsoft.NET.Build.Extensions.Tasks/Microsoft.NET.Build.Extensions.Tasks.csproj

+2-5
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@
1919
<IncludeBuildOutput>false</IncludeBuildOutput>
2020
<OutDirName>$(Configuration)\Sdks\$(PackageId)\msbuildExtensions\Microsoft\Microsoft.NET.Build.Extensions\tools</OutDirName>
2121
<NoPackageAnalysis>true</NoPackageAnalysis>
22+
<!-- MSBuild Task DLLs need to be versioned with every build -->
23+
<AutoGenerateAssemblyVersion>true</AutoGenerateAssemblyVersion>
2224
</PropertyGroup>
2325

2426
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
2527

26-
<PropertyGroup>
27-
<!-- MSBuild Task DLLs need to be versioned with every build -->
28-
<AssemblyVersion>$(FileVersion)</AssemblyVersion>
29-
</PropertyGroup>
30-
3128
<PropertyGroup>
3229
<OutputPath>$(BaseOutputPath)</OutputPath>
3330
<DefineConstants>$(DefineConstants);EXTENSIONS</DefineConstants>

src/Tasks/Microsoft.NET.Build.Tasks/Microsoft.NET.Build.Tasks.csproj

+2-5
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,12 @@
1717
<OutDirName>$(Configuration)\Sdks\$(PackageId)\tools</OutDirName>
1818
<NoPackageAnalysis>true</NoPackageAnalysis>
1919
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
20+
<!-- MSBuild Task DLLs need to be versioned with every build -->
21+
<AutoGenerateAssemblyVersion>true</AutoGenerateAssemblyVersion>
2022
</PropertyGroup>
2123

2224
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
2325

24-
<PropertyGroup>
25-
<!-- MSBuild Task DLLs need to be versioned with every build -->
26-
<AssemblyVersion>$(FileVersion)</AssemblyVersion>
27-
</PropertyGroup>
28-
2926
<PropertyGroup>
3027
<OutputPath>$(BaseOutputPath)</OutputPath>
3128
<IsPackable>true</IsPackable>

0 commit comments

Comments
 (0)