Skip to content

Turn GenerateCompiledExpressionsTempFile into a no-op - #4100

Merged
rainersigwald merged 1 commit into
dotnet:vs16.0from
tmeschter:FixWorkflowExtensions-190124
Feb 10, 2019
Merged

rainersigwald merged 1 commit into
dotnet:vs16.0from
tmeschter:FixWorkflowExtensions-190124

Conversation

@tmeschter

Copy link
Copy Markdown
Contributor

This target in $(MSBuildFrameworkToolsPath)\Microsoft.WorkflowBuildExtensions.targets does bad things to builds inside Visual Studio. Specifically, it generates files only when building from within VS, for both real and design-time builds. This leads to all kinds of build problems.

In Dev16 we no longer need these files to exist on disk for Workflow Designer scenarios. We can't modify $(MSBuildFrameworkToolsPath)\Microsoft.WorkflowBuildExtensions.targets because that would break the Workflow Designer for older versions of VS using newer versions of the Framework. Instead, we effectively turn it off by overriding it with a no-op implementation here.

This target in $(MSBuildFrameworkToolsPath)\Microsoft.WorkflowBuildExtensions.targets does bad things to builds inside Visual Studio. Specifically, it generates files *only* when building from within VS, for both real and design-time builds. This leads to all kinds of build problems.

In Dev16 we no longer need these files to exist on disk for Workflow Designer scenarios. We can't modify $(MSBuildFrameworkToolsPath)\Microsoft.WorkflowBuildExtensions.targets because that would break the Workflow Designer for older versions of VS. Instead, we effectively turn it off by overriding it with a no-op implementation here.
@tmeschter

Copy link
Copy Markdown
Contributor Author

Note this should not be merged in until after related changes to the Workflow Designer have been made to the main VS repo.

@rainersigwald

Copy link
Copy Markdown
Member

Marking for 16.0 per the internal thread.

When we talked about this internally, I envisioned dropping the framework import and copying the code here entirely. But this also totally works, and I think it's better:

Strategy Pro Con
Selective overrides
  • Understandable changes
  • Minimizes drift
  • Can be switched to full replacement later
  • Harder to customize more deeply
  • Having imports/overrides hurts evaluation performance by ε
Complete replacement
  • Flexible future customization
  • Possiblity of unintentional drift
  • Moves cheese
  • perf

@rainersigwald rainersigwald added this to the MSBuild 16.0 milestone Jan 25, 2019
@rainersigwald
rainersigwald changed the base branch from master to vs16.0 January 25, 2019 15:50
@rainersigwald rainersigwald changed the title [WIP] Turn GenerateCompiledExpressionsTempFile into a no-op Turn GenerateCompiledExpressionsTempFile into a no-op Feb 10, 2019
@rainersigwald

Copy link
Copy Markdown
Member

Per offline thread with @Pilchie, this is desired for 16.0. Merge will be followed up with a VS insertion to take to the release quarterback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants