HavenDV / H.Generators.Extensions

A set of extensions to simplify the code of generators
MIT License
11 stars 3 forks source link

Include Microsoft.CSharp and System.Runtime.Serialization.Primitives in _SystemLibs #3

Closed s-tarasov closed 1 year ago

s-tarasov commented 1 year ago

For example https://nuget.info/packages/H.NSwag.Generator/13.17.0.67

In my scenario these libraries dont break source generator, but break comipler server build optimization.

CompilerServer: server failed - server rejected the request due to analyzer / generator issues 'analyzer assembly 'C:\Users\User\.nuget\packages\st.nswag.serversourcegenerator\0.0.3\analyzers\dotnet\cs\Microsoft.CSharp.dll' has MVID '77c6c890-19ac-4339-a953-ed9afe11ea30' but loaded assembly 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has MVID '7d43b22e-b00e-43cd-8cb6-b2ca6ec30242', analyzer assembly 'C:\Users\User\.nuget\packages\st.nswag.serversourcegenerator\0.0.3\analyzers\dotnet\cs\System.Runtime.Serialization.Primitives.dll' has MVID '81488324-7349-452a-8e77-8ef65b7bec21' but loaded assembly 'System.Runtime.Serialization.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has MVID 'f7705c94-de51-4dcc-a98b-7535038b68ba'' - 9dfabba5-778e-4c05-9c6d-8af12a6345cd

HavenDV commented 1 year ago

I have released new versions of H.Generators.Extensions 1.8.3 and H.NSwag.Generator 13.17.0.68 with this fix, please check it out

s-tarasov commented 1 year ago

Thanks a lot, problem solved!