Skip to content

Commit

Permalink
fix: Set dotnet publish target framework
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Nov 12, 2022
1 parent b351a6e commit 9ffe357
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/WeatherForecast/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY . .

RUN dotnet restore $CSPROJ_FILE_PATH

RUN dotnet publish $CSPROJ_FILE_PATH --configuration Release --output out
RUN dotnet publish $CSPROJ_FILE_PATH --configuration Release --framework net6.0 --output out

FROM mcr.microsoft.com/dotnet/aspnet:6.0
ARG RESOURCE_REAPER_SESSION_ID="00000000-0000-0000-0000-000000000000"
Expand Down
2 changes: 1 addition & 1 deletion examples/WeatherForecast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This example builds and ships a Blazor application in a Docker image build, runs

```console
git lfs version
git clone git@github.com:testcontainers/testcontainers-dotnet.git
git clone --branch develop git@github.com:testcontainers/testcontainers-dotnet.git
cd ./testcontainers-dotnet/examples/WeatherForecast/
dotnet build WeatherForecast.sln
dotnet test WeatherForecast.sln
Expand Down

0 comments on commit 9ffe357

Please sign in to comment.