Skip to content

Property page default values are not correctly display #347

@pepone

Description

@pepone

Hi,

I have created a custom property page as documented in https://github.com/dotnet/project-system/blob/main/docs/repo/property-pages/how-to-add-a-new-project-property-page.md#option-1-xaml-file-on-diskg

See: https://github.com/zeroc-ice/ice-builder-msbuild/blob/fcaa91b6c2a0ddff40b1d7931baddd914568728b/msbuild/SliceCompile.CSharp.xaml

The default value for OutputDir is defined in https://github.com/zeroc-ice/ice-builder-msbuild/blob/fcaa91b6c2a0ddff40b1d7931baddd914568728b/msbuild/zeroc.icebuilder.msbuild.csharp.props#L4-L9

When the property page is render the Output Directory field is empty and is expanded value is rendered below
property-page

I would expect that the default value $(MSBuildProjectDirectory)\generated would be rendered in the field.

Then if I add a value to any of the other properties, and reload the property page, the default value is now rendered in the field

property-page2

The only modification I see on the project file when editing the IncludeDirectories is

  <ItemDefinitionGroup Label="IceBuilder">
    <SliceCompile>
      <IncludeDirectories>slice</IncludeDirectories>
    </SliceCompile>
  </ItemDefinitionGroup>

Any ideas why the rendering of the default values is behaving differently here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions