KirillOsenkov / MSBuildStructuredLog

A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
MIT License
1.45k stars 196 forks source link

Preprocess menu is not available for Solution (.sln) #627

Open yuehuang010 opened 1 year ago

yuehuang010 commented 1 year ago

The Preprocess Context menu is not available for the root solution. I would had hoped it would preprocess the metaproj from the binlog. image

Debugging a bit, the menu is not visible because GetImportMap() is looking for .sln+nodeID, but cache only has the metaproj+nodeID.

KirillOsenkov commented 1 year ago

We do have these messages at the root, perhaps it would be helpful to parse them and update the cache in the import map?

image

KirillOsenkov commented 1 year ago

or just hardcode slnFilePath + ".metaproj" ( + ".metaproj.tmp")

yuehuang010 commented 1 year ago

Adding a metaproj node class is cleaner and would also handle opening the metaproj itself. But it is more work.