-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GenAPI generates invalid '$' token in method name #31657
Comments
cc @ViktorHofer |
Shouldn't dotnet/roslyn#67337 have fixed this already |
This reproduces in dotnet/source-build-reference-packages which is using the following version of GenAPI
This version of the SDK contains Rosyln 542fea0c2a93aacb3e8c52c2ce43e975d29832f3. I am not seeing the fix when looking at the Roslyn source. It looks like the PR was merged into main while the SDK is retrieving updates from release/dev17.6 |
Michael is right. dotnet/roslyn@e625bee which was merged three weeks ago is only part of the main branch right now. @jaredpar do you know when that specific commit will reach dotnet/sdk? I guess it's intentional that roslyn's main branch doesn't flow into dotnet/sdk? |
I assume it's a part of this #31633
Yes / No. Historically code flow from roslyn / razor to sdk has been frought with problems that stem from rationalizing the .NET SDK vs. VS schedule. It's lead to lots of missed fixes, scrambles, etc ... For last two months we've been working with the sdk team to find a sane / predictable way to manage the code flow. For 17.6 we tried a setup where we concentrated flow from our So yes this was intentional at the time but going forward wont' be. |
@MichaelSimons is this still reproducing? Any way we can force an update to ensure the issue is fixed? |
I can help with making sure that GenAPI receives that fix but I was hoping that roslyn's flow into sdk will normalize soon. Let me check again. |
dotnet/sdk retrieved new roslyn bits which includes the mentioned fix with #31838. The GenAPI bits from today which automatically flow into SBRP should already have the fix. Closing. |
Running GenAPI on Microsoft.Build,16.10.0 (via SBRP) generates the following method
This causes compiler errors:
/repos/source-build-reference-packages/artifacts/source-build/self/src/src/referencePackages/src/microsoft.build/16.10.0/lib/net5.0/Microsoft.Build.cs(2558,49): error CS1519: Invalid token '$' in class, record, struct, or interface member declaration [/repos/source-build-reference-packages/artifacts/source-build/self/src/src/referencePackages/src/microsoft.build/16.10.0/Microsoft.Build.16.10.0.csproj::TargetFramework=net5.0] [/root/.nuget/packages/microsoft.dotnet.arcade.sdk/8.0.0-beta.23168.1/tools/Build.proj]
/repos/source-build-reference-packages/artifacts/source-build/self/src/src/referencePackages/src/microsoft.build/16.10.0/lib/net5.0/Microsoft.Build.cs(2558,49): error CS1056: Unexpected character '$' [/repos/source-build-reference-packages/artifacts/source-build/self/src/src/referencePackages/src/microsoft.build/16.10.0/Microsoft.Build.16.10.0.csproj::TargetFramework=net5.0] [/root/.nuget/packages/microsoft.dotnet.arcade.sdk/8.0.0-beta.23168.1/tools/Build.proj]
The text was updated successfully, but these errors were encountered: