Reputation: 21
I am using a namespace called ComShorCaliburnWPF.ViewModules.Views.ShortMenuWindows.GWDSCT
on my View.xaml
and View.cs
, for my ViewModel.cs
and my IoC container I am using ComShorCaliburnWPF.ViewModules.Views.ShortMenuWindows.GWDSCT
. When I remove the GWDSCT at the end it works fine, but in its current state it does not. I would like it to work how it is now because it accurately reflects where the files are located. Any suggestions?
Upvotes: 2
Views: 621
Reputation: 9478
One thing that will help debug these problems is to use the logger:
public class DebugLogger : ILog
{
private readonly Type _type;
public DebugLogger(Type type)
{
_type = type;
}
public void Info(string format, params object[] args)
{
if (format.StartsWith("No bindable"))
return;
if (format.StartsWith("Action Convention Not Applied"))
return;
Debug.WriteLine("INFO: " + format, args);
}
public void Warn(string format, params object[] args)
{
Debug.WriteLine("WARN: " + format, args);
}
public void Error(Exception exception)
{
Debug.WriteLine("ERROR: {0}\n{1}", _type.Name, exception);
}
}
Then in AppBootstrapper
, Configure method.
LogManager.GetLog = type => new DebugLogger(type);
Upvotes: 3