Skip to content

Commit 4201799

Browse files
committed
Fixups to ensure benchmarks apps builds in the master branch
Fixes #18484
1 parent 6b7442b commit 4201799

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

eng/Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
<!-- Exclude the benchmarks because they use <PackageReference>. -->
4545
<ProjectToExclude Include="
46-
$(RepoRoot)src\Components\benchmarkapps\**\*.csproj;
46+
$(RepoRoot)src\Components\benchmarkapps\BlazingPizza.Server\**\*.csproj;
4747
$(RepoRoot)src\Mvc\benchmarkapps\**\*.csproj;
4848
$(RepoRoot)src\Servers\Kestrel\perf\PlatformBenchmarks\**\*.csproj;
4949
$(RepoRoot)src\SignalR\perf\benchmarkapps\**\*.csproj;

src/Components/benchmarkapps/Wasm.Performance/Driver/Wasm.Performance.Driver.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<!-- Intentionally pinned this to .NET Core 3.1 since that's the supported version in the docker image -->
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
65

7-
<UseLatestAspNetCoreReference>true</UseLatestAspNetCoreReference>
86
<OutputType>exe</OutputType>
97

108
<!-- WebDriver is not strong-named, so this test project cannot be strong named either. -->
119
<SignAssembly>false</SignAssembly>
1210
</PropertyGroup>
1311

1412
<ItemGroup>
13+
<Reference Include="Microsoft.AspNetCore.Cors" />
1514
<Reference Include="Selenium.Support" />
1615
<Reference Include="Selenium.WebDriver" />
1716
<ProjectReference Include="..\..\..\Blazor\DevServer\src\Microsoft.AspNetCore.Blazor.DevServer.csproj" />

src/Components/benchmarkapps/Wasm.Performance/dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ RUN git init \
2121
&& git reset --hard FETCH_HEAD \
2222
&& git submodule update --init
2323

24-
RUN dotnet publish -c Release -r linux-x64 -o /app ./src/Components/benchmarkapps/Wasm.Performance/Driver/Wasm.Performance.Driver.csproj
24+
RUN ./restore.sh
25+
RUN .dotnet/dotnet publish -c Release -r linux-x64 -o /app ./src/Components/benchmarkapps/Wasm.Performance/Driver/Wasm.Performance.Driver.csproj
2526
RUN chmod +x /app/Wasm.Performance.Driver
2627

2728
WORKDIR /app

0 commit comments

Comments
 (0)