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

Initial support for generating netcore and netstandard projects #1386

Merged
merged 3 commits into from
Jan 9, 2020

Conversation

ClxS
Copy link
Contributor

@ClxS ClxS commented Jan 5, 2020

What does this PR do?

Resolves #1010

This adds support for generating netcore and netstandard projects via the dotnetframework property. It also adds support for the property used to enable WPF.

How does this PR change Premake's behavior?

I've added a new method in dotnetbase called "isNewFormatProject". This is used to control the differences between .NET Framework and netcore/netstandard projects. Rather than keep a list of all frameworks, it determines any version starting with "netcoreapp" or "netstandard" should use the new project format rules. This method will need to be updated once .NET 5 is released as it's very likely to use the netcore format.

Anything else we should know?

This changelist does not add support for targetting multiple frameworks. It should be easy to do, but I'd prefer to add it to another PR as I'm not sure how to test it.

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!

Copy link
Member

@starkos starkos left a comment

Choose a reason for hiding this comment

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

This looks good to me—thanks for the good tests, and the contribution!

@starkos starkos merged commit 63a1e5f into premake:master Jan 9, 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.

.NET Core
2 participants