From 4e0832be9c003cd139d16b3bd6e0dc93477a62d2 Mon Sep 17 00:00:00 2001 From: Erwin Mayer Date: Sun, 5 Dec 2021 09:09:36 -1000 Subject: [PATCH] V4.0.0 2021/12/05 - Added support for Visual Studio 2022. --- .gitignore | 1 - DisableNoSourceAvailableTab.sln | 27 +++- .../DisableNoSourceAvailableTab.csproj | 57 ++++---- .../source.extension.cs | 24 ---- .../source.extension.ico | Bin 1348 -> 0 bytes .../source.extension.resx | 136 ------------------ .../source.extension.vsixmanifest | 3 +- .../DisableNoSourceAvailableTab2022.csproj | 114 +++++++++++++++ .../Properties/AssemblyInfo.cs | 33 +++++ .../source.extension.vsixmanifest | 39 +++++ .../DisableNoSourceAvailableTabPackage.cs | 0 ...isableNoSourceAvailableTabShared.projitems | 15 ++ .../DisableNoSourceAvailableTabShared.shproj | 13 ++ .../GuidList.cs | 0 .../Icon.png | Bin .../Key.snk | Bin .../License.txt | 14 +- .../Screenshot.png | Bin README.md | 9 +- 19 files changed, 283 insertions(+), 202 deletions(-) delete mode 100644 DisableNoSourceAvailableTab/source.extension.cs delete mode 100644 DisableNoSourceAvailableTab/source.extension.ico delete mode 100644 DisableNoSourceAvailableTab/source.extension.resx create mode 100644 DisableNoSourceAvailableTab2022/DisableNoSourceAvailableTab2022.csproj create mode 100644 DisableNoSourceAvailableTab2022/Properties/AssemblyInfo.cs create mode 100644 DisableNoSourceAvailableTab2022/source.extension.vsixmanifest rename {DisableNoSourceAvailableTab => DisableNoSourceAvailableTabShared}/DisableNoSourceAvailableTabPackage.cs (100%) create mode 100644 DisableNoSourceAvailableTabShared/DisableNoSourceAvailableTabShared.projitems create mode 100644 DisableNoSourceAvailableTabShared/DisableNoSourceAvailableTabShared.shproj rename {DisableNoSourceAvailableTab => DisableNoSourceAvailableTabShared}/GuidList.cs (100%) rename {DisableNoSourceAvailableTab => DisableNoSourceAvailableTabSharedFolder}/Icon.png (100%) rename {DisableNoSourceAvailableTab => DisableNoSourceAvailableTabSharedFolder}/Key.snk (100%) rename {DisableNoSourceAvailableTab => DisableNoSourceAvailableTabSharedFolder}/License.txt (99%) rename {DisableNoSourceAvailableTab => DisableNoSourceAvailableTabSharedFolder}/Screenshot.png (100%) diff --git a/.gitignore b/.gitignore index ef5a4b6..3edbea8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ *.vbproj.user *.bak [Bb]in -[Dd]ebug*/ obj/ [Rr]elease*/ _ReSharper*/ diff --git a/DisableNoSourceAvailableTab.sln b/DisableNoSourceAvailableTab.sln index 03f07f0..564a948 100644 --- a/DisableNoSourceAvailableTab.sln +++ b/DisableNoSourceAvailableTab.sln @@ -1,20 +1,43 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.28307.489 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DisableNoSourceAvailableTab", "DisableNoSourceAvailableTab\DisableNoSourceAvailableTab.csproj", "{D061A7EA-8B32-4AD2-8320-E5BD46ED4C27}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DisableNoSourceAvailableTab2022", "DisableNoSourceAvailableTab2022\DisableNoSourceAvailableTab2022.csproj", "{F34197DD-8AD1-44A6-A07A-F06C34B544E1}" +EndProject +Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "DisableNoSourceAvailableTabShared", "DisableNoSourceAvailableTabShared\DisableNoSourceAvailableTabShared.shproj", "{BE8861AF-61BB-4EE4-A25F-2422E85A5565}" +EndProject Global + GlobalSection(SharedMSBuildProjectFiles) = preSolution + DisableNoSourceAvailableTabShared\DisableNoSourceAvailableTabShared.projitems*{be8861af-61bb-4ee4-a25f-2422e85a5565}*SharedItemsImports = 13 + DisableNoSourceAvailableTabShared\DisableNoSourceAvailableTabShared.projitems*{d061a7ea-8b32-4ad2-8320-e5bd46ed4c27}*SharedItemsImports = 4 + DisableNoSourceAvailableTabShared\DisableNoSourceAvailableTabShared.projitems*{f34197dd-8ad1-44a6-a07a-f06c34b544e1}*SharedItemsImports = 4 + EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {D061A7EA-8B32-4AD2-8320-E5BD46ED4C27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D061A7EA-8B32-4AD2-8320-E5BD46ED4C27}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D061A7EA-8B32-4AD2-8320-E5BD46ED4C27}.Debug|x86.ActiveCfg = Debug|x86 + {D061A7EA-8B32-4AD2-8320-E5BD46ED4C27}.Debug|x86.Build.0 = Debug|x86 {D061A7EA-8B32-4AD2-8320-E5BD46ED4C27}.Release|Any CPU.ActiveCfg = Release|Any CPU {D061A7EA-8B32-4AD2-8320-E5BD46ED4C27}.Release|Any CPU.Build.0 = Release|Any CPU + {D061A7EA-8B32-4AD2-8320-E5BD46ED4C27}.Release|x86.ActiveCfg = Release|x86 + {D061A7EA-8B32-4AD2-8320-E5BD46ED4C27}.Release|x86.Build.0 = Release|x86 + {F34197DD-8AD1-44A6-A07A-F06C34B544E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F34197DD-8AD1-44A6-A07A-F06C34B544E1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F34197DD-8AD1-44A6-A07A-F06C34B544E1}.Debug|x86.ActiveCfg = Debug|x86 + {F34197DD-8AD1-44A6-A07A-F06C34B544E1}.Debug|x86.Build.0 = Debug|x86 + {F34197DD-8AD1-44A6-A07A-F06C34B544E1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F34197DD-8AD1-44A6-A07A-F06C34B544E1}.Release|Any CPU.Build.0 = Release|Any CPU + {F34197DD-8AD1-44A6-A07A-F06C34B544E1}.Release|x86.ActiveCfg = Release|x86 + {F34197DD-8AD1-44A6-A07A-F06C34B544E1}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/DisableNoSourceAvailableTab/DisableNoSourceAvailableTab.csproj b/DisableNoSourceAvailableTab/DisableNoSourceAvailableTab.csproj index 832a4b4..7b53b1e 100644 --- a/DisableNoSourceAvailableTab/DisableNoSourceAvailableTab.csproj +++ b/DisableNoSourceAvailableTab/DisableNoSourceAvailableTab.csproj @@ -12,7 +12,7 @@ true - Key.snk + ..\DisableNoSourceAvailableTabSharedFolder\Key.snk @@ -25,7 +25,7 @@ Properties ErwinMayerLabs.DisableNoSourceAvailableTab DisableNoSourceAvailableTab - v4.6.2 + v4.6 true true true @@ -55,19 +55,16 @@ 4 - - - - source.extension.vsixmanifest - - + + Key.snk + Designer VsixManifestGenerator - source.extension.resx + source.extension1.cs @@ -82,35 +79,39 @@ - - Always + + Icon.png true - - Always + + License.txt true - - Always + + Screenshot.png true - - source.extension.vsixmanifest - - - - - True - True - source.extension.vsixmanifest - true - VSPackage - + - if $(ConfigurationName) == Release copy /Y "$(TargetDir)$(TargetName).vsix" "$(SolutionDir)Releases\$(TargetName) (new).vsix" + if "$(ConfigurationName)" neq "Release" ( + exit /b 0 +) + +if not exist "$(SolutionDir)Releases\" ( + mkdir "$(SolutionDir)Releases\" + if errorlevel 1 goto Error +) + +copy /Y "$(TargetDir)$(TargetName).vsix" "$(SolutionDir)Releases\$(TargetName)2019 (new).vsix" +if errorlevel 1 goto Error + +exit /b 0 + +:Error +exit /b 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Disable No Source Available Tab - - - This small extension will prevent the tool window with title 'No Source Available' from appearing in Visual Studio, and preserve the focus on the currently active tab. - -Alas, along with brilliant improvements such as IntelliTrace, Visual Studio otherwise displays a tab stating that it cannot find source code where to step into. This is obvious when simply pausing an idle application, therefore it forces the developer to close this window before getting back to the code he wants to modify, which may be a productivity killer. - -Let's hope this extension will be short-term lived as the Visual Studio development team adds an option to better control this behavior! - -This extension should work with all locales of Visual Studio. - - - - source.extension.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - \ No newline at end of file diff --git a/DisableNoSourceAvailableTab/source.extension.vsixmanifest b/DisableNoSourceAvailableTab/source.extension.vsixmanifest index 12d9d12..0b61fc2 100644 --- a/DisableNoSourceAvailableTab/source.extension.vsixmanifest +++ b/DisableNoSourceAvailableTab/source.extension.vsixmanifest @@ -1,7 +1,7 @@ - + Disable No Source Available Tab This small extension will prevent the tool window with title 'No Source Available' from appearing in Visual Studio, and preserve the focus on the currently active tab. @@ -20,7 +20,6 @@ This extension should work with all locales of Visual Studio. - diff --git a/DisableNoSourceAvailableTab2022/DisableNoSourceAvailableTab2022.csproj b/DisableNoSourceAvailableTab2022/DisableNoSourceAvailableTab2022.csproj new file mode 100644 index 0000000..2569fd1 --- /dev/null +++ b/DisableNoSourceAvailableTab2022/DisableNoSourceAvailableTab2022.csproj @@ -0,0 +1,114 @@ + + + + 17.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + true + + + ..\DisableNoSourceAvailableTabSharedFolder\Key.snk + + + + Debug + AnyCPU + 2.0 + {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {F34197DD-8AD1-44A6-A07A-F06C34B544E1} + Library + Properties + ErwinMayerLabs.DisableNoSourceAvailableTab + DisableNoSourceAvailableTab2022 + v4.7.2 + true + true + true + false + false + true + true + Program + $(DevEnvDir)devenv.exe + /rootsuffix Exp + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + Key.snk + + + Designer + + + + + + + + + + + + Icon.png + true + + + License.txt + true + + + Screenshot.png + true + + + + + + + if "$(ConfigurationName)" neq "Release" ( + exit /b 0 +) + +if not exist "$(SolutionDir)Releases\" ( + mkdir "$(SolutionDir)Releases\" + if errorlevel 1 goto Error +) + +copy /Y "$(TargetDir)$(TargetName).vsix" "$(SolutionDir)Releases\$(TargetName) (new).vsix" +if errorlevel 1 goto Error + +exit /b 0 + +:Error +exit /b 1 + + + + \ No newline at end of file diff --git a/DisableNoSourceAvailableTab2022/Properties/AssemblyInfo.cs b/DisableNoSourceAvailableTab2022/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b3bd8c8 --- /dev/null +++ b/DisableNoSourceAvailableTab2022/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("DisableNoSourceAvailableTab2022")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("DisableNoSourceAvailableTab2022")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/DisableNoSourceAvailableTab2022/source.extension.vsixmanifest b/DisableNoSourceAvailableTab2022/source.extension.vsixmanifest new file mode 100644 index 0000000..f1014e6 --- /dev/null +++ b/DisableNoSourceAvailableTab2022/source.extension.vsixmanifest @@ -0,0 +1,39 @@ + + + + + Disable No Source Available Tab + This small extension will prevent the tool window with title 'No Source Available' from appearing in Visual Studio, and preserve the focus on the currently active tab. + +Alas, along with brilliant improvements such as IntelliTrace, Visual Studio otherwise displays a tab stating that it cannot find source code where to step into. This is obvious when simply pausing an idle application, therefore it forces the developer to close this window before getting back to the code he wants to modify, which may be a productivity killer. + +Let's hope this extension will be short-term lived as the Visual Studio development team adds an option to better control this behavior! + +This extension should work with all locales of Visual Studio. + https://erwinmayer.com/labs/visual-studio-2010-extension-disable-no-source-available-tab + License.txt + Icon.png + Screenshot.png + Debugger, debugging, no source available, hide window, Quelle verfügbar, sources disponibles, Aucune source disponible, break mode + + + + amd64 + + + amd64 + + + amd64 + + + + + + + + + + + + diff --git a/DisableNoSourceAvailableTab/DisableNoSourceAvailableTabPackage.cs b/DisableNoSourceAvailableTabShared/DisableNoSourceAvailableTabPackage.cs similarity index 100% rename from DisableNoSourceAvailableTab/DisableNoSourceAvailableTabPackage.cs rename to DisableNoSourceAvailableTabShared/DisableNoSourceAvailableTabPackage.cs diff --git a/DisableNoSourceAvailableTabShared/DisableNoSourceAvailableTabShared.projitems b/DisableNoSourceAvailableTabShared/DisableNoSourceAvailableTabShared.projitems new file mode 100644 index 0000000..8238f02 --- /dev/null +++ b/DisableNoSourceAvailableTabShared/DisableNoSourceAvailableTabShared.projitems @@ -0,0 +1,15 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + true + be8861af-61bb-4ee4-a25f-2422e85a5565 + + + DisableNoSourceAvailableTabShared + + + + + + \ No newline at end of file diff --git a/DisableNoSourceAvailableTabShared/DisableNoSourceAvailableTabShared.shproj b/DisableNoSourceAvailableTabShared/DisableNoSourceAvailableTabShared.shproj new file mode 100644 index 0000000..6ae2787 --- /dev/null +++ b/DisableNoSourceAvailableTabShared/DisableNoSourceAvailableTabShared.shproj @@ -0,0 +1,13 @@ + + + + be8861af-61bb-4ee4-a25f-2422e85a5565 + 14.0 + + + + + + + + diff --git a/DisableNoSourceAvailableTab/GuidList.cs b/DisableNoSourceAvailableTabShared/GuidList.cs similarity index 100% rename from DisableNoSourceAvailableTab/GuidList.cs rename to DisableNoSourceAvailableTabShared/GuidList.cs diff --git a/DisableNoSourceAvailableTab/Icon.png b/DisableNoSourceAvailableTabSharedFolder/Icon.png similarity index 100% rename from DisableNoSourceAvailableTab/Icon.png rename to DisableNoSourceAvailableTabSharedFolder/Icon.png diff --git a/DisableNoSourceAvailableTab/Key.snk b/DisableNoSourceAvailableTabSharedFolder/Key.snk similarity index 100% rename from DisableNoSourceAvailableTab/Key.snk rename to DisableNoSourceAvailableTabSharedFolder/Key.snk diff --git a/DisableNoSourceAvailableTab/License.txt b/DisableNoSourceAvailableTabSharedFolder/License.txt similarity index 99% rename from DisableNoSourceAvailableTab/License.txt rename to DisableNoSourceAvailableTabSharedFolder/License.txt index 8f350ac..f5abf6d 100644 --- a/DisableNoSourceAvailableTab/License.txt +++ b/DisableNoSourceAvailableTabSharedFolder/License.txt @@ -1,8 +1,8 @@ -The MIT License (MIT) -Copyright (c) 2010 Erwin Mayer - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - +The MIT License (MIT) +Copyright (c) 2010 Erwin Mayer + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/DisableNoSourceAvailableTab/Screenshot.png b/DisableNoSourceAvailableTabSharedFolder/Screenshot.png similarity index 100% rename from DisableNoSourceAvailableTab/Screenshot.png rename to DisableNoSourceAvailableTabSharedFolder/Screenshot.png diff --git a/README.md b/README.md index 2fd6cb7..6e49192 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Disable No Source Available Tab - Visual Studio Extension -![Screenshot](/DisableNoSourceAvailableTab/Screenshot.png?raw=true "Screenshot") +![Screenshot](/DisableNoSourceAvailableTabSharedFolder/Screenshot.png?raw=true "Screenshot") This is the official repository for: https://marketplace.visualstudio.com/items?itemName=mayerwin.DisableNoSourceAvailableTab @@ -13,7 +13,12 @@ This small extension will prevent the tool window with title "No Source Availabl **Supported editions** -Visual Studio 2015, 2017, 2019+. +Visual Studio 2015, 2017, 2019, 2022+. + +Visual Studio 2022 support is currently available via the beta release which can be downloaded [here](https://github.com/mayerwin/vs-disable-no-source-tab/releases/tag/4.0.0). The extension available on the Visual Studio Marketplace will be updated to support Visual Studio 2022 when Microsoft will have actually implemented the following key important missing feature: + +> In the future, the Marketplace will allow you to upload multiple VSIXs to just one Marketplace listing, allowing you to upload your Visual Studio 2022-targeted VSIX and a pre-Visual Studio 2022 VSIX. Your users will automatically get the right VSIX for the VS version they have installed, when using the VS extension manager. +https://docs.microsoft.com/en-us/visualstudio/extensibility/migration/update-visual-studio-extension?view=vs-2022#visual-studio-marketplace Visual Studio 2010 support has been dropped due to limitations imposed by Microsoft's VSIX format to support Visual Studio 2017. The last stable release supporting Visual Studio 2010 can however be downloaded [here](https://github.com/mayerwin/vs-disable-no-source-tab/releases/tag/2.0).