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;
|
||||
Option = 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(
|
||||
sourceBasePath, option, ExtractValues(token), literalPath: false);
|
||||
|
|
Loading…
Reference in a new issue