You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(commands): skip Web Site projects when cleaning (#32)
* fix(commands): skip Web Site projects when cleaning
For legacy Web Site Projects (project type GUID
{E24C65DC-7377-472B-9ABA-BC803B73C61A}) the bin folder is not a build
output; it contains assemblies that are integral to the project. Detect
these via Project.IsKindAsync(ProjectTypes.WEBSITE) and skip them.
* feat(commands): notify user when Web Site projects are skipped
Show a single summary MessageBox after a solution-level Super Clean listing
any skipped Web Site projects, and a dedicated MessageBox when Super Clean
is invoked directly on a Web Site project so the user understands why
nothing was cleaned.
VsixTelemetry.LogInformation("Solution super cleaned successfully");
97
+
98
+
if(skippedWebsites.Count>0)
99
+
{
100
+
MessageBox.Show(
101
+
$"Super Clean skipped the following Web Site project(s) because their bin folder is required at runtime:{Environment.NewLine}{Environment.NewLine} • {string.Join($"{Environment.NewLine} • ",skippedWebsites)}",
102
+
"Super Clean",
103
+
System.Windows.Forms.MessageBoxButtons.OK,
104
+
System.Windows.Forms.MessageBoxIcon.Information
105
+
);
106
+
}
97
107
}
98
108
catch(Exceptionex)
99
109
{
@@ -116,8 +126,23 @@ Unable to Super Clean solution
116
126
caseSolutionItemType.Project:
117
127
try
118
128
{
119
-
SuperCleanProject(activeItem);
120
-
VsixTelemetry.LogInformation("Project super cleaned successfully");
0 commit comments