jaredpar / basic-reference-assemblies

Produce NuPkg files that have .NET Reference assemblies as resources
MIT License
96 stars 15 forks source link

.NET Standard 2.0 not working #37

Closed adampaquette closed 1 year ago

adampaquette commented 1 year ago

I can run your snippet inside a console app in .net core 7 but changing the framework to .net standard 2.0 crash with :

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CodeAnalysis.CSharp, Version=4.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified

I'm using Visual Studio 17.5.0 Preview 2.0 with C# Tools 4.5.0-xxx and building an incremental source generator. image

I think I need an unreleased Microsoft.CodeAnalysis.CSharp, Version=4.5.0.0? https://www.damirscorner.com/blog/posts/20221014-VersionsOfSourceGeneratorDependencies.html

Downgrading to Visual Studio 17.4.3 did not worked. image