Hi Remco, thanks for reply.
I have tried to use comments and set Instrument Output Assembly with no effect.
Two of three projects that fail don't use CodeContract yet. And third fails in the part that don't use CodeContract either.
The code in question is below. If pass null instead of email.ValidationUrl assembly build fails. Second class resides in different assembly.
I've tried to rename/add new property to ForgotPasswordEmail class and build always fails when there is a property access. Two other assemblies has other reasons to fail.
Code:
[UsedImplicitly]
public class ForgotPasswordEmailBuilder : MandrillEmailBuilder<ForgotPasswordEmail>
{
..
protected override void InternalBuild(ForgotPasswordEmail email, EmailMessage emailMessage)
{
emailMessage.AddRecipientVariable(email.Recipient.Email, "CHANGEPASSWORDLINK", email.ValidationUrl);
}
}
Code:
[Serializable]
public class ForgotPasswordEmail : Email
{
public string ValidationUrl { get; private set; }
public ForgotPasswordEmail([NotNull] Recipient recipient, [NotNull] UrlHelper url, [NotNull] string key)
: base(recipient, () => Resources.Account.RestorePassword.EmailSubject, Template.ForgotPassword)
{
if (url == null) throw new ArgumentNullException("url");
if (key == null) throw new ArgumentNullException("key");
ValidationUrl = url.Action("ChangePassword", "Account", new { id = key }, UrlBuilder.Protocol);
}
}
Is it possible to see somehow the reason of fail, some kind of log or whatever?