Skip to content

Commit

Permalink
Try to fix issue with Nuke not working when .NET 9 preview 1 is insta…
Browse files Browse the repository at this point in the history
…lled
  • Loading branch information
andrewlock committed Oct 8, 2024
1 parent d950a63 commit c5b1228
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracer/build/_build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework Condition="$(USE_NATIVE_SDK_VERSION) == 'true'">net7.0</TargetFramework>
<TargetFramework Condition="$(OS.StartsWith('Windows')) AND '$(NUKE_NOTIFY)' != ''">$(TargetFramework)-windows10.0.19041</TargetFramework>
<DefineConstants Condition="$(OS.StartsWith('Windows')) AND '$(NUKE_NOTIFY)' != ''">$(DefineConstants);NUKE_NOTIFY</DefineConstants>
<RollForward>LatestMajor</RollForward>
<RootNamespace></RootNamespace>
<!-- NU* are workaround for Rider bug: https://youtrack.jetbrains.com/issue/RIDER-103207/Cannot-suppress-vulnerable-package-errors -->
<NoWarn>CS0649;CS0169;SA1652;NU1901;NU1902;NU1903;NU1904</NoWarn>
Expand Down
4 changes: 4 additions & 0 deletions tracer/build/_build/docker/centos7.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ ENV \

FROM base as builder

ENV USE_NATIVE_SDK_VERSION=true

# Copy the build project in and build it
COPY *.csproj *.props *.targets /build/
RUN dotnet restore /build
Expand All @@ -104,6 +106,8 @@ RUN if [ "$(uname -m)" = "x86_64" ]; \
&& rm dotnet-install.sh


ENV USE_NATIVE_SDK_VERSION=true

# Copy the build project in and build it
COPY *.csproj *.props *.targets /build/
RUN dotnet restore /build
Expand Down

0 comments on commit c5b1228

Please sign in to comment.