Just upgraded to TopShelf 4.0.0 and had to role back..

213 views
Skip to first unread message

Stewart Rogers

unread,
May 4, 2016, 6:01:22 PM5/4/16
to topshelf-discuss
After upgrade with no other changes the following broke the build after rollback All is well.

Attempting to resolve dependencies for multiple packages.
Resolving actions install multiple packages
Removed package 'Topshelf 3.3.1' from 'packages.config'
Successfully uninstalled 'Topshelf 3.3.1' from Console
Package 'Topshelf.4.0.0' already exists in folder 'H:\tfs\EncryptionService\packages'
Added package 'Topshelf.4.0.0' to 'packages.config'
Successfully installed 'Topshelf 4.0.0' to Console
Removing package 'Topshelf 3.3.1' from folder 'H:\tfs\EncryptionService\packages'
Removed package 'Topshelf 3.3.1' from folder 'H:\tfs\EncryptionService\packages'
========== Finished ==========

------------------
Severity Code Description Project File Line Suppression State
Error CS0012 The type 'ServiceConfigurator<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Topshelf, Version=3.2.150.0, Culture=neutral, PublicKeyToken=b800c4cfcdeea87b'. Console H:\tfs\EncryptionService\Console\Program.cs 40 Active

serviceFactoryBuilder.WithNancyEndpoint(hostConfiguration, nancyConfigurator => {   <= line 40
-----------------------------------------


Can't find this after upgrading to 4.0.0
#region Assembly Topshelf.Nancy, Version=1.0.0.39, Culture=neutral, PublicKeyToken=null
// H:\tfs\EncryptionService\packages\Topshelf.Nancy.1.0.0.39\lib\net452\Topshelf.Nancy.dll
#endregion
 
using System;
using Topshelf.HostConfigurators;
using Topshelf.ServiceConfigurators;
 
namespace Topshelf.Nancy {
    public static class NancyServiceConfiguratorExtensions {
        public static ServiceConfigurator<T> WithNancyEndpoint<T>(this ServiceConfigurator<T> configurator, HostConfigurator hostconfigurator, Action<NancyServiceConfiguration> nancyConfigurator) where T : class;
    }
}

Chris Patterson

unread,
May 4, 2016, 8:23:35 PM5/4/16
to topshelf...@googlegroups.com
This looks like something to do with Nancy, and not Topshelf.

--
You received this message because you are subscribed to the Google Groups "topshelf-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topshelf-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages