1
Vote

ClickToBuildRelease.bat fails, script is copying Debug files for NuPackPackageFactory. Package pushing fails.

description

I'm setting up a gallery by following the instructions on nuget.org.
Pushing packages fails because the NuPackPackageFactory plugin is not copied when running the ClickToBuildRelease.bat on a clean checkout.
It's copying the files from bin\Debug\ instead of bin\Release\

These are the incorrect lines:

copy "Plugins\src\NuPackPackageFactory\bin\Debug\NuGet.Core.dll" %destinationDirectory%
copy "Plugins\src\NuPackPackageFactory\bin\Debug\NuPackPackageFactory.dll" %destinationDirectory%

Should be:

copy "Plugins\src\NuPackPackageFactory\bin\Release\NuGet.Core.dll" %destinationDirectory%
copy "Plugins\src\NuPackPackageFactory\bin\Release\NuPackPackageFactory.dll" %destinationDirectory%

This is the exception I get when I publish a package:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> <title>Request Error</title> <style>BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; } #content { margin-left : 30px; font-size: .70em; padding-bottom: 2em; } A:link { color: #336699; font-weight: bold; text-decoration: underline; } A:visited { color : #6699cc; font-weight: bold; text-decoration: underline; } A:active { color: #336699; font-weight: bold; text-decoration: underline; } .hea ding1 { background-color: #003366; border-bottom: #336699 6px solid; color: #ffffff; font-family: Tahoma; font-size: 26px; font-weight: norm al;margin: 0em 0em 10px -20px; padding-bottom: 8px; padding-left: 30px;padding-top: 16px;} pre { font-size:small; background-color: #e5e5cc; padding: 5px; font-family: Courier New; margin-top: 0px; border: 1px #f0f0e0 solid; white-space: pre-wrap; white-space: -pre-wrap; word-wra p: break-word; } table { border-collapse: collapse; border-spacing: 0px; font-family: Verdana;} table th { border-right: 2px white solid; bo rder-bottom: 2px white solid; font-weight: bold; background-color: #cecf9c;} table td { border-right: 2px white solid; border-bottom: 2px wh ite solid; background-color: #e5e5cc;}</style> </head> <body>
<div id="content">
  <p class="heading1">Request Error</p>
  <p xmlns="">The server encountered an error processing the request. Please see the <a rel="help-page" href="http://<redacted>/PackageFiles/help">service help page</a> for constructing valid requests to the service. The exception message is 'Could not find a type implementing 'IPackageFactory' in assemblies in the directory 'C:\nugetgallery\Services\GalleryServer\src\Gallery.Server\bin'.'. See server logs for more details. The exception stack trace is: </p>
  <p>   at Gallery.DependencyResolution.PluginService.FindPluginImplementation[TBase]() in c:\nugetgallery\Services\GalleryServer\src\Gallery.DependencyResolution\PluginService.cs:line 33
at Ninject.Activation.Provider1.Create(IContext context) in d:\BuildAgent-03\work\b68efe9aafe8875e\src\Ninject\Activation\Provider.cs:line 39
at Ninject.Activation.Context.Resolve() in d:\BuildAgent-03\work\b68efe9aafe8875e\src\Ninject\Activation\Context.cs:line 157
at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext()
at System.Linq.Enumerable.Single[TSource](IEnumerable1 source)
at System.Linq.Enumerable.WhereSelectArrayIterator
2.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at Ninject.Activation.Providers.StandardProvider.Create(IContext context) in d:\BuildAgent-03\work\b68efe9aafe8875e\src\Ninject\Activation\Providers\StandardProvider.cs:line 81
at Ninject.Activation.Context.Resolve() in d:\BuildAgent-03\work\b68efe9aafe8875e\src\Ninject\Activation\Context.cs:line 157
at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext()
at System.Linq.Enumerable.Single[TSource](IEnumerable1 source)
at System.Linq.Enumerable.WhereSelectArrayIterator
2.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at Ninject.Activation.Providers.StandardProvider.Create(IContext context) in d:\BuildAgent-03\work\b68efe9aafe8875e\src\Ninject\Activation\Providers\StandardProvider.cs:line 81
at Ninject.Activation.Context.Resolve() in d:\BuildAgent-03\work\b68efe9aafe8875e\src\Ninject\Activation\Context.cs:line 157
at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext()
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at Gallery.DependencyResolution.NinjectDependencyResolver.Resolve(Type typeToResolve) in c:\nugetgallery\Services\GalleryServer\src\Gallery.DependencyResolution\NinjectDependencyResolver.cs:line 41
at System.ServiceModel.InstanceContext.GetServiceInstance(Message message)
at System.ServiceModel.Dispatcher.InstanceBehavior.EnsureServiceInstance(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</p>
</div>
</body>
</html>

comments