Skip to content

Commit ad72ac5

Browse files
committed
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Fix PackageId default from Pack SDK devlooped/oss@6e24389 - Improve PackageId/IsPackable defaulting devlooped/oss@e8b0802
1 parent dea7029 commit ad72ac5

4 files changed

Lines changed: 22 additions & 4 deletions

File tree

‎.netconfig‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@
8181
sha = 0683ee777d7d878d4bf013d7deea352685135a05
8282
[file "src/Directory.Build.props"]
8383
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.props
84-
etag = b2b90c6d617db9712cc8be2031b767d3ba951015717984f52b4872cc39f93e72
84+
etag = f1d6384abf18d8d891ce5e835a10c73fe029c42151374be96d7e4af43d189c65
8585
weak
86-
sha = a1f5d11d1821959a141567ed24f9ea43205edd13
86+
sha = 6e2438919e108aeb75106dc0737c45f5e55d5f42
8787
[file "src/Directory.Build.targets"]
8888
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets
89-
etag = 907682e5632a2ba430357e6e042a4ca33cb8c94a3a215d3091aa03f5958a4877
89+
etag = 64e6834c4891737bb6b369e19b255d69623986cd3cf87d5fc6e2866e5d4d2968
9090
weak
91-
sha = 4b84c540df6f37c30fb38df7947d79871c34f036
91+
sha = e8b0802059e67a5f6e8de18e492683c5822c0b80
9292
[file "src/kzu.snk"]
9393
url = https://github.com/devlooped/oss/blob/main/src/kzu.snk
9494
skip

‎readme.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ since the "Main" file selection is performed exclusively via MSBuild item manipu
205205
[![Seika Logiciel](https://avatars.githubusercontent.com/u/2564602?v=4&s=39 "Seika Logiciel")](https://github.com/SeikaLogiciel)
206206
[![Andrew Grant](https://avatars.githubusercontent.com/devlooped-user?s=39 "Andrew Grant")](https://github.com/wizardness)
207207
[![eska-gmbh](https://avatars.githubusercontent.com/devlooped-team?s=39 "eska-gmbh")](https://github.com/eska-gmbh)
208+
[![Geodata AS](https://avatars.githubusercontent.com/u/5946299?v=4&s=39 "Geodata AS")](https://github.com/geodata-no)
208209

209210

210211
<!-- sponsors.md -->

‎src/Directory.Build.props‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
<WarnOnPackingNonPackableProject>false</WarnOnPackingNonPackableProject>
4848
<!-- See https://learn.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#prunepackagereference-specification -->
4949
<RestoreEnablePackagePruning>true</RestoreEnablePackagePruning>
50+
51+
<!-- Needed to improve nuget default for empty PackageId. Workaround for https://github.com/NuGet/Home/issues/14928 -->
52+
<ImportNuGetBuildTasksPackTargetsFromSdk>false</ImportNuGetBuildTasksPackTargetsFromSdk>
5053
</PropertyGroup>
5154

5255
<PropertyGroup Label="Build">

‎src/Directory.Build.targets‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@
3232
<IsPackable Condition="'$(PackageId)' != ''">true</IsPackable>
3333
</PropertyGroup>
3434

35+
<PropertyGroup>
36+
<!-- Save original PackageId to restore post-import -->
37+
<_PackageId>$(PackageId)</_PackageId>
38+
</PropertyGroup>
39+
40+
<Import Project="$(NuGetBuildTasksPackTargets)" Condition="Exists('$(NuGetBuildTasksPackTargets)')"/>
41+
42+
<PropertyGroup>
43+
<!-- Revert the forced PackageId by the NuGet SDK targets for non-packable projects, see https://github.com/NuGet/Home/issues/14928 -->
44+
<PackageId Condition="'$(IsPackable)' == 'false'">$(_PackageId)</PackageId>
45+
<!-- If no PackageId was originally provided, ensure IsPackable is false -->
46+
<IsPackable Condition="'$(_PackageId)' == ''">false</IsPackable>
47+
</PropertyGroup>
48+
3549
<ItemGroup Condition="'$(IsPackable)' == 'true'" Label="NuGet">
3650
<!-- This is compatible with nugetizer and SDK pack -->
3751
<!-- Only difference is we don't copy either to output directory -->

0 commit comments

Comments
 (0)