Skip to content

Commit d5c158c

Browse files
authored
Prevent dotnet pack from packaging benchmark projects (#1584)
Prevent the dotnet pack command from unexpectedly packaging benchmarking projects built via the dotnet new templates.
1 parent 8b2214b commit d5c158c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

templates/templates/BenchmarkDotNet.BenchmarkProjectTemplate.CSharp/_BenchmarkProjectName_.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1414
<Optimize>true</Optimize>
1515
<Configuration>Release</Configuration>
16+
<IsPackable>false</IsPackable>
1617
</PropertyGroup>
1718
<ItemGroup>
1819
<PackageReference Include="BenchmarkDotNet" Version="$(BenchmarkDotNetVersion)" />

templates/templates/BenchmarkDotNet.BenchmarkProjectTemplate.FSharp/_BenchmarkProjectName_.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1414
<Optimize>true</Optimize>
1515
<Configuration>Release</Configuration>
16+
<IsPackable>false</IsPackable>
1617
</PropertyGroup>
1718
<PropertyGroup Condition="'$(Configuration)'=='Release'">
1819
<Tailcalls>true</Tailcalls>

templates/templates/BenchmarkDotNet.BenchmarkProjectTemplate.VB/_BenchmarkProjectName_.vbproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1414
<Optimize>true</Optimize>
1515
<Configuration>Release</Configuration>
16+
<IsPackable>false</IsPackable>
1617
</PropertyGroup>
1718
<ItemGroup>
1819
<PackageReference Include="BenchmarkDotNet" Version="$(BenchmarkDotNetVersion)" />

0 commit comments

Comments
 (0)