[Fixes #3502] Fix: publishOptions: [...] not respected
This commit is contained in:
parent
c748c81a4a
commit
dbf7435c3c
4 changed files with 4 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"publishOptions": "testpublishfile.txt",
|
||||
"publishOptions": [ "testpublishfile.txt", "publishfiles" ],
|
||||
"frameworks": {
|
||||
"netcoreapp1.0": {}
|
||||
},
|
||||
|
|
|
@ -40,7 +40,8 @@ namespace Microsoft.DotNet.ProjectModel.Files
|
|||
var token = rawObject.Value<JToken>(option);
|
||||
if (token.Type != JTokenType.Object)
|
||||
{
|
||||
IncludePatterns = new List<string>(ExtractValues(token));
|
||||
IncludePatterns = CreateCollection(
|
||||
sourceBasePath, option, ExtractValues(token), literalPath: false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -128,6 +128,7 @@ namespace Microsoft.DotNet.Tools.Publish.Tests
|
|||
|
||||
publishCommand.Execute().Should().Pass();
|
||||
publishCommand.GetOutputDirectory().Should().HaveFile("testpublishfile.txt");
|
||||
publishCommand.GetOutputDirectory().Should().HaveFile("publishfiles/anotherpublishfile.txt");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
Loading…
Reference in a new issue