Xaml Resources as Baml and EmbeddedResources
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
### Description
I migrated a control library from using MSBuild 4 to new sdk-style
From
``
To
``
In old project the xaml resource were included in the dll as both baml and resources
For example the xaml file C1Button.xaml


In the dll is compiled as baml

And included as it is as a resource

But when migrating to new sdk-style project the xaml is only compiled to baml

How can I specify the xaml should be included as both baml and resource?
### Reproduction Steps
Create a WPF library using old MS Build 4
Add a xaml resource to it
Compile it and see the resources in IL disassembler tool
Migrate project to use new sdk-style
Compile the migrated project
See the resources in the dll
### Expected behavior
Both dll's should be identical
### Actual behavior
The dll doesn't include the xaml as a resource
### Regression?
Yes, this worked fine with MSBuild 4
### Known Workarounds
_No response_
### Impact
_No response_
### Configuration
_No response_
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.