Compiled XAML(BAML) test

win.xaml

<?xml version="1.0" encoding="utf-8"?>
<Window Title="My First XAML"
	Width="320"
	Height="240"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
	Hello World
</Window>

app.xaml

<?xml version="1.0" encoding="utf-8"?>
<Application StartupUri="win.xaml"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"/>

hello.proj

<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<PropertyGroup>
		<AssemblyName>HelloWorld</AssemblyName>
		<OutputType>winexe</OutputType>
		<OutputPath>.\</OutputPath>
	</PropertyGroup>
	<ItemGroup>
		<ApplicationDefinition Include="app.xaml"/>
		<Page Include="win.xaml"/>
		<Reference Include="System"/>
		<Reference Include="WindowsBase"/>
		<Reference Include="PresentationCore"/>
		<Reference Include="PresentationFramework"/>
	</ItemGroup>
	<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets"/>
	<Import Project="$(MSBuildBinPath)\Microsoft.WinFX.targets"/>
</Project>

wpf.bat

@echo off
setlocal
%windir%\Microsoft.NET\Framework\v3.5\MSBuild hello.proj
endlocal
echo on

result