Skip to content

Analyzers assembly needs to increment version in every NuGet package #204

@KirillOsenkov

Description

@KirillOsenkov

The VSMac build started getting a message from Roslyn:

CompilerServer: server failed - server rejected the request due to analyzer / generator issues 'analyzer assembly '/Users/kirill/.nuget/packages/microsoft.visualstudio.composition.analyzers/16.9.13/analyzers/dotnet/Microsoft.VisualStudio.Composition.Analyzers.dll' has MVID '3edb20be-00d4-43c3-a073-2a0c7dd2b274' but loaded assembly 'Microsoft.VisualStudio.Composition.Analyzers, Version=16.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has MVID 'de5014dd-66c4-4da2-8f04-b8bd915cba5b''

It turns out different projects in our build use two versions of the MS.VS.Composition package: 16.9.6-alpha and 16.9.13.

We can unify the versions, but @sharwell points out that the analyzer is authored incorrectly:

There is an authoring problem with the analyzer. The two different versions failed to use two different strong names (every package build for an analyzer needs to update the version number).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions