Skip to content

Inconsistent Roslyn version in .NET SDK 10.0.100 depending on source #51946

@addabis

Description

@addabis

Describe the bug

.NET 10.0.100 SDK contains inconsistently targeted Roslyn (under <sdkroot>/Roslyn/bincore) on Ubuntu 22.04 x64, depending on how you install the SDK.

This matters because of analyzers and their references.

Is assuming that within one version of the SDK, the compiler will have same target correct?

To Reproduce

Aptitude: sudo apt install dotnet-sdk-10.0 - this contains Roslyn that targets net10.0
Web: wget https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.100/dotnet-sdk-10.0.100-linux-x64.tar.gz - this contains Roslyn that targets net9.0

Web downloads seem to be consistent across OSs.

Further details

Look at the target framework (or referenced assemblies) of <sdkroot>/Roslyn/bincore/Microsoft.CodeAnalysis.CSharp.dll.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions