Skip to content

Conversation

@ClxS
Copy link
Contributor

@ClxS ClxS commented Dec 7, 2020

What does this PR do?

Moves the location of AllowUnsafeBlocks into the top-level project settings on net format C# projects.
Closes #1549

How does this PR change Premake's behavior?

Should not affect existing .NET Framework projects. Will affect .NET Standard, .NET Core, and .NET projects by fixing conditionally block placed AllowUsingBlocks, which were being ignored by the compiler.

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits

You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!

@ClxS ClxS changed the title AllowUnsafeBlocks will now be a project level property in new format (Closes #1549) AllowUnsafeBlocks will now be a project level property in new format Dec 7, 2020
@samsinsane samsinsane merged commit 0f54214 into premake:master Dec 8, 2020
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.

Current location of AllowUnsafeBlocks (clr "unsafe") does not work in .NET Core

2 participants