Using the merged resource dictionaries degrade application performance. In my assembly I often need to use merged resource dictionaries. I want to combine resources in one dictionary, and delete the original baml. I can't set Build Action to None (instead of Page), because in this case I lose some functionality (e.g., no syntax highlighting by resharper). How can I do this?
How to remove baml from WPF assembly?
633 Views Asked by Aleksandr Vishnyakov At
1
There are 1 best solutions below
Related Questions in WPF
- Sorting a List by its property renames all the objects in the List
- Can't open new instance of another window in my app, in WPF .NET 8
- Binding forecolour and ToolTip to a DataGrid
- how to create Infinite Upgrades in a clicker game
- Try Catch exception is not catching the unhandled exception
- Assigning an object to another doesn't raise PropertyChanged event in WPF
- Masking input in TextBox
- What should I do if Visual Studio has a restriction on creating files with a long name or a long path to these files?
- reading configuration file (mytest.exe.config)
- WPF Windows Initializing is locking the separated thread in .Net 8
- How to bind to the DataContext ViewModel of another view?
- mouse coordinates in image go below 0 and above width
- WPF pop up is behaving differently in English language PC and Japanese language PC
- Multi level project reference using dll
- Unable to unzip archive .NET framework
Related Questions in REFLECTION
- In Rust, how to inspect values captured by a closure?
- How to get class properties or fields using reflection in Kotlin/Native?
- Filtering class properties by a specific criteria
- GetValue for Field contains too many arguments
- Custom PHPStan rul lto allow calling class method only from specific class
- What boilerplate is the best for dynamic form building with reactjs typescript and .Net core microservices
- How to get a name of member property from the parent object
- control javac options per class from annotation processor
- Access to all types, classes and interfaces from multiple projects through reflection in C#
- C# Reflection emit invalid program when calling emited method from generic type that implements interface
- Quarkus: Find and invoke annotated methods for listener
- Extend capacity of slice wrapped in interface type using reflection
- Using Reflection how do you determine if a class property allows null?
- How to loadClass spring class from spring jar
- C# Reflection Emit Invalid program exception when implementing generic interface
Related Questions in .NET-ASSEMBLY
- .Net App has reference but is not being recognized in class
- Sharing runtime assembly in C# Roslyn script
- C# application crashes while using Matlab .Net Assembly
- Prevent copying of package reference using Visual Studio Publish
- Right way to generate shared code in source generators
- SSIS: FileLoadException for System.Runtime Version 6.0.0.0 in .NET Framework Project
- Wrong version loaded of "System.Servicemodel" when using a service reference
- Update .NET project dependency
- C# Assembly is deactivated and cannot run any code error
- Assembly Cannot be installed because of Existing Policy CLR
- .Net Program sometimes installs, sometimes fails at different places
- Type.GetType("ClassName") returns null
- Mixed mode .NET 4.0 assembly refuses to load in Windows 10 Pro but loads fine in Windows 10 Home
- How to extend an assembly from other assemblies in C#
- NuGet package updates are causing assembly loading issues
Related Questions in MONO.CECIL
- Mono.Cecil in C#: How to call method of super class from another assembly
- MissingMethodException when invoking injected method call to a public method in parent class that is located in different assembly
- Injecting method calls using Mono.Cecil draws InvalidProgramException in constructor
- Inject method call to all field setters marked with attribute using Mono.Cecil
- Failure to resolve assembly with Mono.Cecil from jenkins
- Insert method call into setter causes Invalid IL code
- ILWeaving help - [ValidSystemPath] attribute
- Assembly attributes added by Mono.Cecil are not reflected in Windows explorer file properties. Why?
- coverlet: Unable to instrument module (ArgumentException)
- Get named values from a Fody CustomAttribute Constructor
- 1-click application validation failed MonoCecil.dll c#
- How to insert IL code call into class type constructor in .Net?
- Mono.Cecil: Getting Method Reference from delegate passed as Generic Parameter
- Getting source location from TypeDefinition with Mono.Cecil
- BaseType.Resolve() yielding null for base types in different assembly
Related Questions in BAML
- Dotfuscator throws 'Object reference not set to an instance of an object.'
- Changes in XAML are only reflected in English
- How is a graphical element dynamically created in code compiled (.NET 5)?
- Why is TextBlock.FontSize converted into an attached property in binary (BAML)?
- Why is Xaml deserialized at runtime - rather than at compile time?
- Convert Baml file into usable XDocument for parsing
- Embed BAML in assembly without WPF
- Set relative path of baml/xaml in *.g.cs using MarkupCompilePass1
- How does PartialClassGenerationTask and MarkupCompilePass1 works/belongs together
- Compile XAML to BAML in memory
- Should I track .baml files in my WPF repo?
- loading ResourceDictionary from baml using Baml2006Reader
- Dotfuscating BAML in WPF application
- Silverlight for windows embedded using WEST tool
- How do I "merge" or use a system assembly's ResourceDictionary in my generic.xaml?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
At run-time your application still need to read the linked BAML resources files, for this reason you can't remove BAML from your assembly.
For example:
You merge the following resource dictionaries
dictionary1.xamldictionary2.xamlin
merged.xaml.You cannot simply remove the compiled XAML (BAML -
dictionary1.bamlanddictionary2.baml), because, as I wrote, at run-time you still need these resources.But, anyway, you could literally copy the content of your XAML resources on
merged.xaml, in this way you will have onlymerged.baml(after the compiler has generated it in your assembly resource part).