Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

.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

Merged

Conversation

@pCYSl5EDgo
Copy link
Contributor

@pCYSl5EDgopCYSl5EDgo commentedJan 10, 2024
edited
Loading

TargetFramework Changes

  • net6.0 ->net6.0 andnet8.0
  • Singlenet7.0 ->net8.0

Code Fixes

LangVersion

IfTargetFramework isnet8.0 thenLangVersion is12 else as-is.

@pCYSl5EDgopCYSl5EDgo mentioned this pull requestJan 10, 2024
14 tasks
@pCYSl5EDgopCYSl5EDgo changed the title.Net 8 Update: TargetFrameworks.Net 8 Update(2): TargetFrameworksJan 10, 2024
@pCYSl5EDgo
Copy link
ContributorAuthor

pCYSl5EDgo commentedJan 10, 2024
edited
Loading

I can build the solution and all tests are passed in dotnet CLI.
But in Visual Studio 17.8.4, the build process fails atMessagePack.GeneratedCode.Tests (Edit: Sorry, notat butrelated tosandbox/SharedData.)
What is happening in Visual Studio?

Copy link
Collaborator

@AArnottAArnott left a 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.

Copy link
Collaborator

@AArnottAArnott left a 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.

pCYSl5EDgo reacted with thumbs up emojipCYSl5EDgo reacted with eyes emoji
AArnott

This comment was marked as duplicate.

@pCYSl5EDgo
Copy link
ContributorAuthor

Thank you for your investigating.
Oh... They are generated asinternal... I missed it.

Copy link
Collaborator

@AArnottAArnott left a 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
Copy link
ContributorAuthor

Thank you!

Copy link
Collaborator

@AArnottAArnott left a 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!

@AArnottAArnott merged commit3245308 intoMessagePack-CSharp:developJan 10, 2024
@pCYSl5EDgopCYSl5EDgo deleted the net8-targetframeworks branchJanuary 10, 2024 16:02
@AArnottAArnott added this to thev2.6 milestoneJan 12, 2024
@pCYSl5EDgopCYSl5EDgo changed the title.Net 8 Update(2): TargetFrameworks.NET 8 Update(2): TargetFrameworksJan 21, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@AArnottAArnottAArnott approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

v3.0

Development

Successfully merging this pull request may close these issues.

2 participants

@pCYSl5EDgo@AArnott

[8]ページ先頭

©2009-2025 Movatter.jp