Skip to content

Commit 3c100f3

Browse files
committed
Solution updated to be compiled on VS2015, extension updated to be installed on VS2017
1 parent fc0d466 commit 3c100f3

10 files changed

+244
-6
lines changed

Backup/DisableMouseWheelZoom.csproj

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>10.0.20305</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectTypeGuids>{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
9+
<ProjectGuid>{CAECD2A5-3FE2-413B-B1D5-55A46ED763B7}</ProjectGuid>
10+
<OutputType>Library</OutputType>
11+
<AppDesignerFolder>Properties</AppDesignerFolder>
12+
<RootNamespace>DisableMouseWheelZoom</RootNamespace>
13+
<AssemblyName>DisableMouseWheelZoom</AssemblyName>
14+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
15+
<FileAlignment>512</FileAlignment>
16+
<GeneratePkgDefFile>false</GeneratePkgDefFile>
17+
</PropertyGroup>
18+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\Release\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Reference Include="Microsoft.VisualStudio.CoreUtility">
37+
<Private>False</Private>
38+
</Reference>
39+
<Reference Include="Microsoft.VisualStudio.Text.Data">
40+
<Private>False</Private>
41+
</Reference>
42+
<Reference Include="Microsoft.VisualStudio.Text.Logic">
43+
<Private>False</Private>
44+
</Reference>
45+
<Reference Include="Microsoft.VisualStudio.Text.UI">
46+
<Private>False</Private>
47+
</Reference>
48+
<Reference Include="Microsoft.VisualStudio.Text.UI.Wpf">
49+
<Private>False</Private>
50+
</Reference>
51+
<Reference Include="PresentationCore" />
52+
<Reference Include="PresentationFramework" />
53+
<Reference Include="System" />
54+
<Reference Include="Microsoft.CSharp" />
55+
<Reference Include="System.ComponentModel.Composition" />
56+
<Reference Include="System.Core" />
57+
<Reference Include="System.Data.DataSetExtensions" />
58+
<Reference Include="System.Data" />
59+
<Reference Include="System.Xml" />
60+
<Reference Include="System.Xaml" />
61+
<Reference Include="WindowsBase" />
62+
</ItemGroup>
63+
<ItemGroup>
64+
<Compile Include="DisableMouseWheelZoomFactory.cs" />
65+
<Compile Include="Properties\AssemblyInfo.cs" />
66+
</ItemGroup>
67+
<ItemGroup>
68+
<None Include="source.extension.vsixmanifest">
69+
<SubType>Designer</SubType>
70+
</None>
71+
</ItemGroup>
72+
<ItemGroup>
73+
<Content Include="ms-pl.txt">
74+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
75+
<IncludeInVSIX>true</IncludeInVSIX>
76+
</Content>
77+
</ItemGroup>
78+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
79+
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.VsSDK.targets" />
80+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
81+
Other similar extension points exist, see Microsoft.Common.targets.
82+
<Target Name="BeforeBuild">
83+
</Target>
84+
<Target Name="AfterBuild">
85+
</Target>
86+
-->
87+
</Project>

Backup/DisableMouseWheelZoom.sln

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual Studio 2010
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DisableMouseWheelZoom", "DisableMouseWheelZoom.csproj", "{CAECD2A5-3FE2-413B-B1D5-55A46ED763B7}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Any CPU = Debug|Any CPU
9+
Release|Any CPU = Release|Any CPU
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{CAECD2A5-3FE2-413B-B1D5-55A46ED763B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13+
{CAECD2A5-3FE2-413B-B1D5-55A46ED763B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
14+
{CAECD2A5-3FE2-413B-B1D5-55A46ED763B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
15+
{CAECD2A5-3FE2-413B-B1D5-55A46ED763B7}.Release|Any CPU.Build.0 = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System.ComponentModel.Composition;
2+
using Microsoft.VisualStudio.Text.Editor;
3+
using Microsoft.VisualStudio.Utilities;
4+
5+
namespace DisableMouseWheelZoom
6+
{
7+
[Export(typeof(IWpfTextViewCreationListener ))]
8+
[ContentType("text")]
9+
[TextViewRole(PredefinedTextViewRoles.Zoomable)]
10+
class ViewCreationListener : IWpfTextViewCreationListener
11+
{
12+
public void TextViewCreated(IWpfTextView textView)
13+
{
14+
textView.Options.SetOptionValue(DefaultWpfViewOptions.EnableMouseWheelZoomId, false);
15+
}
16+
}
17+
}

Backup/Properties/AssemblyInfo.cs

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("DisableMouseWheelZoom")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("DisableMouseWheelZoom")]
13+
[assembly: AssemblyCopyright("")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// Version information for an assembly consists of the following four values:
23+
//
24+
// Major Version
25+
// Minor Version
26+
// Build Number
27+
// Revision
28+
//
29+
// You can specify all the values or you can default the Build and Revision Numbers
30+
// by using the '*' as shown below:
31+
// [assembly: AssemblyVersion("1.0.*")]
32+
[assembly: AssemblyVersion("1.0.0.0")]
33+
[assembly: AssemblyFileVersion("1.0.0.0")]

Backup/ms-pl.txt

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Microsoft Public License (Ms-PL)
2+
3+
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
4+
5+
1. Definitions
6+
7+
The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law.
8+
9+
A "contribution" is the original software, or any additions or changes to the software.
10+
11+
A "contributor" is any person that distributes its contribution under this license.
12+
13+
"Licensed patents" are a contributor's patent claims that read directly on its contribution.
14+
15+
2. Grant of Rights
16+
17+
(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
18+
19+
(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
20+
21+
3. Conditions and Limitations
22+
23+
(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
24+
25+
(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
26+
27+
(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
28+
29+
(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
30+
31+
(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.

Backup/source.extension.vsixmanifest

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010">
3+
<Identifier Id="DisableMouseWheelZoom.NoahRichardst.fb70c64a-15d3-4384-ad2d-8e83a8bfd897">
4+
<Name>Disable Mouse Wheel Zoom</Name>
5+
<Author>Noah Richards</Author>
6+
<Version>1.4</Version>
7+
<Description xml:space="preserve">Disables zooming with the ctrl+mouse wheel gesture.</Description>
8+
<Locale>1033</Locale>
9+
<License>ms-pl.txt</License>
10+
<SupportedProducts>
11+
<VisualStudio Version="10.0">
12+
<Edition>Pro</Edition>
13+
</VisualStudio>
14+
<VisualStudio Version="11.0">
15+
<Edition>Pro</Edition>
16+
</VisualStudio>
17+
<VisualStudio Version="12.0">
18+
<Edition>Pro</Edition>
19+
</VisualStudio>
20+
<VisualStudio Version="14.0">
21+
<Edition>Pro</Edition>
22+
</VisualStudio>
23+
</SupportedProducts>
24+
<SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.0" />
25+
</Identifier>
26+
<References />
27+
<Content>
28+
<MefComponent>|%CurrentProject%|</MefComponent>
29+
</Content>
30+
</Vsix>

DisableMouseWheelZoom.csproj

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
34
<PropertyGroup>
45
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
56
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -11,9 +12,16 @@
1112
<AppDesignerFolder>Properties</AppDesignerFolder>
1213
<RootNamespace>DisableMouseWheelZoom</RootNamespace>
1314
<AssemblyName>DisableMouseWheelZoom</AssemblyName>
14-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
15+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1516
<FileAlignment>512</FileAlignment>
1617
<GeneratePkgDefFile>false</GeneratePkgDefFile>
18+
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
19+
<FileUpgradeFlags>
20+
</FileUpgradeFlags>
21+
<UpgradeBackupLocation>
22+
</UpgradeBackupLocation>
23+
<OldToolsVersion>4.0</OldToolsVersion>
24+
<TargetFrameworkProfile />
1725
</PropertyGroup>
1826
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1927
<DebugSymbols>true</DebugSymbols>
@@ -23,6 +31,7 @@
2331
<DefineConstants>DEBUG;TRACE</DefineConstants>
2432
<ErrorReport>prompt</ErrorReport>
2533
<WarningLevel>4</WarningLevel>
34+
<Prefer32Bit>false</Prefer32Bit>
2635
</PropertyGroup>
2736
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2837
<DebugType>pdbonly</DebugType>
@@ -31,6 +40,7 @@
3140
<DefineConstants>TRACE</DefineConstants>
3241
<ErrorReport>prompt</ErrorReport>
3342
<WarningLevel>4</WarningLevel>
43+
<Prefer32Bit>false</Prefer32Bit>
3444
</PropertyGroup>
3545
<ItemGroup>
3646
<Reference Include="Microsoft.VisualStudio.CoreUtility">
@@ -75,8 +85,13 @@
7585
<IncludeInVSIX>true</IncludeInVSIX>
7686
</Content>
7787
</ItemGroup>
88+
<PropertyGroup>
89+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
90+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
91+
</PropertyGroup>
7892
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
79-
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.VsSDK.targets" />
93+
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
94+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.VsSDK.targets" Condition="false" />
8095
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
8196
Other similar extension points exist, see Microsoft.Common.targets.
8297
<Target Name="BeforeBuild">

DisableMouseWheelZoom.sln

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

2-
Microsoft Visual Studio Solution File, Format Version 11.00
3-
# Visual Studio 2010
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25420.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
46
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DisableMouseWheelZoom", "DisableMouseWheelZoom.csproj", "{CAECD2A5-3FE2-413B-B1D5-55A46ED763B7}"
57
EndProject
68
Global

UpgradeLog.htm

43.5 KB
Binary file not shown.

source.extension.vsixmanifest

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@
2020
<VisualStudio Version="14.0">
2121
<Edition>Pro</Edition>
2222
</VisualStudio>
23+
<VisualStudio Version="15.0">
24+
<Edition>Pro</Edition>
25+
</VisualStudio>
2326
</SupportedProducts>
2427
<SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.0" />
2528
</Identifier>
2629
<References />
2730
<Content>
2831
<MefComponent>|%CurrentProject%|</MefComponent>
2932
</Content>
30-
</Vsix>
33+
</Vsix>

0 commit comments

Comments
 (0)