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

[.NET 8] Warning: "Found version-specific or distribution-specific runtime identifiers" #2244

Closed
ladenedge opened this issue Jan 28, 2024 · 10 comments
Assignees
Labels
accepted Issue moved to product team backlog. Will be closed when addressed. .NET Pull requests that update .net code to be released The fix is merged, to be released.

Comments

@ladenedge
Copy link

Describe the bug

Including the Microsoft.CognitiveServices.Speech NuGet package yields a build warning.

C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(284,5):
   warning NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): centos7-x64.
   Affected libraries: Microsoft.CognitiveServices.Speech. In .NET 8.0 and higher, assets for version-specific
   and distribution-specific runtime identifiers will not be found by default.

Note this is similar (but not identical) to #2170. As I mentioned over there, instead of listing many RIDs, I am now only seeing centos7-x64.

To Reproduce

  1. Create an empty .NET 8 Console App.
  2. Install the Microsoft.CognitiveServices.Speech NuGet package.
  3. Build the solution.

Expected behavior

No warnings!

Version of the Cognitive Services Speech SDK

Microsoft.CognitiveServices.Speech v1.34.1.

Platform, Operating System, and Programming Language

  • OS: Windows
  • Hardware: x64
  • Programming language: C#
  • Visual Studio 2022, .NET 8

Thanks for your time!

Copy link

This item has been open without activity for 19 days. Provide a comment on status and remove "update needed" label.

@github-actions github-actions bot added the update needed For items that are in progress but have not been updated label Feb 16, 2024
@ladenedge
Copy link
Author

ladenedge commented Feb 20, 2024

Still present in 1.35.0.

These are the only warnings in my solution. :(

image

Would a PR make sense? (I'm not sure if this project accepts them from randos like me..?)

@github-actions github-actions bot removed the update needed For items that are in progress but have not been updated label Feb 21, 2024
@pankopon
Copy link
Contributor

pankopon commented Mar 6, 2024

This appears due to RHEL/CentOS 7 specific binaries under runtimes\centos7-x64 that we have to keep around at least until the CentOS 7 EOL or so. As documented for this breaking change in .NET 8, one workaround is to set UseRidGraph true in the project file.

@pankopon pankopon self-assigned this Mar 6, 2024
@pankopon pankopon added wontfix This will not be worked on pending close Closed soon without new activity .NET Pull requests that update .net code labels Mar 6, 2024
@ladenedge
Copy link
Author

Okay, thank you for the update!

@exedor
Copy link

exedor commented Mar 10, 2024

I'm running into the same thing with a fairly large project with many thousands of lines of code. It's the only warning I have in the project :) Are there any side-effects to the above mentioned work around?

@pankopon
Copy link
Contributor

@exedor The linked .NET 8 documentation does mention that

The long-term goal is to stop updating the RID graph, stop reading it, and eventually remove it.

but the workaround should be good at least for the .NET 8 lifetime, and hopefully by the end of it we will have removed the binaries that trigger the warning.

Copy link

github-actions bot commented Apr 2, 2024

This item has been open without activity for 19 days. Provide a comment on status and remove "update needed" label.

@github-actions github-actions bot added the update needed For items that are in progress but have not been updated label Apr 2, 2024
@pankopon
Copy link
Contributor

Internal work item ref. 6718573. A possible target is soon after the CentOS 7 EOL on June 30.

@pankopon pankopon added accepted Issue moved to product team backlog. Will be closed when addressed. and removed wontfix This will not be worked on pending close Closed soon without new activity update needed For items that are in progress but have not been updated labels Apr 12, 2024
Copy link

github-actions bot commented May 1, 2024

This item has been open without activity for 19 days. Provide a comment on status and remove "update needed" label.

@github-actions github-actions bot added the update needed For items that are in progress but have not been updated label May 1, 2024
@pankopon pankopon added to be released The fix is merged, to be released. and removed update needed For items that are in progress but have not been updated labels Jul 3, 2024
@pankopon
Copy link
Contributor

This has been fixed in the Speech SDK 1.40.0 release out now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Issue moved to product team backlog. Will be closed when addressed. .NET Pull requests that update .net code to be released The fix is merged, to be released.
Projects
None yet
Development

No branches or pull requests

3 participants