diff --git a/csharp/Directory.Build.props b/csharp/Directory.Build.props new file mode 100644 index 00000000000..edd390d376c --- /dev/null +++ b/csharp/Directory.Build.props @@ -0,0 +1,6 @@ + + + net7.0 + enable + + \ No newline at end of file diff --git a/csharp/Dockerfile b/csharp/Dockerfile index 23054e8964a..c6da9de219b 100644 --- a/csharp/Dockerfile +++ b/csharp/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /usr/src/app # copy csproj and restore as distinct layers COPY *.csproj . +COPY *.props . RUN dotnet restore # copy everything else and build app diff --git a/csharp/aspnet-minimal-api/web.csproj b/csharp/aspnet-minimal-api/web.csproj index 1af5701a607..646ad4e0018 100644 --- a/csharp/aspnet-minimal-api/web.csproj +++ b/csharp/aspnet-minimal-api/web.csproj @@ -1,6 +1,2 @@  - - net7.0 - enable - diff --git a/csharp/simplify.web/web.csproj b/csharp/simplify.web/web.csproj index c6b4978103c..90da0b10d09 100644 --- a/csharp/simplify.web/web.csproj +++ b/csharp/simplify.web/web.csproj @@ -1,8 +1,4 @@  - - net7.0 - enable -