Fix asset copy on publish when lock file instance is shared

- Don't mutate the library target when making a package description.

#1528
This commit is contained in:
David Fowler 2016-02-23 02:34:27 -08:00
parent f49fdd9197
commit dec4a0627f
6 changed files with 73 additions and 11 deletions

View file

@ -159,7 +159,7 @@ namespace Microsoft.DotNet.Tools.Restore
var depsPath = Path.Combine(
toolDescription.Path,
Path.GetDirectoryName(toolDescription.Target.RuntimeAssemblies.First().Path),
Path.GetDirectoryName(toolDescription.RuntimeAssemblies.First().Path),
toolDescription.Identity.Name + FileNameSuffixes.Deps);
var calculator = context.GetOutputPaths(Constants.DefaultConfiguration, buidBasePath: null, outputPath: context.ProjectDirectory);