install-packages.ps1 of EnterpriseLibrary.SemanticLogging.Service has lack of dependency

Topics: General
Mar 28, 2014 at 5:25 AM
Edited Mar 28, 2014 at 5:30 AM
Hi All!

The new release of EnterpriseLibrary.SemanticLogging.Service is very cool!
But I found the lack of package dependency in install-packages.ps1.

When I execute "SemanticLogging-svc.exe -c" after executing "install-packages.ps1", System.Reflection.ReflectionTypeLoadException has occurred.
This is because required Microsoft.Data.Services.Client.dll dependency is missing.

It works after I modified .nuget/packages.config and install-packages.ps1 as below.

.nuget/packages.config
<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="EnterpriseLibrary.SemanticLogging" version="1.1.1403.0" />
  <package id="EnterpriseLibrary.SemanticLogging.Database" version="1.1.1403.0" />
  <package id="EnterpriseLibrary.SemanticLogging.WindowsAzure" version="1.1.1403.0" />
  <package id="EnterpriseLibrary.SemanticLogging.Elasticsearch" version="1.1.1403.0" />
  <package id="EnterpriseLibrary.TransientFaultHandling" version="6.0.1304.0" />
  <package id="EnterpriseLibrary.TransientFaultHandling.Data" version="6.0.1304.1" />
  <package id="Newtonsoft.Json" version="5.0.8" />
  <package id="WindowsAzure.Storage" version="3.0.2.0" />
  <package id="Microsoft.WindowsAzure.ConfigurationManager" version="2.0.3" />
  <package id="Microsoft.Data.OData" version="5.6.0" />
  <package id="Microsoft.Data.Edm" version="5.6.0" />
  <!-- Added below line -->
  <package id="Microsoft.Data.Services.Client" version="5.6.0"  />
  <package id="System.Spatial" version="5.6.0" />
</packages>
install-packages.ps1 line 86
    $dependencies = @(
    '*NET45\Microsoft.Practices.EnterpriseLibrary.SemanticLogging.dll',
    '*NET45\Microsoft.Practices.EnterpriseLibrary.SemanticLogging.*.dll',
        '*portable*\Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.dll',
        '*NET45\Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.*.dll',
        '*\EnterpriseLibrary.SemanticLogging.Database.*\scripts\*.*'
        '*NET40\Microsoft.Data.Edm.dll',
        '*NET40\Microsoft.Data.OData.dll',
        #added below line
        '*NET40\Microsoft.Data.Services.Client.dll',
        '*Microsoft.WindowsAzure.Configuration.dll',
        '*NET40\System.Spatial.dll',
        '*NET40\Microsoft.WindowsAzure.Storage.dll',
        '*NET40\Newtonsoft.Json.dll'
        )
Takayoshi Tanaka
Mar 31, 2014 at 3:52 AM
Sorry, this should be an issue, and moved to https://slab.codeplex.com/workitem/42.