Compile Xaml into Baml?
问题 How can I convert a xaml to baml? thanks 回答1: You can compile the XAML by creating an MSBuild project file that references it. This is what happens in Visual Studio "under the covers" when you do a compile on your project (it creates a temporary .proj file and builds it). A fairly minimal project file (xamlcompile.csproj) is something like this: <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"