fixing some build problems
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
<package id="AE.Net.Mail" version="1.7.9.1" targetFramework="net45" />
|
||||
<package id="csredis" version="1.4.7.1" targetFramework="net45" />
|
||||
<package id="Microsoft.Composition" version="1.0.27" targetFramework="net45" />
|
||||
</packages>
|
||||
</packages>
|
||||
Reference in New Issue
Block a user