WPF - when does the C # compiler VS2010 start supporting XAML markup compilation?

Based on the book “Pro C # 2010 and the .net 4.0 Platform” on page 1148, she claims that the C # compiler does not understand the XAML markup. Instead, we should use MSBUILD.

However, I found that I could directly compile the WPF solution in VS2010 SP1 using

WPF - How to run a WPF solution in VS2010 SP1

So the question is, "when does the C # VS2010 compiler start supporting XAML markup compilation?"

thank

+3
source share
2 answers

XAML has nothing to do with C #; there was no reason for the C # compiler to support XAML.

Visual Studio has been using MSBuild since 2005; .csprojthe files are actually MSBuild scripts.

+6

# XAML, . WPF XAML- Visual Studio. .: http://msdn.microsoft.com/en-us/library/aa970678.aspx

+3

All Articles