diff --git a/Nodejs/Product/Nodejs/Project/NodejsProjectNode.cs b/Nodejs/Product/Nodejs/Project/NodejsProjectNode.cs index eb2e62540..0472705ac 100644 --- a/Nodejs/Product/Nodejs/Project/NodejsProjectNode.cs +++ b/Nodejs/Product/Nodejs/Project/NodejsProjectNode.cs @@ -585,16 +585,13 @@ public async Task CheckForLongPaths(string npmArguments = null) this._isCheckingForLongPaths = true; var longPaths = await Task.Factory.StartNew(() => - GetLongSubPaths(this.ProjectHome) - .Concat(GetLongSubPaths(this._intermediateOutputPath)) - .Any()); - if (!longPaths) + GetLongSubPaths(this.ProjectHome).Any() || GetLongSubPaths(this._intermediateOutputPath).Any()); + + if (longPaths) { - return; + Utilities.ShowMessageBox( + this.Site, Resources.LongPathWarningText, SR.ProductName, OLEMSGICON.OLEMSGICON_WARNING, OLEMSGBUTTON.OLEMSGBUTTON_OK, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST); } - - Utilities.ShowMessageBox( - this.Site, Resources.LongPathWarningText, SR.ProductName, OLEMSGICON.OLEMSGICON_WARNING, OLEMSGBUTTON.OLEMSGBUTTON_OK, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST); } finally {