From f683f0add3185615b495929fd9d4ba30d75469e5 Mon Sep 17 00:00:00 2001 From: "Aaron (Qilong)" Date: Thu, 24 Aug 2023 12:37:22 -0400 Subject: [PATCH] DependencyType match --- .../ViewModels/PackageManager/PublishPackageViewModel.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/DynamoCoreWpf/ViewModels/PackageManager/PublishPackageViewModel.cs b/src/DynamoCoreWpf/ViewModels/PackageManager/PublishPackageViewModel.cs index 05579bb0bdb..86dbfd7214a 100644 --- a/src/DynamoCoreWpf/ViewModels/PackageManager/PublishPackageViewModel.cs +++ b/src/DynamoCoreWpf/ViewModels/PackageManager/PublishPackageViewModel.cs @@ -1359,7 +1359,7 @@ private void RemoveItem(object parameter) if (!(parameter is PackageItemRootViewModel packageItemRootViewModel)) return; string fileName = packageItemRootViewModel.FileInfo == null ? packageItemRootViewModel.Name : packageItemRootViewModel.FileInfo.FullName; - string fileType = packageItemRootViewModel.DependencyType.ToString(); + DependencyType fileType = packageItemRootViewModel.DependencyType; if (fileName.ToLower().EndsWith(".dll") || fileType.Equals(DependencyType.Assembly)) { @@ -1379,7 +1379,6 @@ private void RemoveItem(object parameter) RefreshPackageContents(); return; - } private bool CanShowAddFileDialogAndAdd()