Merge pull request #2792 from eerhardt/Relative

Execute 'csc' with working directory set to the project directory.
This commit is contained in:
Eric Erhardt 2016-05-02 18:53:57 -05:00
commit 9a85205781
18 changed files with 124 additions and 13 deletions

View file

@ -6,6 +6,7 @@ using System.IO;
using Microsoft.DotNet.Cli.CommandLine;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.DotNet.ProjectModel;
using Microsoft.DotNet.Tools.Common;
namespace Microsoft.DotNet.Tools.Publish
{
@ -37,7 +38,7 @@ namespace Microsoft.DotNet.Tools.Publish
publish.Framework = framework.Value();
publish.Runtime = runtime.Value();
publish.BuildBasePath = buildBasePath.Value();
publish.BuildBasePath = PathUtility.GetFullPath(buildBasePath.Value());
publish.OutputPath = output.Value();
publish.Configuration = configuration.Value() ?? Constants.DefaultConfiguration;
publish.NativeSubdirectories = nativeSubdirectories.HasValue();