Skip to content

Build Warning CS9057 with .NET SDK 9.0.111 #335

@vincentlabelle

Description

@vincentlabelle

Problem

I get a build warning when I have a dependency on OllamaSharp 5.4.8 with .NET SDK 9.0.111.

The warning message is the following: CSC : warning CS9057: The analyzer assembly '/home/vlabelle/.nuget/packages/ollamasharp/5.4.8/analyzers/dotnet/cs/OllamaSharp.SourceGenerators.dll' references version '4.14.0.0' of the compiler, which is newer than the currently running version '4.12.0.0'.

I'm uncertain, but I believe it might be due to the dependency on Microsoft.CodeAnalysis.CSharp which doesn't specify a version.

Reproduction Steps

  1. Install .NET SDK 9.0.111
  2. dotnet new console
  3. dotnet add package OllamaSharp -v 5.4.8
  4. dotnet build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions