Find-PSResource IncludeDependencies incorrectly parses VersionRange
Los mantenedores suelen responder en 1 día
@anamnavi ya está trabajando en esto.
Desde el 6/8/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
Steps to reproduce
Package is published with nuspec specifying
<dependencies>
<dependency id="MyPackage" version="1.0.0" />
</dependencies>
Find-PSResource incorrectly sets the maximum version as 1.0.0 too, resulting in Save-PSResource not finding "MyPackage" with version 2.0.0.
This goes against MSFT documentation https://learn.microsoft.com/en-us/nuget/concepts/package-versioning?tabs=semver20sort#version-ranges
Find-Module and Save-Module work correctly.
Tested with Azure and locally hosted https://learn.microsoft.com/en-us/nuget/hosting-packages/nuget-server
(Find-PSResource -Name MyPackage -Repository LocalPSRepo -IncludeDependencies).Dependencies.VersionRange
Expected behavior
IsFloating : False
MinVersion : 1.0.0
MaxVersion : // Maybe this shouldn't exist at all
HasLowerBound : True
IsMinInclusive : True
HasUpperBound : False
IsMaxInclusive : False //Not sure on this
HasLowerAndUpperBounds : True
Float :
OriginalString : 1.0.0
Actual behavior
IsFloating : False
MinVersion : 1.0.0
MaxVersion : 1.0.0
HasLowerBound : True
IsMinInclusive : True
HasUpperBound : True
IsMaxInclusive : True
HasLowerAndUpperBounds : True
Float :
OriginalString : 1.0.0
Environment data
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Binary 1.2.0 Microsoft.PowerShell.PSResourceGet {Compress-PSRes…
Name Value
---- -----
PSVersion 7.6.0
PSEdition Core
GitCommitId 7.6.0
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
- Lenguaje dominante
- C#
- Estrellas
- 577
- Forks
- 114
- Merge medio
- 23 h 17 min
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PowerShell/PSResourceGet
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectoryAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
PowerShell/PSResourceGet#2056 ·
Los mantenedores suelen responder en 1 día
-
feature_request
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
PowerShell/PSResourceGet#2013 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Needs-Triage
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
PowerShell/PSResourceGet#2060 ·
Los mantenedores suelen responder en 1 día
-
Needs-Triage
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
PowerShell/PSResourceGet#2059 ·
Los mantenedores suelen responder en 1 día
-
Use GitHub app token to authenticate to GitHub resourcesPosiblemente ocupada @adityapatwardhan la tomó hace 12 días. Abiertofeature_request Needs-Triage
PowerShell/PSResourceGet#2057 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de PowerShell/PSResourceGet
Issues similares
-
example mod Controller SupportAbiertoNEW ISSUE Requestor-TML Maintainers Type: Change/Feature Request
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
tModLoader/tModLoader#5476 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
521xueweihan/HelloGitHub#3845 · 1 comentario ·
-
possible bug
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
-
documentation task
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
lay295/TwitchDownloader#1675 ·