From 023da4ac09130af3be18f24f8d4493f3dcf5a498 Mon Sep 17 00:00:00 2001 From: Deyan Nenov Date: Fri, 8 Dec 2023 03:21:58 +0000 Subject: [PATCH] remove duplicate dyf file warning from preview generation process (#14711) - dynamo would issue a warning and fail to publish a package if an 'unqualified' file is being used, such as a dyf file already under package control - this check is done when publishing package locally, but I have incorrectly added it to the process of creating a build preview, which stops the process for both local and online submit workflow (cherry picked from commit 3ea1c5c48e90b919c57e257e71565ed51b66c4b3) --- .../PackageManager/PublishPackageViewModel.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/DynamoCoreWpf/ViewModels/PackageManager/PublishPackageViewModel.cs b/src/DynamoCoreWpf/ViewModels/PackageManager/PublishPackageViewModel.cs index 192e73c9006..b3fb7fc5e92 100644 --- a/src/DynamoCoreWpf/ViewModels/PackageManager/PublishPackageViewModel.cs +++ b/src/DynamoCoreWpf/ViewModels/PackageManager/PublishPackageViewModel.cs @@ -2411,22 +2411,6 @@ private void PreviewPackageBuild() .ToList(); try { - var unqualifiedFiles = GetAllUnqualifiedFiles(); - - if (files == null || files.Count() < 1 || unqualifiedFiles.Count() > 0) - { - string filesCannotBePublished = null; - foreach (var file in unqualifiedFiles) - { - filesCannotBePublished = filesCannotBePublished + file + "\n"; - } - string FileNotPublishMessage = string.Format(Resources.FileNotPublishMessage, filesCannotBePublished); - UploadState = PackageUploadHandle.State.Error; - MessageBoxResult response = DynamoModel.IsTestMode ? MessageBoxResult.OK : MessageBoxService.Show(Owner, FileNotPublishMessage, Resources.FileNotPublishCaption, MessageBoxButton.OK, MessageBoxImage.Error); - - return; - } - // Generate the Package Name, either based on the user 'Description', or the root path name, if no 'Description' yet var packageName = !string.IsNullOrEmpty(Name) ? Name : Path.GetFileName(publishPath); var rootItemPreview = RetainFolderStructureOverride ?