Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork754
.NET 8 Update(2): TargetFrameworks#1728
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
.NET 8 Update(2): TargetFrameworks#1728
Uh oh!
There was an error while loading.Please reload this page.
Conversation
suppress SA1402
pCYSl5EDgo commentedJan 10, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I can build the solution and all tests are passed in dotnet CLI. |
AArnott left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for working on these changes. They all look good.
in Visual Studio 17.8.4, the build process fails at sandbox/SharedData.
I'm not seeing the failurein that project. But I do see a build failure in MessagePack.GeneratedCode.Tests when it runs from visual studio (CLI is fine, as you say). I'll look into this and loop in the roslyn team if I suspect a compiler bug.
src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/MessagePackBinaryTest.csShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
AArnott left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
One link of the chain that explains why build in VS fails is that theGeneratedMessagePackResolver type inSandbox andSharedData is being generated asinternal instead ofpublic, making it inaccessible to theMessagePack.GeneratedCode.Tests project.
AMessagePackAnalyzer.json file for each of these projects specify that this resolver should be produced publicly. And indeed,dotnet build honors this. But the VS build doesn't.
I'll keep investigating.
This comment was marked as duplicate.
This comment was marked as duplicate.
Sorry, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
pCYSl5EDgo commentedJan 10, 2024
Thank you for your investigating. |
AArnott left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I found the problem. Our in-solution .props file for activating the source generator is missing a few dependencies, causing the in-VS build to fail to deserialize the json file, and when it fails to do that, it just swallows it and proceeds with default behavior. Not great on multiple levels. I'm preparing a fix now.
pCYSl5EDgo commentedJan 10, 2024
Thank you! |
AArnott left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thank you very much for preparing these changes!
Uh oh!
There was an error while loading.Please reload this page.
TargetFramework Changes
net6.0->net6.0andnet8.0net7.0->net8.0Code Fixes
LangVersion
If
TargetFrameworkisnet8.0thenLangVersionis12else as-is.