2017-04-18 07:52:04 +08:00
## WorkflowDesigner.Load doesn't remove symbol property
2017-04-06 04:52:19 +08:00
### Scope
Major
### Version Introduced
4.5
### Version Reverted
4.5.2
### Source Analyzer Status
Planned
### Change Description
2017-04-21 02:19:05 +08:00
When targeting the .NET Framework 4.5 in the workflow designer, and loading a
re-hosted 3.5 workflow with the
< xref:System.Activities.Presentation.WorkflowDesigner.Load >
method, a < xref:System.Xaml.XamlDuplicateMemberException ? displayProperty = name >
is thrown while saving the workflow.
2017-04-06 04:52:19 +08:00
- [x] Quirked
- [ ] Build-time break
### Recommended Action
2017-04-21 02:19:05 +08:00
2017-04-06 04:52:19 +08:00
This bug only manifests when targeting .NET Framework 4.5 in the workflow designer, so it can be worked around by setting the `WorkflowDesigner.Context.Services.GetService<DesignerConfigurationService>().TargetFrameworkName` to the 4.0 .NET Framework.
2017-04-21 02:19:05 +08:00
Alternatively, the issue may be avoided by using the
< xref:System.Activities.Presentation.WorkflowDesigner.Load ( System . String ) >
method to load the workflow, instead of
< xref:System.Activities.Presentation.WorkflowDesigner.Load > .
2017-04-06 04:52:19 +08:00
### Affected APIs
* `M:System.Activities.Presentation.WorkflowDesigner.Load`
### Category
Windows Workflow Foundation (WF)
[More information ](https://connect.microsoft.com/VisualStudio/feedback/details/786503/ )
2017-04-18 07:52:04 +08:00
<!-- breaking change id: 82 -->