Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 581515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:35:13+00:00 2026-05-13T14:35:13+00:00

I have a Silverlight 3 project which compiles and runs fine when compiled on

  • 0

I have a Silverlight 3 project which compiles and runs fine when compiled on a development machine. On our TFS environment with Silverlight 3 and the Silverlight 3 SDK installed, I get the following error:

C:\Users\tfsservice\AppData\Local\Temp\\Release\Sources\Source\Trunk\Themes\
UserDatesStyles.xaml(63,47,63,47):
error : The property ‘Command’ does
not exist on the type ‘Button’ in the
XML namespace
‘clr-namespace:Mvvm.Input;assembly=Mvvm’.

More information: Command is an attached property on Button that is part of the Mvvm assembly in the Mvvm.Input namespace.

Am I missing something on my TFS server? I would have thought that all I would require is the SDK. If I edit this project and change the ValidateXAML element to false, the TFS server does compile properly. However, this is obviously not the ideal situation.

Here is the XAML that causes it:

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:commands="clr-namespace:MvvmFramework.Input;assembly=MvvmFramework"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d">
    <Style x:Key="UserDatesStyle" TargetType="controls:UserDates">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="controls:UserDates">
                    <Grid Height="600" Width="800" d:DesignWidth="800" d:DesignHeight="600">
                        <Button Content="Previous" 
      commands:CommandBinder.Command="{Binding PreviousPageCommand}" 
                                Margin="0,0,10,0" 
                                Style="{StaticResource PrevBtn}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:35:13+00:00Added an answer on May 13, 2026 at 2:35 pm

    I managed to fix it on our solution… drove me nuts, we could get away with disabling xaml validation on the build server by passing /property:ValidateXaml=false to our build script. However it became a showstopper when we couldn’t build the project in blend. Blend doesn’t follow the same build process as VS, perhaps it just shells out to msbuild.

    I added this to Microsoft.Silverlight.Common.targets just above the call to ValidateXaml:

        <Message Text="--------------- Start: Build Hack -------------------------" />
        <Message Text="ReferenceAssemblies: @(ReferencePath);@(InferredReference->'$(TargetFrameworkDirectory)\%(Identity)')" />
        <Message Text="ProjectAssemblies: @(BuiltProjectOutputGroupKeyOutput)" />
        <Message Text="SilverlightPages: @(Page)" />
        <Message Text="SilverlightApplications: @(ApplicationDefinition)" />
        <Message Text="ProjectPath: $(MSBuildProjectFullPath)" />
        <Message Text="AssemblyName: $(AssemblyName)" />
        <Message Text="OutputPath: $(IntermediateOutputPath)" />
        <Message Text="ShouldThrow: $(ThrowErrorsInValidation)" />
        <Message Text="TargetFrameworkDirectory: $(TargetFrameworkDirectory)" />
        <Message Text="TargetFrameworkSDKDirectory: $(TargetFrameworkSDKDirectory)" />
        <Message Text="--------------- End: Build Hack -------------------------" />
    

    … it looked like the ReferenceAssemblies were not correctly pulling in the correct references to the other silverlight projects, ValidateXaml seems to create an app domain and load in all those references to check if the types exist…. Anyway cut a long story short ValidateXaml wasnt getting passed the correct references as noted in visual studio thus we suspect it failed.

    We believed it to be something corrupt in our configuration, we fixed it in the end by simply removing all offending projects getting the build to run from the cmd line (i.e. msbuild.exe) and VS, then adding each project back. After it was all done we noticed some differences in the .sln, the problem code had a strange ‘postProject’ ProjectSection under one of our Silverlight projects…. but its largely one of those ‘you’ll never really know’, the .csproj’s seemed to be the same.

    Remove the projects and add them back, worked for us. We suspect a corrupt solution file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.