-
-
Notifications
You must be signed in to change notification settings - Fork 640
updated dotnetbase to generate configurations list in opening propert… #2320
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -132,3 +132,20 @@ function suite.allowUnsafeProperty_core() | |
| </PropertyGroup> | ||
| ]] | ||
| end | ||
|
|
||
| function suite.project_element_configurations() | ||
| p.action.set("vs2022") | ||
| dotnetframework "net8.0" | ||
| prepareProjectProperties() | ||
|
|
||
| configurations { "Debug","Release","Distribution"} | ||
| test.capture [[ | ||
| <PropertyGroup> | ||
| <OutputType>Exe</OutputType> | ||
| <AppDesignerFolder>Properties</AppDesignerFolder> | ||
| <TargetFramework>net8.0</TargetFramework> | ||
| <Configurations>Debug;Release</Configurations> | ||
|
||
| <EnableDefaultCompileItems>false</EnableDefaultCompileItems> | ||
| </PropertyGroup> | ||
| ]] | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,14 @@ | |
| _p(1,'</PropertyGroup>') | ||
| end | ||
|
|
||
|
|
||
| -- | ||
| -- Write the available configurations to have correct configuration mapping on vs2022 format and later. | ||
| -- | ||
| function dotnetbase.projectConfigurations(prj) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That function is never called.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| if _ACTION >= "vs2022" and #prj.configurations > 0 then | ||
| _p(2,'<Configurations>%s</Configurations>',table.implode(prj.configurations,"", "", ";")) | ||
| end | ||
| end | ||
| -- | ||
| -- Write out the settings for the project configurations. | ||
| -- | ||
|
|
||
There was a problem hiding this comment.
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?