Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't require additional Windows SDK for Nuke desktop notification #5192

Merged
merged 2 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#if IS_WINDOWS
#if NUKE_NOTIFY
#nullable enable

using System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

public partial class BuildFinishedNotificationAttribute : BuildExtensionAttributeBase, IOnBuildFinished
{
#if !IS_WINDOWS
#if !NUKE_NOTIFY
public void OnBuildFinished(NukeBuild build)
{}
#endif
Expand Down
10 changes: 5 additions & 5 deletions tracer/build/_build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework Condition="$(OS.StartsWith('Windows'))">$(TargetFramework)-windows10.0.17763</TargetFramework>
<DefineConstants Condition="$(OS.StartsWith('Windows'))">IS_WINDOWS</DefineConstants>
<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 -->
Expand Down Expand Up @@ -40,9 +40,9 @@
<PackageReference Include="ByteSize" Version="2.1.0" />
</ItemGroup>

<ItemGroup>
<!-- on it's own, since windows only and just used for notifications -->
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" Condition="$(OS.StartsWith('Windows'))" />
<!-- On it's own, since windows only and just used for notifications -->
<ItemGroup Condition="$(OS.StartsWith('Windows')) AND '$(NUKE_NOTIFY)' != ''">
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading