Skip to content

Target .NET 6, use [SkipLocalsInit] and remove Fody.#13

Open
teo-tsirpanis wants to merge 2 commits intodamageboy:masterfrom
teo-tsirpanis:remove-fody
Open

Target .NET 6, use [SkipLocalsInit] and remove Fody.#13
teo-tsirpanis wants to merge 2 commits intodamageboy:masterfrom
teo-tsirpanis:remove-fody

Conversation

@teo-tsirpanis
Copy link

.NET 5 has introduced System.Runtime.CompilerServices.SkipLocalsInitAttribute that signals Roslyn to disable zero-initialization of variables. I bumped the target framework to .NET 6 to take advantage of this feature (hope there's no problem with that), and replaced Fody LocalsInit weaver with this attribute.

I also removed some obsolete analyzer packages, they are now built-in in the SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant