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

PowerShell: .xaml file extension not supported #778

Open
dtivel opened this issue Oct 28, 2024 · 0 comments
Open

PowerShell: .xaml file extension not supported #778

dtivel opened this issue Oct 28, 2024 · 0 comments
Labels
area-powershell Related to PowerShell signing bug Priority:3 Work that is nice to have

Comments

@dtivel
Copy link
Collaborator

dtivel commented Oct 28, 2024

Describe the bug
Sign CLI does not support signing PowerShell XAML files. This shows the file extensions for which PowerShell verifies signatures. Attempting to sign a simple XAML file results in HRESULT 0x800b0003 (TRUST_E_SUBJECT_FORM_UNKNOWN), which indicates that the form of the subject is not recognized. In this context, it's because the file format is not supported.

Repro steps

  1. Add .xaml to AzureSignToolSigner's supported file extensions.

  2. Save the following content to file user-interface.xaml.

    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="Hello World" Height="200" Width="300">
        <Grid>
            <Button Name="HelloButton" Width="100" Height="30" VerticalAlignment="Center" HorizontalAlignment="Center" Content="Click Me"/>
        </Grid>
    </Window>
  3. Try to sign the file.

Expected behavior
Signing succeeds.

Actual behavior
Signing fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-powershell Related to PowerShell signing bug Priority:3 Work that is nice to have
Projects
None yet
Development

No branches or pull requests

1 participant