MyNet.Xaml.Merger 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package MyNet.Xaml.Merger --version 1.0.0                
NuGet\Install-Package MyNet.Xaml.Merger -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MyNet.Xaml.Merger" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MyNet.Xaml.Merger --version 1.0.0                
#r "nuget: MyNet.Xaml.Merger, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MyNet.Xaml.Merger as a Cake Addin
#addin nuget:?package=MyNet.Xaml.Merger&version=1.0.0

// Install MyNet.Xaml.Merger as a Cake Tool
#tool nuget:?package=MyNet.Xaml.Merger&version=1.0.0                

<div id="top"></div>

<br /> <div align="center"> <a href="https://github.com/sandre58/MyNetXaml"> <img src="images/logo.png" width="256" height="256"> </a>

<h1 align="center">My .NET Xaml</h1>

Downloads Forks Stargazers Issues MIT License

<p align="center"> Various tools for easing the development of XAML related applications.

As i only use WPF myself everything is focused on WPF, but things should work for other XAML dialects (at least in theory).

You can either use the commandline tool MyNet.Xaml.Merger or the MSBuild version MyNet.Xaml.Merger.MSBuild to make use of the provided functionalities. </p>

Language Framework Version Build

</div>

XAMLCombine

Combines multiple XAML files to one large file.
This is useful when you want to provide one Generic.xaml instead of multiple small XAML files.
Using one large XAML file not only makes it easier to consume, but can also drastically improving loading performance.

Using the MSBuild-Task

<XAMLCombineItems Include="Themes/Controls/*.xaml">
  <TargetFile>Themes/Generic.xaml</TargetFile>
</XAMLCombineItems>

The MSBuild-Task includes the items used for combining as pages during debug builds and removes them from pages during release builds. This is done to reduce the binary size for release builds and still enable intellisense in debug builds for those XAML files.

Remarks when using Rider
To get intellisense in debug builds inside the XAML files and to prevent duplicate display of those files you have to define:

<PropertyGroup Condition="'$(IsBuildingInsideRider)' == 'True'">
  <DefaultItemExcludes>$(DefaultItemExcludes);Themes\Controls\*.xaml</DefaultItemExcludes>
</PropertyGroup>

<ItemGroup Condition="'$(IsBuildingInsideRider)' == 'True'">
  <Page Include="Themes\Controls\*.xaml" />
</ItemGroup>

Using the executable

XAMLTools accepts the following commandline parameters for the combine verb:

  • -s "Path_To_Your_SourceFile" ⇒ A file containing a new line separated list of files to combine (lines starting with # are skipped)
  • -t "Path_To_Your_Target_File.xaml"

XAMLColorSchemeGenerator

Generates color scheme XAML files while replacing certain parts of a template file.

For an example on how this tool works see the generator input and template files.

Using the MSBuild-Task

<XAMLColorSchemeGeneratorItems Include="Themes\ColorScheme.Template.xaml">
  <ParametersFile>Themes\GeneratorParameters.json</ParametersFile>
  <OutputPath>Themes\ColorSchemes</OutputPath>
</XAMLColorSchemeGeneratorItems>

Using the executable

XAMLTools accepts the following commandline parameters for the colorscheme verb:

  • -p "Path_To_Your_GeneratorParameters.json"
  • -t "Path_To_Your_ColorScheme.Template.xaml"
  • -o "Path_To_Your_Output_Folder"

License

Copyright � St�phane ANDRE.

My .NET WPF is provided as-is under the MIT license. For more information see LICENSE.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.1 103 5/14/2024
2.0.0 127 5/5/2024
1.0.0 83 5/3/2024