fixing some build problems
This commit is contained in:
@@ -1,14 +1,15 @@
|
|||||||
using System.ComponentModel.Composition.Hosting;
|
using System.ComponentModel.Composition.Hosting;
|
||||||
using System.ComponentModel.Composition;
|
using System.ComponentModel.Composition;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
namespace NOCQ
|
namespace NOCQ
|
||||||
{
|
{
|
||||||
public class Catalog
|
public class Catalog
|
||||||
{
|
{
|
||||||
DirectoryCatalog dcatalog = new DirectoryCatalog("plugins", "*.dll");
|
static DirectoryCatalog dcatalog = new DirectoryCatalog("plugins", "*.dll");
|
||||||
AssemblyCatalog acatalog = new AssemblyCatalog(Assembly.GetExecutingAssembly());
|
static AssemblyCatalog acatalog = new AssemblyCatalog(Assembly.GetExecutingAssembly());
|
||||||
AggregateCatalog catalog = new AggregateCatalog(dcatalog, acatalog);
|
static AggregateCatalog catalog = new AggregateCatalog(dcatalog, acatalog);
|
||||||
public CompositionContainer Container = new CompositionContainer(catalog);
|
static public CompositionContainer Container = new CompositionContainer(catalog);
|
||||||
public Catalog()
|
public Catalog()
|
||||||
{
|
{
|
||||||
Container.ComposeParts(this);
|
Container.ComposeParts(this);
|
||||||
|
|||||||
@@ -33,6 +33,9 @@
|
|||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.ComponentModel.Composition" />
|
<Reference Include="System.ComponentModel.Composition" />
|
||||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
<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">
|
<Reference Include="System.Composition.AttributedModel">
|
||||||
<HintPath>..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.AttributedModel.dll</HintPath>
|
<HintPath>..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.AttributedModel.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -51,9 +54,6 @@
|
|||||||
<Reference Include="AE.Net.Mail">
|
<Reference Include="AE.Net.Mail">
|
||||||
<HintPath>..\..\packages\AE.Net.Mail.1.7.9.1\lib\net45\AE.Net.Mail.dll</HintPath>
|
<HintPath>..\..\packages\AE.Net.Mail.1.7.9.1\lib\net45\AE.Net.Mail.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="csredis">
|
|
||||||
<HintPath>..\..\packages\csredis.1.4.7.1\lib\net40\csredis.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
|||||||
Reference in New Issue
Block a user