Skip to content
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

Update roslyn #3431

Merged
merged 5 commits into from
Sep 20, 2024
Merged

Update roslyn #3431

merged 5 commits into from
Sep 20, 2024

Conversation

perkinslr
Copy link
Contributor

Changes

Downloads the updated roslyn compiler from CombatExtended-Continued/roslyn and uses it to compile CE

References

Links to the associated issues or other related pull requests, e.g.

Reasoning

The mono project is in flux, so the embedded version of the roslyn compiler is stuck on C# 9. The external roslyn compiler supports C# 13. This lets us use C# 13 syntax in CE when beneficial.

Alternatives

Disable automatic building of PRs and use dotnet to compile.
Stick with C# 9 only.
Reimplement the csc frontend (it's actually fairly small, similar to the publicizer stuff)

Testing

Check tests you have performed:

  • Compiles without warnings
  • Game runs without errors
  • (For compatibility patches) ...with and without patched mod loaded
  • Playtested a colony (specify how long)

@perkinslr perkinslr requested review from a team as code owners September 18, 2024 18:37
Copy link

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-10928141611.zip

@github-actions github-actions bot added the Download in Comments This PR has a zipfile download available. label Sep 18, 2024
Copy link

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-10928651183.zip

Copy link
Contributor

@N7Huntsman N7Huntsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't speak to efficacy, but it does at least look to do as described.

@perkinslr perkinslr merged commit bc9787e into Development Sep 20, 2024
3 checks passed
@perkinslr perkinslr deleted the update-roslyn branch September 20, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Download in Comments This PR has a zipfile download available.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants