Skip to content

Commit a139c24

Browse files
Nullpoint56claude
andcommitted
Leave SharpNRI.Descs' project as published
The description edit and the moved guard changed descs/SharpNRI.Descs.csproj, which descs-version.ps1 rightly read as a change of the published 191.0.0-beta.1. The descs did not change: the project is restored to 3960b59's, with its own SHARPNRI004 guard, and the new guard in Directory.Build.targets checks SharpNRIVersion only. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NvXTk6Roe4sQLHFx9Zykv8
1 parent 916c4b1 commit a139c24

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎Directory.Build.targets‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@
1818

1919
<!--
2020
Every package version has the NRI version as its major (Directory.Build.props: Package versions):
21-
SharpNRIVersion for the release packages, SharpNRIDescsVersion for SharpNRI.Descs.
21+
SharpNRIVersion for the release packages here; SharpNRI.Descs checks its own in its project file.
2222
-->
2323
<Target Name="SharpNRIVersionMajor" BeforeTargets="Build;GenerateNuspec" Condition="'$(IsPackable)' != 'false'">
2424
<Error Code="SHARPNRI004" Condition="!$(SharpNRIVersion.StartsWith('$(NriVersion).'))"
2525
Text="SharpNRIVersion $(SharpNRIVersion) does not start with the NRI version $(NriVersion): a new NRI version starts $(NriVersion).0.0 (Directory.Build.props)" />
26-
<Error Code="SHARPNRI004" Condition="!$(SharpNRIDescsVersion.StartsWith('$(NriVersion).'))"
27-
Text="SharpNRIDescsVersion $(SharpNRIDescsVersion) does not start with the NRI version $(NriVersion): a new NRI version starts $(NriVersion).0.0 (Directory.Build.props)" />
2826
</Target>
2927

3028
<!--

‎descs/SharpNRI.Descs.csproj‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<RootNamespace>SharpNRI</RootNamespace>
2121
<PackageId>SharpNRI.Descs</PackageId>
2222
<Version>$(SharpNRIDescsVersion)</Version>
23-
<Description>NRI (NVIDIA Render Interface) descriptor structs, enums and function-table layouts as plain .NET types, generated from the pinned NRI headers. No native dependency: reference this to build NRI descriptors without the library. Versioned by NRI, as every SharpNRI package: $(NriVersion).x is NRI v$(NriVersion); pin one major.</Description>
23+
<Description>NRI (NVIDIA Render Interface) descriptor structs, enums and function-table layouts as plain .NET types, generated from the pinned NRI headers. No native dependency: reference this to build NRI descriptors without the library. Versioned by NRI: $(NriVersion).x is NRI v$(NriVersion); pin one major.</Description>
2424
<PackageTags>nri;vulkan;d3d12;rhi;graphics</PackageTags>
2525
<!-- Trimming and Native AOT: declared (the trim, AOT and single-file analyzers run in every build, as errors in lint) and run by tools/consume's AOT publish -->
2626
<IsAotCompatible>true</IsAotCompatible>
@@ -60,6 +60,10 @@
6060
</ItemGroup>
6161
</Target>
6262

63+
<!-- The version's major is the NRI version the descs were generated from (Directory.Build.props: Package versions) -->
64+
<Target Name="SharpNRIDescsVersionMajor" BeforeTargets="Build;GenerateNuspec" Condition="!$(SharpNRIDescsVersion.StartsWith('$(NriVersion).'))">
65+
<Error Code="SHARPNRI004" Text="SharpNRIDescsVersion $(SharpNRIDescsVersion) does not start with the NRI version $(NriVersion): a new NRI version starts $(NriVersion).0.0 (Directory.Build.props)" />
66+
</Target>
6367

6468
<ItemGroup>
6569
<AssemblyMetadata Include="NriVersion" Value="$(NriVersion)" />

0 commit comments

Comments
 (0)