fixing some build problems

This commit is contained in:
Tommy Parnell
2014-05-07 10:47:32 -07:00
parent ec6a418738
commit 053e7654f1
3 changed files with 9 additions and 8 deletions

View File

@@ -1,14 +1,15 @@
using System.ComponentModel.Composition.Hosting;
using System.ComponentModel.Composition;
using System.Reflection;
namespace NOCQ
{
public class Catalog
{
DirectoryCatalog dcatalog = new DirectoryCatalog("plugins", "*.dll");
AssemblyCatalog acatalog = new AssemblyCatalog(Assembly.GetExecutingAssembly());
AggregateCatalog catalog = new AggregateCatalog(dcatalog, acatalog);
public CompositionContainer Container = new CompositionContainer(catalog);
static DirectoryCatalog dcatalog = new DirectoryCatalog("plugins", "*.dll");
static AssemblyCatalog acatalog = new AssemblyCatalog(Assembly.GetExecutingAssembly());
static AggregateCatalog catalog = new AggregateCatalog(dcatalog, acatalog);
static public CompositionContainer Container = new CompositionContainer(catalog);
public Catalog()
{
Container.ComposeParts(this);

View File

@@ -33,6 +33,9 @@
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="csredis">
<HintPath>..\..\packages\csredis.1.4.7.1\lib\net40\csredis.dll</HintPath>
</Reference>
<Reference Include="System.Composition.AttributedModel">
<HintPath>..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.AttributedModel.dll</HintPath>
</Reference>
@@ -51,9 +54,6 @@
<Reference Include="AE.Net.Mail">
<HintPath>..\..\packages\AE.Net.Mail.1.7.9.1\lib\net45\AE.Net.Mail.dll</HintPath>
</Reference>
<Reference Include="csredis">
<HintPath>..\..\packages\csredis.1.4.7.1\lib\net40\csredis.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />