TerminalGuiDesigner icon indicating copy to clipboard operation
TerminalGuiDesigner copied to clipboard

Weird errors with v1 and v2 when installling from nuget.

Open Shadowblitz16 opened this issue 4 months ago • 1 comments

@ Installing TerminalGuiDesigner in EditorX started
Running restore with 16 concurrent jobs.
Reading project file /home/shadowblitz16/Documents/source/cs/EditorX/EditorX/EditorX.csproj.
The restore inputs for 'EditorX' have changed. Continuing restore.
Restoring packages for /home/shadowblitz16/Documents/source/cs/EditorX/EditorX/EditorX.csproj...
  CACHE https://api.nuget.org/v3/vulnerabilities/index.json
  CACHE https://api.nuget.org/v3-vulnerabilities/2025.11.06.05.42.07/vulnerability.base.json
  CACHE https://api.nuget.org/v3-vulnerabilities/2025.11.06.05.42.07/2025.11.07.05.42.11/vulnerability.update.json
Package TerminalGuiDesigner 2.0.0-develop.4538 is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Package TerminalGuiDesigner 2.0.0-develop.4538 supports: net8.0 (.NETCoreApp,Version=v8.0) / any
Invalid project-package combination for TerminalGuiDesigner 2.0.0-develop.4538. DotnetToolReference project style can only contain references of the DotnetTool type 
Package 'TerminalGuiDesigner 2.0.0-develop.4538' has a package type 'DotnetTool' that is not supported by project '/home/shadowblitz16/Documents/source/cs/EditorX/EditorX/EditorX.csproj'.
NuGet.Packaging.Core.PackagingException: Package 'TerminalGuiDesigner 2.0.0-develop.4538' has a package type 'DotnetTool' that is not supported by project '/home/shadowblitz16/Documents/source/cs/EditorX/EditorX/EditorX.csproj'.
   at JetBrains.ProjectModel.NuGet.Operations.NuGetPatchedInstallationCompatibility.EnsurePackageCompatibility(NuGetProject nuGetProject, PackageIdentity packageIdentity, NuspecReader nuspecReader)
   at JetBrains.ProjectModel.NuGet.Operations.NuGetPatchedInstallationCompatibility.EnsurePackageCompatibility(NuGetProject nuGetProject, INuGetPathContext pathContext, IEnumerable`1 nuGetProjectActions, RestoreResult restoreResult)
   at NuGet.PackageManagement.NuGetPackageManager.PreviewBuildIntegratedProjectsActionsAsync(IReadOnlyCollection`1 buildIntegratedProjects, Dictionary`2 nugetProjectActionsLookup, PackageIdentity packageIdentity, IReadOnlyCollection`1 primarySources, INuGetProjectContext nuGetProjectContext, VersionRange versionRange, String newMappingID, String newMappingSource, CancellationToken token)
   at NuGet.PackageManagement.NuGetPackageManager.PreviewBuildIntegratedProjectActionsAsync(BuildIntegratedNuGetProject buildIntegratedProject, IEnumerable`1 nuGetProjectActions, INuGetProjectContext nuGetProjectContext, CancellationToken token)
   at NuGet.PackageManagement.NuGetPackageManager.PreviewInstallPackageAsync(NuGetProject nuGetProject, PackageIdentity packageIdentity, ResolutionContext resolutionContext, INuGetProjectContext nuGetProjectContext, IEnumerable`1 primarySources, IEnumerable`1 secondarySources, VersionRange versionRange, CancellationToken token)
   at NuGet.PackageManagement.NuGetPackageManager.PreviewInstallPackageAsync(NuGetProject nuGetProject, PackageIdentity packageIdentity, ResolutionContext resolutionContext, INuGetProjectContext nuGetProjectContext, IEnumerable`1 primarySources, IEnumerable`1 secondarySources, CancellationToken token)
   at NuGet.PackageManagement.NuGetPackageManager.InstallPackageAsync(NuGetProject nuGetProject, PackageIdentity packageIdentity, ResolutionContext resolutionContext, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, IEnumerable`1 primarySources, IEnumerable`1 secondarySources, CancellationToken token)
   at NuGet.PackageManagement.NuGetPackageManager.InstallPackageAsync(NuGetProject nuGetProject, PackageIdentity packageIdentity, ResolutionContext resolutionContext, INuGetProjectContext nuGetProjectContext, IEnumerable`1 primarySources, IEnumerable`1 secondarySources, CancellationToken token)
   at JetBrains.ProjectModel.NuGet.Operations.NuGetInstallOperation.<>c__DisplayClass7_0.<<InstallAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at JetBrains.ProjectModel.NuGet.Operations.NuGetInstallOperation.InstallInternal(IProject project, String packageId, String packgeUserStr, NuGetFeedContext feedContext, Int32 nestedLevel, NuGetNotificationMode mode, NuGetOperationReporter reporter, Func`3 nativeInstall, NuGetProject givenNuGetProject)

@ Installing TerminalGuiDesigner in EditorX finished (0.012 sec)
[Notification][Install] Install failed (project: EditorX, package: TerminalGuiDesigner v2.0.0-develop.4538)
Package 'TerminalGuiDesigner 2.0.0-develop.4538' has a package type 'DotnetTool' that is not supported by project '/home/shadowblitz16/Documents/source/cs/EditorX/EditorX/EditorX.csproj'.

Shadowblitz16 avatar Nov 07 '25 07:11 Shadowblitz16

This is a dotnet tool not a nuget package dependency that you add to your project.

Use

dotnet tool install --global TerminalGuiDesigner --prerelease

Then make sure the version number of the tool matches the v2 nuget dependency you are using too i.e. install terminal gui v2 library should be 4538 (because of the ongoing breaking changes in v2 - each v2 version of the designer tool is tied to specific release).

Run the tool from command line by typing TerminalGuiDesigner

tznind avatar Nov 07 '25 08:11 tznind