Skip to content

Commit 42c32f0

Browse files
authored
Removed unnecessary output path properties from csproj templates. (#2680)
1 parent 250f9b8 commit 42c32f0

File tree

6 files changed

+0
-7
lines changed

6 files changed

+0
-7
lines changed

src/BenchmarkDotNet/Templates/CsProj.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<PlatformTarget>$PLATFORM$</PlatformTarget>
1010
<AssemblyName>$PROGRAMNAME$</AssemblyName>
1111
<OutputType>Exe</OutputType>
12-
<OutputPath>bin\$CONFIGURATIONNAME$</OutputPath>
1312
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
1413
<!-- Usage of System.Random can cause compilation errors if Code Analysis warnings are treated as Errors -->
1514
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
@@ -23,7 +22,6 @@
2322
<Optimize Condition=" '$(Configuration)' != 'Debug' ">true</Optimize>
2423
<!-- we set LangVersion after any copied settings which might contain LangVersion copied from the benchmarks project -->
2524
<LangVersion Condition="'$(LangVersion)' == '' Or ($([System.Char]::IsDigit('$(LangVersion)', 0)) And '$(LangVersion)' &lt; '7.3')">latest</LangVersion>
26-
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
2725
<!-- fix for NETSDK1150: https://docs.microsoft.com/en-us/dotnet/core/compatibility/sdk/5.0/referencing-executable-generates-error -->
2826
<ValidateExecutableReferencesMatchSelfContained>false</ValidateExecutableReferencesMatchSelfContained>
2927
<!-- Suppress warning for nuget package used in old (unsupported) tfm. -->

src/BenchmarkDotNet/Templates/MonoAOTLLVMCsProj.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
<PropertyGroup>
1111
<OutputType>Exe</OutputType>
12-
<OutputPath>bin</OutputPath>
1312
<TargetFramework>$TFM$</TargetFramework>
1413
<MicrosoftNetCoreAppRuntimePackDir>$RUNTIMEPACK$</MicrosoftNetCoreAppRuntimePackDir>
1514
<RuntimeIdentifier>$RUNTIMEIDENTIFIER$</RuntimeIdentifier>

src/BenchmarkDotNet/Templates/WasmCsProj.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
<PropertyGroup>
1313
<OutputType>Exe</OutputType>
14-
<OutputPath>bin</OutputPath>
1514
<RuntimeConfig>Release</RuntimeConfig>
1615
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
1716
<TargetFramework>$TFM$</TargetFramework>

src/BenchmarkDotNet/Toolchains/CsProj/CsProjGenerator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ protected override void GenerateProject(BuildPartition buildPartition, Artifacts
8585
.Replace("$PROGRAMNAME$", artifactsPaths.ProgramName)
8686
.Replace("$RUNTIMESETTINGS$", GetRuntimeSettings(benchmark.Job.Environment.Gc, buildPartition.Resolver))
8787
.Replace("$COPIEDSETTINGS$", customProperties)
88-
.Replace("$CONFIGURATIONNAME$", buildPartition.BuildConfiguration)
8988
.Replace("$SDKNAME$", sdkName)
9089
.ToString();
9190

src/BenchmarkDotNet/Toolchains/MonoAotLLVM/MonoAotLLVMGenerator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ protected override void GenerateProject(BuildPartition buildPartition, Artifacts
4343
.Replace("$TFM$", TargetFrameworkMoniker)
4444
.Replace("$PROGRAMNAME$", artifactsPaths.ProgramName)
4545
.Replace("$COPIEDSETTINGS$", customProperties)
46-
.Replace("$CONFIGURATIONNAME$", buildPartition.BuildConfiguration)
4746
.Replace("$SDKNAME$", sdkName)
4847
.Replace("$RUNTIMEPACK$", CustomRuntimePack ?? "")
4948
.Replace("$COMPILERBINARYPATH$", AotCompilerPath)

src/BenchmarkDotNet/Toolchains/MonoWasm/WasmGenerator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ protected void GenerateProjectFile(BuildPartition buildPartition, ArtifactsPaths
5757
.Replace("$TFM$", TargetFrameworkMoniker)
5858
.Replace("$PROGRAMNAME$", artifactsPaths.ProgramName)
5959
.Replace("$COPIEDSETTINGS$", customProperties)
60-
.Replace("$CONFIGURATIONNAME$", buildPartition.BuildConfiguration)
6160
.Replace("$SDKNAME$", sdkName)
6261
.Replace("$WASMDATADIR$", runtime.WasmDataDir)
6362
.Replace("$TARGET$", CustomRuntimePack != null ? "PublishWithCustomRuntimePack" : "Publish")

0 commit comments

Comments
 (0)