stride icon indicating copy to clipboard operation
stride copied to clipboard

refactor: Modernize samples

Open Kryptos-FR opened this issue 9 months ago • 2 comments

PR Details

Modernize the samples.

I did not enable the nullable feature since it isn't the case yet in the whole codebase. I also excluded the C# tutorials projects (beside using file scope namespaces) because we might to use a different style for them that is more beginner friendly.

Types of changes

  • [x] Docs change / refactoring / dependency upgrade
  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • [ ] My change requires a change to the documentation.
  • [ ] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.
  • [ ] I have built and run the editor to try this change out.

Kryptos-FR avatar Mar 07 '25 13:03 Kryptos-FR

We have a problem: the integrated code editor in the GameStudio is old and doesn't understand modern C#. It's thinking all modern lines of code are incorrect.

For example : image

Therefore, we can't modernize the samples before we update (or get rid of) the code editor.

Kryptos-FR avatar Mar 07 '25 17:03 Kryptos-FR

the code editor uses roslyn of net6 the latest roslynpad would understand it

but updating it isnt as easy..

IXLLEGACYIXL avatar Mar 07 '25 17:03 IXLLEGACYIXL