Skip to content

Commit a5331cf

Browse files
committed
fix: Remove RuntimeIdentifiers from .csproj to fix NuGet tool installation
The DotnetToolSettings.xml Version="2" format was preventing installation on .NET SDK 9.0.306 (requires 9.0.400+). Removing RuntimeIdentifiers from the .csproj files forces Version="1" format which is compatible with SDK 9.0.306. Changes: - Remove <RuntimeIdentifiers> property from all tool projects - RuntimeIdentifiers are still specified via -r flag in publish-self-contained.sh - NuGet packages now generate DotnetToolSettings.xml Version="1" - Tools can now be installed with: dotnet tool install -g <tool> --version <version> This fixes the issue introduced when the publish loop was removed from pack.sh in PR #87. The simplified pack approach triggered Version="2" format because dotnet pack saw RuntimeIdentifiers in the .csproj files. Fixes installation error: 'The settings file in the tool's NuGet package is invalid: Format version is higher than supported. This tool may not be supported in this SDK version.'
1 parent 0a9c6de commit a5331cf

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/cycod/cycod.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<OutputType>Exe</OutputType>
1212

1313
<!-- Cross-platform support -->
14-
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
15-
14+
<!-- RuntimeIdentifiers removed - specified on command line during publish -->
15+
1616
<!-- NuGet Package Properties -->
1717
<PackageId>CycoD</PackageId>
1818
<Authors>Rob Chambers</Authors>

src/cycodgr/cycodgr.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<OutputType>Exe</OutputType>
1313

1414
<!-- Cross-platform support -->
15-
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
16-
15+
<!-- RuntimeIdentifiers removed - specified on command line during publish -->
16+
1717
<!-- NuGet Package Properties -->
1818
<PackageId>CycoDgr</PackageId>
1919
<Authors>Rob Chambers</Authors>

src/cycodmd/cycodmd.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<OutputType>Exe</OutputType>
1313

1414
<!-- Cross-platform support -->
15-
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
16-
15+
<!-- RuntimeIdentifiers removed - specified on command line during publish -->
16+
1717
<!-- NuGet Package Properties -->
1818
<PackageId>CycoDmd</PackageId>
1919
<Authors>Rob Chambers</Authors>

src/cycodt/cycodt.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<OutputType>Exe</OutputType>
1212

1313
<!-- Cross-platform support -->
14-
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
15-
14+
<!-- RuntimeIdentifiers removed - specified on command line during publish -->
15+
1616
<!-- NuGet Package Properties -->
1717
<PackageId>CycoDt</PackageId>
1818
<Authors>Rob Chambers</Authors>

0 commit comments

Comments
 (0)