title: Fody plugin Validar fails. Could not load type 'Validar.ValidationTemplateAttribute' from assembly mscorlib
body: <p>I'm trying to use <a href="https://github.com/Fody/Validar" rel="nofollow">Validar</a> to inject validation in my classes. My solution consists of multiple (5 for now, can become more in the future) projects in which I want to inject the validation. So I defined my <code>ValidationTemplate</code> class in one of them and placed the <code>ValidationTemplateAttribute</code> in every assembly like this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>using Validar;
  
  [assembly: ValidationTemplate(typeof(IMS.General.Validation.ValidationTemplate))]
  </code></pre>
  
  <p>When I build I receive an error which I do not understand, but stops me from going further:</p>
  
  <blockquote>
    <p>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets(268,9):
    error MC1000: Unknown build error, 'Could not load type
    'Validar.ValidationTemplateAttribute' from assembly 'mscorlib,
    Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.'</p>
  </blockquote>
  
  <p>I'm using Visual Studio 2013 professional update 4 and the target framework is .Net framework 4.5</p>
  
  <p>If it is of any use for the question my implementation of the <code>ValidationTemplate</code> looks like:</p>
  
  <pre class="lang-cs prettyprint-override"><code>namespace IMS.General.Validation
  {
      public class ValidationTemplate : INotifyDataErrorInfo
      {
          private readonly INotifyPropertyChanged target;
          private readonly ValidationContext validationContext;
          private readonly List&lt;ValidationResult&gt; validationResults;
  
          public ValidationTemplate(INotifyPropertyChanged target)
          {
              this.target = target;
              this.validationContext = new ValidationContext(target, null, null);
              this.validationResults = new List&lt;ValidationResult&gt;();
              Validator.TryValidateObject(this.target, this.validationContext,
                         this.validationResults, true);
              target.PropertyChanged += Validate;
          }
  
          private void Validate(object sender, PropertyChangedEventArgs e)
          {
              this.validationResults.Clear();
              Validator.TryValidateObject(this.target, this.validationContext, 
                   this.validationResults, true);
              var hashSet = new HashSet&lt;string&gt;(
                   this.validationResults.SelectMany(x =&gt; x.MemberNames));
  
              foreach (var error in hashSet)
              {
                  this.ErrorsChanged(this, 
                          new DataErrorsChangedEventArgs(error));
              }
          }
  
          public IEnumerable GetErrors(string propertyName)
          {
              return this.validationResults
                           .Where(x =&gt; x.MemberNames.Contains(propertyName))
                           .Select(x =&gt; x.ErrorMessage);
          }
  
          public bool HasErrors
          {
              get { return this.validationResults.Count &gt; 0; }
          }
  
          public event EventHandler&lt;DataErrorsChangedEventArgs&gt; 
                  ErrorsChanged = (s, e) =&gt; { };
      }
  }
  </code></pre>
  
  <p>What am I doing wrong and how can I solve this issue?</p>
  
  <p><strong>Edit:</strong>
  Come on guys!! Is there really nobody who can help me with this. Should I make a test solution to show the problem? Please advise! I'm really in need of a solution! Fody normally works great and saves me a lot of work while keeping my classes nice and clean!</p>