Description
Describe the bug
This is in reference to this PR:
#1216
After installing 6.1.11-preview
and attempting to load in Visual Studio 2022 4.1, the source code generator does not load as expected:
I have traced it to the following condition found on this line:
AND '$(LangVersion)' == 'preview'
If I remove this condition, the next problem is presented.
It appears that there is an issue with *.dll
. This doesn't work:
<Analyzer Include="$(MSBuildThisFileDirectory)../../build/analyzers/cs/roslyn40/*.dll" />
But this does:
<Analyzer Include="$(MSBuildThisFileDirectory)../../build/analyzers/cs/roslyn40/InterfaceStubGeneratorV2.dll" />
Steps To Reproduce
You can use the SLN found here:
https://github.com/DragonSpark/Framework/tree/projects/Starbeam
And upgrade this project to 6.1.11-preview
.
You can see on this line that LangVersion
is set to preview
, so this should work, but doesn't.
Expected behavior
The Source Generator loads and all is happy. :)
Screenshots
NA/above.
Environment
- OS: Windows 10
- Device: Desktop
- Version:
6.1.11-preview
- Working Version:
6.1.11-preview
Additional context
I would submit a PR but I am unsure why the LangVersion
doesn't work. Better to have @sharwell take another crack at this. :)