GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove a few dependencies from unity package by AArnott · Pull Request #1497 · MessagePack-CSharp/MessagePack-CSharp

Conversation

@AArnott

@AArnott AArnott commented Sep 7, 2022

Copy link
Copy Markdown
Collaborator

Unity 2021.2 and later already include these assemblies, and our inclusion of them causes failures because unity will prefer the 'app-local' copy over its own.

Fixes #1475

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@AArnott
Remove a few dependencies from unity package
78dcd86
Unity 2021.2 and later already include these assemblies, and our inclusion of them causes failures because unity will prefer the 'app-local' copy over its own.

Fixes MessagePack-CSharp#1475
@AArnott AArnott added this to the v2.5 milestone Sep 7, 2022
@AArnott
AArnott requested a review from neuecc September 7, 2022 22:14
@AArnott

AArnott commented Sep 7, 2022

Copy link
Copy Markdown
Collaborator Author

@joshpeterson @MichalPetryka I'd welcome your confirmation that this is the right fix.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AArnott AArnott linked an issue Sep 7, 2022 that may be closed by this pull request
Unity 2022.1.10 MessagePack 2.4.35 IL2CPP build Issues #1475
Closed
@MichalPetryka

MichalPetryka commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

Won't this break the package on Unity older than 2021.2? I think that 2 separate packages would be needed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AArnott

AArnott commented Sep 7, 2022

Copy link
Copy Markdown
Collaborator Author

Thanks for reviewing, @MichalPetryka.
Perhaps you're right. Which versions of unity are still supported, and how popular are they?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AArnott
Fix incremental build in unity build scripts
fd08b2a
@AArnott
AArnott force-pushed the fix1475 branch from 9661748 to fd08b2a Compare September 7, 2022 22:21
@joshpeterson

joshpeterson commented Sep 8, 2022

Copy link
Copy Markdown

This makes sense to me. I'm not sure how to check for the Unity version in MessagePack though. Is it possible to release two different packages?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AArnott

AArnott commented Sep 8, 2022

Copy link
Copy Markdown
Collaborator Author

Is it possible to release two different packages?

Yes, probably. I'm no unity expert (I don't use it myself) and the repo's primary author has been unavailable for a while. If someone else can improve on this, I'd appreciate it. Otherwise I'll get to it when I can.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AArnott

AArnott commented Sep 8, 2022

Copy link
Copy Markdown
Collaborator Author

Our unity build agent is failing at this point anyway, so we can't produce any unitypackage at the moment.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jsteinich

jsteinich commented Sep 8, 2022

Copy link
Copy Markdown
Contributor

Perhaps you're right. Which versions of unity are still supported, and how popular are they?

Unity 2020 LTS (2020.3.x) still has support for another 6-9 months.
Unity 2021 LTS (2021.3.x) is the current active LTS release.
Unity 2022 is the actively developed version.

Should probably aim to have official support for any LTS that is still supported. Supporting the active version is definitely nice, but official support for it probably isn't required (I've seen other libraries take that approach).

AArnott reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jsteinich

jsteinich commented Sep 8, 2022

Copy link
Copy Markdown
Contributor

Our unity build agent is failing at this point anyway, so we can't produce any unitypackage at the moment.

I'm not that familiar with how the builds are setup for this project, but one option would be to move towards Game CI. They have prebuilt GitHub actions, but could also use their docker images within Azure Pipelines.
This would also make testing on different versions easier as they publish docker images for each Unity version.

AArnott reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

neuecc
neuecc reviewed Sep 30, 2022
View reviewed changes

@neuecc neuecc left a comment

Copy link
Copy Markdown
Member

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 believe it is especially important to retain lower-level support because the development cycle of a game is several years long and they cannot increase the engine version too much.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@AArnott

AArnott commented Oct 2, 2022

Copy link
Copy Markdown
Collaborator Author

@neuecc What would you recommend? Should we abandon the PR?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@neuecc

neuecc commented Oct 2, 2022

Copy link
Copy Markdown
Member

I see, but is this only affecting the build machine (or local)?
If it doesn't seem to affect the packages to be distributed or the git UPM, it may be safe to merge.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AArnott

AArnott commented Oct 3, 2022

Copy link
Copy Markdown
Collaborator Author

If it doesn't seem to affect the packages to be distributed or the git UPM, it may be safe to merge.

It removes files from the unity package we build. This is required so that newer unity clients don't malfunction on the dll's that we ship but are also now part of their platform.

If a game developer is stuck on one unity version for years, can't they also lock down on a particular major.minor version of messagepack so that they keep working, allowing future minor releases of messagepack to evolve to work by default in newer unity clients?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jsteinich

jsteinich commented Oct 3, 2022

Copy link
Copy Markdown
Contributor

If a game developer is stuck on one unity version for years, can't they also lock down on a particular major.minor version of messagepack so that they keep working, allowing future minor releases of messagepack to evolve to work by default in newer unity clients?

I mostly agree with this sentiment; however, I have experienced / can think of a couple cases where that may not hold true:

  • Other technologies continue to advance and can sometimes force/strongly encourage updates.
    • Some of our developers are switching to M1 macs. .net only has native support with .net 6.x. Older MPC versions don't work correctly on .net 6.x. Hence wanting to upgrade to a newer MessagePack version.
  • An established project (on an older Unity version) is looking to add MessagePack for new functionality. A developer will naturally look to start at the latest version, but will be forced to find and use an older version.

Despite those points, this is an open source project and compromises likely need to be made.

AArnott reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@neuecc

neuecc commented Oct 4, 2022

Copy link
Copy Markdown
Member

Hmmm...I see...it's a little too early to disappear completely.
How about a build of two packages like this?

[MessagePack.Unity.2.4.35.unitypackage]
[MessagePack.Unity.2.4.35.netstandard21.unitypackage]

AArnott and MihaPro-CarX reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@neuecc

neuecc commented Oct 26, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

@AArnott
Recently I was organizing packages for Unity at several libraries and changed my mind.
I think we can DROP support for 2020 in future updates (still LTS, but OK).
Minimum support version is 2021.3.
This way, only C# 9.0 and netstandard2.1 will be supported.
First of all, this PR is ACCEPT!

And the code can be nullable-enabled.
We will need to enable the warning suppression option for Unity, which I will set up if it becomes necessary.

I apologize for the delay in reporting on the policy and regarding the hesitation.

AArnott reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AArnott

AArnott commented Nov 19, 2022

Copy link
Copy Markdown
Collaborator Author

/azp run

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AArnott
AArnott merged commit 22632c0 into MessagePack-CSharp:develop Nov 19, 2022
@AArnott
AArnott deleted the fix1475 branch November 20, 2022 21:26
@AArnott

AArnott commented Nov 20, 2022

Copy link
Copy Markdown
Collaborator Author

@neuecc This PR broke the unity build in our CI because it was still building with Unity 2019. When I update it to 2021.3 in #1530, it fails with new errors that I don't know how to fix. Can you take a look?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AArnott AArnott mentioned this pull request Nov 20, 2022
Build on Unity 2021.3 agent #1530
Closed
@neuecc

neuecc commented Nov 21, 2022

Copy link
Copy Markdown
Member

ok, i'll check soon.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AArnott AArnott mentioned this pull request Dec 2, 2022
Build on Unity 2021.3 agent #1537
Merged
@chung08061995

chung08061995 commented Apr 26, 2023

Copy link
Copy Markdown

Hi, I have a problem. When i build mono standalone window i can send to socket normally, but IL2CPP didn't work!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dependabot dependabot Bot mentioned this pull request Sep 21, 2025
Bump MessagePack from 2.1.115 to 2.5.187 starchen/Brighter#4
Closed
This was referenced Jun 11, 2026
Bump MessagePack from 3.1.6 to 3.1.7 geekswagg/EFCoreSecondLevelCacheInterceptor#1
Closed
Bump MessagePack from 1.7.3.7 to 2.5.301 KikeE36/MasterMemory#1
Open
Bump the nuget group with 2 updates korgano/CustomAmmoCategories#1
Open
Bump the nuget group with 1 update IntelIntent/BinaryPack#1
Open
Bump MessagePack from 2.2.85 to 2.5.301 shahabganji/EasyCompressor#1
Open
Bump MessagePack from 1.9.11 to 2.5.301 shahabganji/SmartEnum#1
Open
Bump MessagePack from 2.3.85 to 2.5.301 gengle/MessagePipe#3
Closed
Bump the nuget group with 1 update pa-0/ahk.ucrio#1
Open
Bump MessagePack from 2.1.90 to 2.5.301 sniten/psi#2
Open
Bump the nuget group with 1 update abri-herdmaster/HerdMASTER.Dotmim.Sync#5
Open
Bump MessagePack from 2.1.90 to 2.5.301 Cysharp/Ulid#113
Open
Bump MessagePack from 2.2.113 to 2.5.301 x0oo11235oo0x/dotnet-algorand-sdk#1
Open
Bump MessagePack and System.Memory nmaier/NMaier.Serializers#1
Open
Bump MessagePack from 2.3.85 to 2.5.301 curiosity-ai/wiktionary#2
Open
Bump MessagePack from 2.1.115 to 2.5.301 generatives/VoidTraveler#1
Open
Bump MessagePack and System.Memory Philippe-Laval/catalyst#1
Open
Bump MessagePack from 2.1.115 to 2.5.301 starchen/Brighter#5
Open
Bump the nuget group with 1 update pawelkasperek/AlterNats#1
Open
Bump MessagePack from 1.9.11 to 2.5.301 ConnectionMaster/dd-trace-dotnet#788
Open
Bump MessagePack from 1.9.3 to 2.5.301 IllusionMods/ZipStudio#5
Merged
This was referenced Jun 26, 2026
Bump MessagePack from 2.3.112 to 2.5.301 nanoframework/nf-Visual-Studio-extension#936
Closed
Bump the nuget group with 3 updates infinispan/Infinispan.Hotrod.Core#56
Open
@dependabot dependabot Bot mentioned this pull request Sep 15, 2026
Bump MessagePack from 1.9.11 to 2.5.301 f2calv/vs-nuget-issue#1
Closed
This was referenced Oct 19, 2026
Bump MessagePack from 2.3.85 to 2.5.303 gengle/MessagePipe#4
Open
Bump the nuget group with 1 update aetos382/MemoryPack#1
Open
Bump MessagePack from 2.2.85 to 2.5.303 umbraco/Umbraco.Cms.Integrations#347
Open
Bump MessagePack from 2.3.112 to 2.5.303 nanoframework/nf-Visual-Studio-extension#956
Closed
Bump MessagePack to 2.5.303 Senparc/Senparc.CO2NET#347
Open
Bump the nuget group with 5 updates maximumstock/exilence-next#4
Open
@dependabot dependabot Bot mentioned this pull request Nov 7, 2026
Bump MessagePack from 1.7.3.4 to 2.5.303 automatica-core/automatica#136
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@neuecc neuecc neuecc left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

v2.5

Development

Successfully merging this pull request may close these issues.

Unity 2022.1.10 MessagePack 2.4.35 IL2CPP build Issues

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@AArnott @MichalPetryka @joshpeterson @jsteinich @neuecc @chung08061995
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.