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

  • Home
  • SEARCH
  • 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 724641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:14:44+00:00 2026-05-14T06:14:44+00:00

I have all my views in a project inheriting from a ViewBase class that

  • 0

I have all my views in a project inheriting from a ViewBase class that inherits from UserControl. In my XAML I reference it thus:

<f:ViewBase x:Class="Forte.UI.Modules.Configure.Views.AddNewEmployeeView"
    xmlns:f="clr-namespace:Forte.UI.Modules.Configure.Views"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 

It works fine.

Now I have moved the ViewBase to another project (so I can refernce it from multiple projects) so I reference it like:

<f:ViewBase x:Class="Forte.UI.Modules.Configure.Views.AddNewEmployeeView"
    xmlns:f="clr-namespace:Forte.UI.Modules.Common.Views;assembly=Forte.UI.Modules.Common"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 

This works fine when I run from the IDE but when I run the same sln from MSBuild it gives a warning:

“H:\dev\ExternalCopy\Code\UI\Modules\Configure\Forte.UI.Modules.Configure.csproj” (default target)
(10:12) ->
(ValidateXaml target) ->
H:\dev\ExternalCopy\Code\UI\Modules\Configure\Views\AddNewEmployee\AddNewEmployeeView.xaml(1,2,1,2): warning : The tag ‘ViewBase’ does not exist in XML namespace ‘clr-namespace:Forte.UI.Modules.Common.Views;assembly=Forte.UI.Modules.Common’.

Then fails with:

“H:\dev\ExternalCopy\Code\UI\Modules\Configure\Forte.UI.Modules.Configure.csproj” (default target)
(10:12) ->
(ValidateXaml target) ->
C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.Common.targets(210,9):
error MSB4018: The “ValidateXaml” task failed unexpectedly.\r
C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.Common.targets(210,9): er
ror MSB4018: System.NullReferenceException: Object reference not set to an instance of an object.\r
C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.Common.targets(210,9): er
ror MSB4018: at MS.MarkupCompiler.ValidationPass.ValidateXaml(String fileName, Assembly[] assemb
lies, Assembly callingAssembly, TaskLoggingHelper log, Boolean shouldThrow)\r
C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.Common.targets(210,9): er
ror MSB4018: at Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute()\r
C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.Common.targets(210,9): er
ror MSB4018: at Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute()\r
C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.Common.targets(210,9): er
ror MSB4018: at Microsoft.Silverlight.Build.Tasks.ValidateXaml.Execute()\r
C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.Common.targets(210,9): er
ror MSB4018: at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engin
eProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)

Any ideas what might be causing this behaviour?

Using Silverlight 3

Here is a cut down version of the MSBuild file that fails to build the sln that builds fine in the IDE (sorry couldn’t get it to format here):

<?xml version=”1.0″ encoding=”utf-8″ ?>
<Project xmlns=”http://schemas.microsoft.com/developer/msbuild/2003&#8243; DefaultTargets=”Compile”>
<ItemGroup>
<ProjectToBuild Include=”..\UI\Forte.UI.sln”>
<Properties>Configuration=Debug</Properties>
</ProjectToBuild>
</ItemGroup>
<Target Name=”Compile”>
<MSBuild Projects=”@(ProjectToBuild)”></MSBuild>
</Target>
</Project>

Thanks for any help!

  • 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-14T06:14:45+00:00Added an answer on May 14, 2026 at 6:14 am

    The only way, so far, I have found for getting around this is to refernce the actual assembly rather than the project. It’s a bit hokey, anyone got a better idea?

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

Sidebar

Related Questions

I have a master page which all my views inherit from. The issue I
I have implemented VirtualPathProvider class so I can keep all my views in the
All of a sudden in this MVC site I have no views that can
I have 2 views, one to return all the locations belonging to a project,
I'm sure you have all been there, you take on a project where there
i want to split my views project into sereveral modules. i wanna have a
I have an Access 2003 project in which all data is stored in SQL
I have created a project called class , and an application called students when
If all tables I want to delete from have the column gamer_id can i
I have a project that adds elements to an AutoCad drawing. I noticed that

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.