Skip to content

Workaround for Windows 7 #913

@i486

Description

@i486

I recently came across this nice project, but it wouldn’t run on my Windows 7 system. After some digging, I figured out the cause and wanted to share the solution in case it helps someone else in the future.

MSBuildStructuredLog has been broken on Windows 7 since [2.2.465](v2.2.441...v2.2.465) because PresentationFramework.Aero2 does not exist in
C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF on Windows 7.

As a result, the application fails at startup with the following error when you load the binlog.

System.Windows.Markup.XamlParseException: Initialization of 'System.Windows.Controls.ContextMenu' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'PresentationFramework.Aero2, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

To work around this, you can copy PresentationFramework.Aero2.dll from a Windows 10 installation (located at
C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF), or extract it from x64-Windows10.0-KB4486153-x64. Place the DLL into the application’s install directory, which is usually:

app-x.x.xxx under %LOCALAPPDATA%\MSBuildStructuredLogViewer\

@KirillOsenkov
According to this post (use Chrome’s translation):
https://www.cnblogs.com/dino623/p/Windows7-Using-Aero2.html

It should also be possible to fix this by referencing the correct DLL within the project.

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