Include context fixes to include the default files even when buildoptions is empty, so we have less custom logic in the migration library
This commit is contained in:
parent
611e4ccfde
commit
d8556d1ed7
1 changed files with 9 additions and 1 deletions
|
@ -38,7 +38,15 @@ namespace Microsoft.DotNet.ProjectModel.Files
|
||||||
SourceBasePath = sourceBasePath;
|
SourceBasePath = sourceBasePath;
|
||||||
Option = option;
|
Option = option;
|
||||||
var token = rawObject.Value<JToken>(option);
|
var token = rawObject.Value<JToken>(option);
|
||||||
if (token.Type != JTokenType.Object)
|
|
||||||
|
if (token == null)
|
||||||
|
{
|
||||||
|
IncludePatterns = new List<string>();
|
||||||
|
ExcludePatterns = new List<string>();
|
||||||
|
IncludeFiles = new List<string>();
|
||||||
|
ExcludeFiles = new List<string>();
|
||||||
|
}
|
||||||
|
else if (token.Type != JTokenType.Object)
|
||||||
{
|
{
|
||||||
IncludePatterns = CreateCollection(
|
IncludePatterns = CreateCollection(
|
||||||
sourceBasePath, option, ExtractValues(token), literalPath: false);
|
sourceBasePath, option, ExtractValues(token), literalPath: false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue