Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Codes/Translate.Core/Translate.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>key.pfx</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="CSharpRunJavascript">
Expand Down Expand Up @@ -85,7 +86,6 @@
<Compile Include="Translator\Youdao\YoudaoTranslator.cs" />
</ItemGroup>
<ItemGroup>
<None Include="key.pfx" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
Binary file removed Codes/Translate.Core/key.pfx
Binary file not shown.
6 changes: 2 additions & 4 deletions Codes/Translate.Settings/Translate.Settings.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>key.pfx</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
Expand Down Expand Up @@ -87,9 +88,6 @@
<Name>Translate.Core</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="key.pfx" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
Binary file removed Codes/Translate.Settings/key.pfx
Binary file not shown.
Binary file removed Codes/Visual Studio 2017 Translator/Key.snk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.VisualStudio.Utilities;
using Translate.Settings;

namespace Visual_Studio_2017_Translator.Adornment.TransResult
namespace Visual_Studio_2019_Translator.Adornment.TransResult
{
[Export(typeof(IWpfTextViewCreationListener))]
[ContentType("text")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Windows.Media;
using Translate.Settings;

namespace Visual_Studio_2017_Translator.Adornment.TransResult
namespace Visual_Studio_2019_Translator.Adornment.TransResult
{
public class TransAdornmentManager
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<UserControl x:Class="Visual_Studio_2017_Translator.Adornment.TransResult.TranslatorControl"
<UserControl x:Class="Visual_Studio_2019_Translator.Adornment.TransResult.TranslatorControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Translate.Core.Translator.Enums;
using Translate.Settings;

namespace Visual_Studio_2017_Translator.Adornment.TransResult
namespace Visual_Studio_2019_Translator.Adornment.TransResult
{
/// <summary>
/// Interaction logic for TranslatorControl.xaml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Windows.Media;
using Translate.Core.Translator.Enums;
using Translate.Settings;
using Visual_Studio_2017_Translator.Core.Utils;
using Visual_Studio_2019_Translator.Core.Utils;

namespace Visual_Studio_2017_Translator.Adornment.TransResult
namespace Visual_Studio_2019_Translator.Adornment.TransResult
{
public class TranslatorOutput
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.VisualStudio.Shell;
using Translate.Settings;

namespace Visual_Studio_2017_Translator.Adornment.Translate
namespace Visual_Studio_2019_Translator.Adornment.Translate
{
/// <summary>
/// how to create this ,you can see https://msdn.microsoft.com/en-us/library/cc138567.aspx
Expand All @@ -18,7 +18,7 @@ public TranslateClient() : base(null)
// we are not calling Dispose on this object. This is because ToolWindowPane calls Dispose on
// the object returned by the Content property.
this.Content = new TranslateClientControl(OptionsSettings.Settings);

}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<UserControl x:Class="Visual_Studio_2017_Translator.Adornment.Translate.TranslateClientControl"
<UserControl x:Class="Visual_Studio_2019_Translator.Adornment.Translate.TranslateClientControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="630" Height="400" Loaded="win_Loaded">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using Translate.Settings;
using Translate.Settings.TTS;

namespace Visual_Studio_2017_Translator.Adornment.Translate
namespace Visual_Studio_2019_Translator.Adornment.Translate
{
/// <summary>
/// TranslateClient.xaml 的交互逻辑
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
using Translate.Core.Translator.Utils;
using Translate.Settings;
using Translate.Settings.TTS;
using Visual_Studio_2017_Translator.Adornment.Translate;
using Visual_Studio_2017_Translator.Adornment.TransResult;
using Visual_Studio_2019_Translator.Adornment.Translate;
using Visual_Studio_2019_Translator.Adornment.TransResult;

namespace Visual_Studio_2017_Translator.Core.Utils
namespace Visual_Studio_2019_Translator.Core.Utils
{
public class MenuCmd
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using EnvDTE;

namespace Visual_Studio_2017_Translator.Core.Utils
namespace Visual_Studio_2019_Translator.Core.Utils
{
public class Output
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;

namespace Visual_Studio_2017_Translator.Core.Utils
namespace Visual_Studio_2019_Translator.Core.Utils
{
public class StatusBarCmd
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Utilities;

namespace Visual_Studio_2017_Translator.Core.Utils
namespace Visual_Studio_2019_Translator.Core.Utils
{
//[ContentType("code")]
[ContentType("text")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using EnvDTE;

namespace Visual_Studio_2017_Translator
namespace Visual_Studio_2019_Translator
{
public static class Global
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Visual_Studio_2017_Translator
namespace Visual_Studio_2019_Translator
{
public class GuidList
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Visual_Studio_2017_Translator
namespace Visual_Studio_2019_Translator
{
/// <summary>
/// In order to lazy some of the values ​​here and enumerate the value of the Translate Type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// 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("Visual_Studio_2017_Translator")]
[assembly: AssemblyTitle("Visual_Studio_2019_Translator")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Visual_Studio_2017_Translator")]
[assembly: AssemblyProduct("Visual_Studio_2019_Translator")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
Expand All @@ -23,8 +24,8 @@
<ProjectGuid>{DD23AB72-3722-4EEF-866F-534B6B3B9EE5}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Visual_Studio_2017_Translator</RootNamespace>
<AssemblyName>Visual Studio 2017 Translator</AssemblyName>
<RootNamespace>Visual_Studio_2019_Translator</RootNamespace>
<AssemblyName>Visual Studio 2019 Translator</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<GeneratePkgDefFile>true</GeneratePkgDefFile>
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer>
Expand Down Expand Up @@ -76,7 +77,6 @@
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="Key.snk" />
<None Include="packages.config" />
<Resource Include="Resources\fonts\iconfont.ttf" />
<None Include="source.extension.vsixmanifest">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.Win32;
using Visual_Studio_2017_Translator.Adornment.Translate;
using Visual_Studio_2017_Translator.Core.Utils;
using Visual_Studio_2019_Translator.Adornment.Translate;
using Visual_Studio_2019_Translator.Core.Utils;

namespace Visual_Studio_2017_Translator
namespace Visual_Studio_2019_Translator
{
/// <summary>
/// This is the class that implements the package exposed by this assembly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="Visual_Studio_2017_Translator.8fecb095-6cfc-45fa-9b5b-c153e0b78513" Version="1.0.8" Language="en-US" Publisher="Kerwin" />
<DisplayName>Visual_Studio_2017_Translator</DisplayName>
<Identity Id="Visual_Studio_2019_Translator.9184A175-6476-44B2-A26F-387B0C487830" Version="1.0.0" Language="en-US" Publisher="lwi" />
<DisplayName>Visual_Studio_2019_Translator</DisplayName>
<Description xml:space="preserve">Translate selected text via Google or Bing or Baidu or Youdao translation</Description>
<MoreInfo>https://www.zhanghuanglong.com/detail/visual-studio-translation-extension</MoreInfo>
<Icon>Resources\translate_128.png</Icon>
<PreviewImage>Resources\previewimage.png</PreviewImage>
<Tags>Translate, Microsoft Translator, Bing Translator, Baidu Translator, Youdao Translator</Tags>
</Metadata>
<Installation>
<InstallationTarget Version="[15.0,16.0)" Id="Microsoft.VisualStudio.Pro" />
<InstallationTarget Version="[15.0,16.0)" Id="Microsoft.VisualStudio.Enterprise" />
<InstallationTarget Version="[15.0,16.0)" Id="Microsoft.VisualStudio.Community" />
<InstallationTarget Version="[15.0,17.0)" Id="Microsoft.VisualStudio.Pro" />
<InstallationTarget Version="[15.0,17.0)" Id="Microsoft.VisualStudio.Enterprise" />
<InstallationTarget Version="[15.0,17.0)" Id="Microsoft.VisualStudio.Community" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
<Dependency Id="Microsoft.VisualStudio.MPF.15.0" DisplayName="Visual Studio MPF 15.0" d:Source="Installed" Version="[15.0]" />
</Dependencies>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,17.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%|" />
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="Visual Studio 2019 Translator" Path="|Visual Studio 2019 Translator;PkgdefProjectOutputGroup|" />
<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="Visual Studio 2019 Translator" Path="|Visual Studio 2019 Translator|" />
</Assets>
</PackageManifest>
6 changes: 3 additions & 3 deletions Codes/VsExtensions.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2008
# Visual Studio Version 16
VisualStudioVersion = 16.0.29020.237
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "VsTranslator", "VsTranslator", "{3523F31E-AD73-48AD-990F-65CA6645A773}"
EndProject
Expand All @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Translate.Settings", "Trans
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TranslateService", "TranslateService\TranslateService.csproj", "{575E8FD9-C16D-43BD-999C-6DCC8E31E2A2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Visual Studio 2017 Translator", "Visual Studio 2017 Translator\Visual Studio 2017 Translator.csproj", "{DD23AB72-3722-4EEF-866F-534B6B3B9EE5}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Visual Studio 2019 Translator", "Visual Studio 2019 Translator\Visual Studio 2019 Translator.csproj", "{DD23AB72-3722-4EEF-866F-534B6B3B9EE5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "README", "README", "{787E0668-720A-45DC-BC92-089FD932726B}"
ProjectSection(SolutionItems) = preProject
Expand Down
4 changes: 2 additions & 2 deletions Codes/VsTranslator/VsTranslator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>key.pfx</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
Expand Down Expand Up @@ -96,7 +97,6 @@
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="key.pfx" />
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
Expand Down
Binary file removed Codes/VsTranslator/key.pfx
Binary file not shown.