Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - How to compile XAML

 
 
Old 04-30-2007   #1 (permalink)
Jaakko Salmenius


 
 

How to compile XAML

I need to compile a sinlge .xaml file to .baml file. I know I have to use
MsBuild.exe. However I do not know what target I should use. Propably it is
MarkupCompilePass1 but when I invoke that target I get the following error:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.WinFX.targets(317,9):
error MC6000: Project file must include the .NET Framework assembly
'WindowsBase, PresentationCore, PresentationFramework' in the reference
list.

I do have those assemblies in the reference group.

<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="PresentationDesignDeveloper, Version=0.0.4030.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a,
processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\Cider\PresentationDesignDeveloper.DLL</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="UIAutomationProvider" />
<Reference Include="UIAutomationTypes" />
<Reference Include="ReachFramework" />
<Reference Include="System.Printing" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.IdentityModel" />
</ItemGroup>

Then I tried to use the same .csproj that I use with VS but I got the same
error message. For some reason MsBuild seems not to find the assemblies.

Does anybody have a solution.

Best regards,
Jaakko



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Is it possible to include XAML files into another XAML file? .NET General
is it possible to compile PS1 scripts ? PowerShell
WMP 11 Library won't compile Vista music pictures video


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46