Skip to content

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.

@lolrobbe2 lolrobbe2 requested a review from Jarod42 November 8, 2024 21:03
<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?

Copy link
Member

@samsinsane samsinsane left a comment

Choose a reason for hiding this comment

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

As you've been told in your other PR multiple times, use spaces in lists and function arguments. a, b, c not a,b,c.

@lolrobbe2
Copy link
Contributor Author

yea sorry for the spacing will try and fix that this week!

@lolrobbe2
Copy link
Contributor Author

image
now the indentation is there but i can't see exactly what is wrong!

@lolrobbe2
Copy link
Contributor Author

my brain was having some ID10T erros :)

@samsinsane samsinsane merged commit fc06984 into premake:master Nov 22, 2024
19 checks passed
@lolrobbe2 lolrobbe2 deleted the dotnet-configurations branch November 22, 2024 16:53
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)

3 participants