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

updated dotnetbase to generate configurations list in opening propert… #2320

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lolrobbe2
Copy link
Contributor

…ygroup containing project properties

(fix for incorrect cofigurationmapping) (tests required)

What does this PR do?

Thanks for the contribution! Please provide a concise description of the problem this request solves.
this pr closes #2319

Are there any breaking changes? Will any existing behavior change?

Anything else we should know?

should documentation be changed to tell people about this because it is auto genrated from vs2022 onwards
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
  • Align documentation to your changes

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

…ygroup containing project properties

(fix for incorrect cofigurationmapping) (tests required)
Comment on lines 97 to 99
for prjcfg in project.eachconfig(prj) do
_p(3,'%s;',prjcfg.shortname)
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Wonder if we can use something like table.implode(arr, "before", "after", "between") to avoid extra ';'.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

il give that a try now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it worked but i can't figure out how to make it auto generate in the initial property group

--
-- Write the available configurations to have correct configuration mapping on vs2022 format and later.
--
function dotnetbase.projectConfigurations(prj)
Copy link
Contributor

Choose a reason for hiding this comment

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

That function is never called.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i know, i don't kown where to put so it gets placed in the primary property group.

<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<TargetFramework>net8.0</TargetFramework>
<Configurations>Debug;Release</Configurations>
Copy link
Contributor

Choose a reason for hiding this comment

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

"Distribution" seems missing...


configurations { "Debug","Release","Distribution"}
test.capture [[
<PropertyGroup>
Copy link
Contributor

Choose a reason for hiding this comment

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

From UT, indentation seems mismatching: check number of spaces or tab?

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 csproj has incorrect configration mappings (contains temp fix)
2 participants