Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package versions 1.1.0 will not install on .NET Framework #125

Open
matt-hensley opened this issue Nov 20, 2024 · 1 comment
Open

Package versions 1.1.0 will not install on .NET Framework #125

matt-hensley opened this issue Nov 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@matt-hensley
Copy link
Contributor

Both base and full distribution package versions 1.1.0 will not install on .NET Framework.

This is a known issue and is being investigated.

Error seen in package manager console:

PM> install-package Grafana.OpenTelemetry.Base


Attempting to gather dependency information for package 'Grafana.OpenTelemetry.Base.1.1.0' with respect to project 'NetFxDistroDemo', targeting '.NETFramework,Version=v4.8.1'
Gathering dependency information took 2.33 sec
Attempting to resolve dependencies for package 'Grafana.OpenTelemetry.Base.1.1.0' with DependencyBehavior 'Lowest'
install-package : Unable to resolve dependency 'OpenTelemetry.Instrumentation.GrpcNetClient'. Source(s) used: 
'nuget.org', 'Microsoft Visual Studio Offline Packages'.
At line:1 char:1
+ install-package Grafana.OpenTelemetry.Base
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackage 
   Command
@matt-hensley matt-hensley added the bug Something isn't working label Nov 20, 2024
@matt-hensley matt-hensley self-assigned this Nov 20, 2024
@matt-hensley matt-hensley pinned this issue Nov 20, 2024
@matt-hensley
Copy link
Contributor Author

This is an issue specific to the previous project format that relied on packages.config. The csproj format was changed in 2017, and uses different package resolution rules. The new resolution rules allow for stable packages that have pre-release dependencies, while the older format will not install any pre-release dependencies unless the package is also marked as pre-release.

All .NET projects use the new format, and .NET Framework projects may be upgraded to the newer format.

Please reply to this issue if you encounter this problem with your projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant