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;
}
}