Closed maurodx closed 5 years ago
Additional info: using the Radical Template from visual studio extensions the application works until I add the RavenDB.Database package. From that moment I got exception:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in WindowsBase.dll
Additional information: Impossibile caricare il file o l'assembly 'ICSharpCode.NRefactory.CSharp, Version=5.0.0.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49' o una delle relative dipendenze.
@maurodx interesting issue, you are not the first facing issues when using RavenDB 3
that under the hood depends on Fody
, the issue is not Fody
but the fact that RavenDB utilizes it screwing your dependency.
I'll have a look at it and see if there is some workaround.
@maurodx I cannot repro it, it breaks if the startup code is the following:
var bootstrapper = new WindsorApplicationBootstrapper<MainView>();
But as soon as I change the code to:
var bootstrapper = new WindsorApplicationBootstrapper<MainView>()
.OnBeforeInstall( conv =>
{
conv.IncludeAssemblyInContainerScan = ( a ) =>
{
return
a.FullName.Contains( "WpfApplication1" )
|| a.FullName.Contains( "Radical" );
};
} );
it works as expected since the RavenDB
assemblies are not touched anymore, can you send us a repro of the failure so that I can have a look at it?
Withdrawn as not reproducible
I created a basic wpf app with the following packages installed
On application startup I have this code:
And app throw exception:
Exception thrown: 'System.NullReferenceException' in System.Windows.Interactivity.dll
if I remove the call to OnBeforeInstall I got:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in WindowsBase.dll
Additional information: Impossibile caricare il file o l'assembly 'ICSharpCode.NRefactory.CSharp, Version=5.0.0.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49' o una delle relative dipendenze.
Probably caused by MEF, Owin and the fact that RavenDB have merged assembly with Fody.