Skip to content

ReferenceTrimmer is unable to handle XAML compilation #110

@vikukush

Description

@vikukush

ReferenceTrimmer reports that Aero2 reference can be removed:

CSC : warning RT0001: Reference PresentationFramework.Aero2, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL can be removed [F:\dbs\el\l23t\Source\Frameworks\DevTools\VS2022\UrlProtocolHandler\UrlProtocolHandler.csproj::TargetFramework=net48]
But if you actually remove it, then XAML compilation in _CompileTemporaryAssembly which uses csc.exe CoreCompile task starts failing:

F:\dbs\el\l23t\Source\Frameworks\DevTools\Shared\ProjectSystem\UIStyles\ToolsStandardStyles.xaml(95,26): error MC3074: The tag 'DataGridHeaderBorder' does not exist in XML namespace 'clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2'. Line 95 Position 26. [F:\dbs\el\l23t\Source\Frameworks\DevTools\VS2022\UrlProtocolHandler\UrlProtocolHandler.csproj::TargetFramework=net48]
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions