Skip to content

Commit 73e54ce

Browse files
authored
Remove ImportDirectoryBuildProps/Targets properties from auto-generated csproj. (#3196)
1 parent f3ac0c1 commit 73e54ce

3 files changed

Lines changed: 0 additions & 6 deletions

File tree

src/BenchmarkDotNet/Templates/CsProj.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<Project Sdk="$SDKNAME$">
22

33
<PropertyGroup>
4-
<ImportDirectoryBuildProps>false</ImportDirectoryBuildProps>
5-
<ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets>
64
<AssemblyTitle>$PROGRAMNAME$</AssemblyTitle>
75
<TargetFrameworks>$TFM$</TargetFrameworks>
86
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

src/BenchmarkDotNet/Templates/R2RCsProj.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<!-- Properties same as standard CsProj.txt template -->
44
<PropertyGroup>
5-
<ImportDirectoryBuildProps>false</ImportDirectoryBuildProps>
6-
<ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets>
75
<AssemblyTitle>$PROGRAMNAME$</AssemblyTitle>
86
<TargetFrameworks>$TFM$</TargetFrameworks>
97
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

src/BenchmarkDotNet/Toolchains/NativeAot/Generator.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ protected override async ValueTask GenerateProjectAsync(BuildPartition buildPart
138138
private string GenerateProjectForNuGetBuild(string projectFilePath, BuildPartition buildPartition, ArtifactsPaths artifactsPaths, ILogger logger) => $"""
139139
<Project Sdk="Microsoft.NET.Sdk">
140140
<PropertyGroup>
141-
<ImportDirectoryBuildProps>false</ImportDirectoryBuildProps>
142-
<ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets>
143141
<OutputType>Exe</OutputType>
144142
<TargetFrameworks>{TargetFrameworkMoniker}</TargetFrameworks>
145143
<RuntimeIdentifier>{runtimeIdentifier}</RuntimeIdentifier>

0 commit comments

Comments
 (0)