public void Execute(CommandAction action) { List <Project> projects = AllProjects.ToList(); if (projects.Count == 0) { return; } if (BridgeCommand.IsEveryProjectSupported(projects, _application.Version, _application.Edition)) { BridgeCommand.ActivateBridgeVsOnSolution(action, projects, SolutionName, _application.Version, _application.Edition); } else { string message = $@"Solution {SolutionName} contains one or more un-supported projects. ASP.NET Core, .NET Core, .NET standard and UAP are not supported by LINQBridgeVs."; MessageBox.Show(message); } }
public void Execute(CommandAction action) { Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread(); List <Project> projects = AllProjects.ToList(); if (projects.Count == 0) { return; } if (BridgeCommand.IsEveryProjectSupported(projects, _application.Version, _application.Edition)) { BridgeCommand.ActivateBridgeVsOnSolution(action, projects, SolutionName, _application.Version, _application.Edition, Path.GetDirectoryName(_application.Solution.FileName)); } else { string message = $@"Solution {SolutionName} contains one or more un-supported projects. ASP.NET Core, .NET Core, .NET standard and UAP are not supported by LINQBridgeVs."; System.Windows.MessageBox.Show(message); } }