Skip to content

Commit

Permalink
added vs2019 (com/pro/ent) 1.1.51
Browse files Browse the repository at this point in the history
  • Loading branch information
GregTrevellick committed Oct 20, 2018
2 parents 7938d01 + bad9413 commit 7f0ec5d
Show file tree
Hide file tree
Showing 66 changed files with 3,359 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ These are the changes to each version that has been released in the Visual Studi
**2018-10-20**
- [x] Conversion to async packages
- [x] Fix github issues
- [x] Add VS2019 versions

## 1.1.48
**2017-09-25**
Expand Down
21 changes: 21 additions & 0 deletions src/OpenInApp.Common/Helpers/ApplicationToOpenHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,27 @@ public ApplicationToOpenDto GetApplicationToOpenDto(KeyToExecutableEnum keyToExe
applicationToOpenDto.SeparateProcessPerFileToBeOpened = false;
applicationToOpenDto.UseShellExecute = false;
break;
case KeyToExecutableEnum.VS2019Community:
applicationToOpenDto.ExcludeBinAndObjFoldersWhenOpeningProjectNode = true;
applicationToOpenDto.ExecutableFilesToBrowseFor = new List<string> { "devenv.exe" };
applicationToOpenDto.SecondaryFilePathSegment = @"Microsoft Visual Studio\2019\Community\Common7\IDE";
applicationToOpenDto.SeparateProcessPerFileToBeOpened = false;
applicationToOpenDto.UseShellExecute = false;
break;
case KeyToExecutableEnum.VS2019Enterprise:
applicationToOpenDto.ExcludeBinAndObjFoldersWhenOpeningProjectNode = true;
applicationToOpenDto.ExecutableFilesToBrowseFor = new List<string> { "devenv.exe" };
applicationToOpenDto.SecondaryFilePathSegment = @"Microsoft Visual Studio\2019\Enterprise\Common7\IDE";
applicationToOpenDto.SeparateProcessPerFileToBeOpened = false;
applicationToOpenDto.UseShellExecute = false;
break;
case KeyToExecutableEnum.VS2019Professional:
applicationToOpenDto.ExcludeBinAndObjFoldersWhenOpeningProjectNode = true;
applicationToOpenDto.ExecutableFilesToBrowseFor = new List<string> { "devenv.exe" };
applicationToOpenDto.SecondaryFilePathSegment = @"Microsoft Visual Studio\2019\Professional\Common7\IDE";
applicationToOpenDto.SeparateProcessPerFileToBeOpened = false;
applicationToOpenDto.UseShellExecute = false;
break;
case KeyToExecutableEnum.WinDirStat:
applicationToOpenDto.ArtefactTypeToOpen = ArtefactTypeToOpen.Folder;
applicationToOpenDto.OpenIndividualFilesInFolderRatherThanFolderItself = false;
Expand Down
12 changes: 12 additions & 0 deletions src/OpenInApp.Common/Helpers/KeyToExecutable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ public enum KeyToExecutableEnum
[Description("devenv.exe")]
VS2017Professional,

[Description("devenv.exe")]
VS2019Community,

[Description("devenv.exe")]
VS2019Enterprise,

[Description("devenv.exe")]
VS2019Professional,

[Description("windirstat.exe")]
WinDirStat,

Expand Down Expand Up @@ -108,6 +117,9 @@ public static class KeyToExecutableString //TODO auto sync to the enum class abo
public const string VS2017Community = "devenv.exeVS2017Community";
public const string VS2017Enterprise = "devenv.exeVS2017Enterprise";
public const string VS2017Professional = "devenv.exeVS2017Professional";
public const string VS2019Community = "devenv.exeVS2019Community";
public const string VS2019Enterprise = "devenv.exeVS2019Enterprise";
public const string VS2019Professional = "devenv.exeVS2019Professional";
public const string WinDirStat = "windirstat.exe";
public const string XamarinStudio = "XamarinStudio.exe";
}
Expand Down
18 changes: 18 additions & 0 deletions src/OpenInApp.Launcher.sln
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
..\Zappveyor.yml = ..\Zappveyor.yml
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenInVS2019Community", "OpenInVS2019Community\OpenInVS2019Community.csproj", "{84ED17E7-7027-49E3-8B3D-532B4600D3AE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenInVS2019Enterprise", "OpenInVS2019Enterprise\OpenInVS2019Enterprise.csproj", "{5F0FE53B-60D8-4CF3-AC10-75CA4F2C859B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenInVS2019Professional", "OpenInVS2019Professional\OpenInVS2019Professional.csproj", "{38A17EBB-816D-416B-9F0C-B48DF447E51F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -208,6 +214,18 @@ Global
{543A271A-FB6E-4918-BF68-0202EE7F1CAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{543A271A-FB6E-4918-BF68-0202EE7F1CAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{543A271A-FB6E-4918-BF68-0202EE7F1CAD}.Release|Any CPU.Build.0 = Release|Any CPU
{84ED17E7-7027-49E3-8B3D-532B4600D3AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{84ED17E7-7027-49E3-8B3D-532B4600D3AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{84ED17E7-7027-49E3-8B3D-532B4600D3AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{84ED17E7-7027-49E3-8B3D-532B4600D3AE}.Release|Any CPU.Build.0 = Release|Any CPU
{5F0FE53B-60D8-4CF3-AC10-75CA4F2C859B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5F0FE53B-60D8-4CF3-AC10-75CA4F2C859B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5F0FE53B-60D8-4CF3-AC10-75CA4F2C859B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5F0FE53B-60D8-4CF3-AC10-75CA4F2C859B}.Release|Any CPU.Build.0 = Release|Any CPU
{38A17EBB-816D-416B-9F0C-B48DF447E51F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{38A17EBB-816D-416B-9F0C-B48DF447E51F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{38A17EBB-816D-416B-9F0C-B48DF447E51F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{38A17EBB-816D-416B-9F0C-B48DF447E51F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
41 changes: 41 additions & 0 deletions src/OpenInVS2019Community/Commands/OpenInAppCommand.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
using Microsoft.VisualStudio.Shell;
using OpenInApp.Common.Helpers;
using OpenInApp.Menu;
using OpenInVS2019Community.Options.VS2019Community;
using System;

namespace OpenInVS2019Community.Commands
{
internal sealed class OpenInAppCommand
{
private readonly Package _package;
private IServiceProvider serviceProvider { get { return _package; } }

public OpenInAppCommand(Package package)
{
_package = package;
}

public void Initialize()
{
var menuCore = new MenuCore(
Vsix.Name,
Vsix.Version,
PackageGuids.guidOpenInVsCmdSetString,
PackageIds.CmdIdOpenInAppItemNode,
PackageIds.CmdIdOpenInAppCodeWin,
PackageIds.CmdIdOpenInAppFolderNode,
PackageIds.CmdIdOpenInAppProjNode,
GeneralOptions.keyToExecutableEnum,
VSPackage.Options.ActualPathToExe,
VSPackage.Options.FileQuantityWarningLimit,
VSPackage.Options.SuppressTypicalFileExtensionsWarning,
VSPackage.Options.TypicalFileExtensions,
GeneralOptions.keyToExecutableEnum.Description(),
serviceProvider,
VSPackage.Options);

menuCore.MenuCoreOpenInAppCommand(_package);
}
}
}
Loading

0 comments on commit 7f0ec5d

Please sign in to comment.