stride icon indicating copy to clipboard operation
stride copied to clipboard

Module initializer

Open cNoNim opened this issue 2 years ago • 1 comments

PR Details

Migrate to C# [ModuleInitializer].

Description

Remove Strice.Core.ModuleInitializerAttribute. Import System.Runtime.CompilerServices.

Related Issue

https://github.com/stride3d/stride/issues/1836

Motivation and Context

C# 9 has support of [ModuleInitializer] https://learn.microsoft.com/ru-ru/dotnet/csharp/language-reference/proposals/csharp-9.0/module-initializers. And as part of https://github.com/stride3d/stride/issues/1835 it's good idea to migrate to them.

Types of changes

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

Checklist

  • [x] My change requires a change to the documentation.
  • [ ] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.

cNoNim avatar Sep 24 '23 18:09 cNoNim

Create Draft PR for progress overview. I think this is a breaking change. And we need to resolve a number of issues, which I will write about a little later. Now I will prepare a separate PR with a fix for AssemblyProcessor compilation.

cNoNim avatar Sep 24 '23 18:09 cNoNim