From c4630da7a263d76c3fcb6012b0129e0864dcd961 Mon Sep 17 00:00:00 2001 From: Igor Velikorossov Date: Wed, 31 Jul 2024 13:04:38 +1000 Subject: [PATCH] Add PackageManager.UI.runtimeconfig.json to nupkg and zip artifacts --- .../GitExtensions.PluginManager.nuspec | 1 + .../Project.Publish.targets | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/GitExtensions.PluginManager/GitExtensions.PluginManager.nuspec b/src/GitExtensions.PluginManager/GitExtensions.PluginManager.nuspec index d6a7d5c..3e860f7 100644 --- a/src/GitExtensions.PluginManager/GitExtensions.PluginManager.nuspec +++ b/src/GitExtensions.PluginManager/GitExtensions.PluginManager.nuspec @@ -16,5 +16,6 @@ + \ No newline at end of file diff --git a/src/GitExtensions.PluginManager/Project.Publish.targets b/src/GitExtensions.PluginManager/Project.Publish.targets index 83b760a..59487da 100644 --- a/src/GitExtensions.PluginManager/Project.Publish.targets +++ b/src/GitExtensions.PluginManager/Project.Publish.targets @@ -13,17 +13,27 @@ --> - <_PackageManagerSourcePath>$([MSBuild]::NormalizePath('$(RepoRoot)', 'src', 'PackageManager.UI', 'bin', '$(Configuration)', '$(TargetFramework)', '$(PackageManagerUIRuntimeIdentifier)', 'publish', 'PackageManager.UI.exe')) - <_PackageManagerTargetPath>$(_PackageManagerFolder)\PackageManager.UI.exe + + <_PackageManagerSourceDir>$([MSBuild]::NormalizePath('$(RepoRoot)', 'src', 'PackageManager.UI', 'bin', '$(Configuration)', '$(TargetFramework)', '$(PackageManagerUIRuntimeIdentifier)', 'publish')) + <_PackageManagerSourcePath>$([MSBuild]::NormalizePath('$(_PackageManagerSourceDir)', 'PackageManager.UI.exe')) + <_PackageManagerRuntimeConfigSourcePath>$([MSBuild]::NormalizePath('$(_PackageManagerSourceDir)', '..', 'PackageManager.UI.runtimeconfig.json')) + + + <_PackageManagerTargetPath>$(_PackageManagerFolder)/PackageManager.UI.exe + <_PackageManagerRuntimeConfigTargetPath>$(_PackageManagerFolder)/PackageManager.UI.runtimeconfig.json + +