Skip to content

Commit

Permalink
Package publish crash fix and package files pre-populate bug fix (#12859
Browse files Browse the repository at this point in the history
)

* refresh deps

* accept nulls
  • Loading branch information
zeusongit authored May 6, 2022
1 parent 2b74138 commit 74709f7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,10 @@ public static PublishPackageViewModel FromLocalPackage(DynamoViewModel dynamoVie
}
}

//after dependencies are loaded refresh package contents
vm.RefreshPackageContents();
vm.UpdateDependencies();

if (assembliesLoadedTwice.Any())
{
vm.UploadState = PackageUploadHandle.State.Error;
Expand Down Expand Up @@ -1339,7 +1343,7 @@ private void RemoveItem(object parameter)
}

PackageContents.Remove(PackageContents
.First(x => x.FileInfo.FullName == packageItemRootViewModel.FileInfo.FullName));
.First(x => x.FileInfo?.FullName == packageItemRootViewModel.FileInfo.FullName));
}

private bool CanShowAddFileDialogAndAdd()
Expand Down

0 comments on commit 74709f7

Please sign in to comment.