From e3dcad56909f08e90c7eca1907f6fd1e9bbaa631 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 28 Mar 2023 15:11:09 +0100 Subject: [PATCH] build(nupkg): use MSBuildProjectDirectory and go up 1 level SolutionDir macro is returning empty/null in workflow, causing a job failure since CHANGELOG.md is not in root. this may or may not fix the workflow. tba --- X10D.DSharpPlus/X10D.DSharpPlus.csproj | 2 +- X10D.Hosting/X10D.Hosting.csproj | 2 +- X10D.Unity/X10D.Unity.csproj | 2 +- X10D/X10D.csproj | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/X10D.DSharpPlus/X10D.DSharpPlus.csproj b/X10D.DSharpPlus/X10D.DSharpPlus.csproj index 65ab4e6..aff44a4 100644 --- a/X10D.DSharpPlus/X10D.DSharpPlus.csproj +++ b/X10D.DSharpPlus/X10D.DSharpPlus.csproj @@ -14,7 +14,7 @@ icon.png dotnet extension-methods - $([System.IO.File]::ReadAllText("$(SolutionDir)/CHANGELOG.md")) + $([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../CHANGELOG.md")) true 3.2.0 enable diff --git a/X10D.Hosting/X10D.Hosting.csproj b/X10D.Hosting/X10D.Hosting.csproj index 984de04..23b5f4b 100644 --- a/X10D.Hosting/X10D.Hosting.csproj +++ b/X10D.Hosting/X10D.Hosting.csproj @@ -14,7 +14,7 @@ icon.png dotnet extension-methods - $([System.IO.File]::ReadAllText("$(SolutionDir)/CHANGELOG.md")) + $([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../CHANGELOG.md")) true 3.2.0 enable diff --git a/X10D.Unity/X10D.Unity.csproj b/X10D.Unity/X10D.Unity.csproj index 7933dd7..a6d564d 100644 --- a/X10D.Unity/X10D.Unity.csproj +++ b/X10D.Unity/X10D.Unity.csproj @@ -14,7 +14,7 @@ icon.png dotnet extension-methods - $([System.IO.File]::ReadAllText("$(SolutionDir)/CHANGELOG.md")) + $([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../CHANGELOG.md")) true 3.2.0 enable diff --git a/X10D/X10D.csproj b/X10D/X10D.csproj index 746440f..00dc6b0 100644 --- a/X10D/X10D.csproj +++ b/X10D/X10D.csproj @@ -14,7 +14,7 @@ icon.png dotnet extension-methods - $([System.IO.File]::ReadAllText("$(SolutionDir)/CHANGELOG.md")) + $([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../CHANGELOG.md")) true 3.2.0 enable