|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 |
| -<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 2 | +<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
3 | 3 | <PropertyGroup>
|
4 | 4 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
5 | 5 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
10 | 10 | <AppDesignerFolder>Properties</AppDesignerFolder>
|
11 | 11 | <RootNamespace>OpenNMT</RootNamespace>
|
12 | 12 | <AssemblyName>OpenNMT</AssemblyName>
|
13 |
| - <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
| 13 | + <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> |
14 | 14 | <FileUpgradeFlags>
|
15 | 15 | </FileUpgradeFlags>
|
16 | 16 | <OldToolsVersion>3.5</OldToolsVersion>
|
|
39 | 39 | <AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
|
40 | 40 | <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
|
41 | 41 | <TargetFrameworkProfile />
|
| 42 | + <NuGetPackageImportStamp> |
| 43 | + </NuGetPackageImportStamp> |
42 | 44 | </PropertyGroup>
|
43 | 45 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
44 | 46 | <DebugSymbols>true</DebugSymbols>
|
45 | 47 | <DebugType>full</DebugType>
|
46 | 48 | <Optimize>false</Optimize>
|
47 |
| - <OutputPath>..\..\..\OpenNMTPluginBuild\</OutputPath> |
| 49 | + <OutputPath>..\..\..\..\AppData\Roaming\SDL\SDL Trados Studio\14\Plugins\Packages\</OutputPath> |
48 | 50 | <DefineConstants>DEBUG;TRACE</DefineConstants>
|
49 | 51 | <ErrorReport>prompt</ErrorReport>
|
50 | 52 | <WarningLevel>4</WarningLevel>
|
51 | 53 | <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
52 | 54 | <RegisterForComInterop>false</RegisterForComInterop>
|
| 55 | + <Prefer32Bit>false</Prefer32Bit> |
53 | 56 | </PropertyGroup>
|
54 | 57 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
55 | 58 | <DebugType>full</DebugType>
|
56 | 59 | <Optimize>false</Optimize>
|
57 |
| - <OutputPath>..\..\..\OpenNMTPluginBuild\</OutputPath> |
| 60 | + <OutputPath>..\..\..\..\AppData\Roaming\SDL\SDL Trados Studio\14\Plugins\Packages\</OutputPath> |
58 | 61 | <DefineConstants>TRACE</DefineConstants>
|
59 | 62 | <ErrorReport>prompt</ErrorReport>
|
60 | 63 | <WarningLevel>4</WarningLevel>
|
61 | 64 | <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
| 65 | + <Prefer32Bit>false</Prefer32Bit> |
62 | 66 | </PropertyGroup>
|
63 | 67 | <ItemGroup>
|
64 |
| - <Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> |
65 |
| - <HintPath>packages\Newtonsoft.Json.10.0.3\lib\net35\Newtonsoft.Json.dll</HintPath> |
66 |
| - </Reference> |
67 |
| - <Reference Include="Sdl.Core.PluginFramework, Version=1.8.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888, processorArchitecture=MSIL"> |
68 |
| - <SpecificVersion>False</SpecificVersion> |
69 |
| - <HintPath>$(ProgramFiles)\SDL\SDL Trados Studio\Studio3\Sdl.Core.PluginFramework.dll</HintPath> |
| 68 | + <Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> |
| 69 | + <HintPath>packages\Newtonsoft.Json.12.0.2\lib\net40\Newtonsoft.Json.dll</HintPath> |
70 | 70 | </Reference>
|
71 | 71 | <Reference Include="Sdl.Core.Globalization, Version=1.8.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888, processorArchitecture=MSIL">
|
72 | 72 | <SpecificVersion>False</SpecificVersion>
|
73 |
| - <HintPath>$(ProgramFiles)\SDL\SDL Trados Studio\Studio3\Sdl.Core.Globalization.dll</HintPath> |
| 73 | + <HintPath>..\..\..\..\..\..\Program Files (x86)\SDL\SDL Trados Studio\Studio5\Sdl.Core.Globalization.dll</HintPath> |
| 74 | + </Reference> |
| 75 | + <Reference Include="Sdl.Core.PluginFramework, Version=1.8.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888, processorArchitecture=MSIL"> |
| 76 | + <HintPath>packages\Sdl.Core.PluginFramework.1.8.0\lib\net45\Sdl.Core.PluginFramework.dll</HintPath> |
| 77 | + </Reference> |
| 78 | + <Reference Include="Sdl.Core.PluginFramework.PackageSupport, Version=1.8.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888, processorArchitecture=MSIL"> |
| 79 | + <HintPath>packages\Sdl.Core.PluginFramework.1.8.0\lib\net45\Sdl.Core.PluginFramework.PackageSupport.dll</HintPath> |
74 | 80 | </Reference>
|
75 | 81 | <Reference Include="Sdl.LanguagePlatform.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888, processorArchitecture=MSIL">
|
76 | 82 | <SpecificVersion>False</SpecificVersion>
|
77 |
| - <HintPath>$(ProgramFiles)\SDL\SDL Trados Studio\Studio3\Sdl.LanguagePlatform.Core.dll</HintPath> |
| 83 | + <HintPath>..\..\..\..\..\..\Program Files (x86)\SDL\SDL Trados Studio\Studio5\Sdl.LanguagePlatform.Core.dll</HintPath> |
78 | 84 | </Reference>
|
79 | 85 | <Reference Include="Sdl.LanguagePlatform.TranslationMemory, Version=1.6.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888, processorArchitecture=MSIL">
|
80 | 86 | <SpecificVersion>False</SpecificVersion>
|
81 |
| - <HintPath>$(ProgramFiles)\SDL\SDL Trados Studio\Studio3\Sdl.LanguagePlatform.TranslationMemory.dll</HintPath> |
| 87 | + <HintPath>..\..\..\..\..\..\Program Files (x86)\SDL\SDL Trados Studio\Studio5\Sdl.LanguagePlatform.TranslationMemory.dll</HintPath> |
82 | 88 | </Reference>
|
83 | 89 | <Reference Include="Sdl.LanguagePlatform.TranslationMemoryApi, Version=1.6.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888, processorArchitecture=MSIL">
|
84 | 90 | <SpecificVersion>False</SpecificVersion>
|
85 |
| - <HintPath>$(ProgramFiles)\SDL\SDL Trados Studio\Studio3\Sdl.LanguagePlatform.TranslationMemoryApi.dll</HintPath> |
| 91 | + <HintPath>..\..\..\..\..\..\Program Files (x86)\SDL\SDL Trados Studio\Studio5\Sdl.LanguagePlatform.TranslationMemoryApi.dll</HintPath> |
86 | 92 | </Reference>
|
87 | 93 | <Reference Include="System" />
|
88 | 94 | <Reference Include="System.Core">
|
|
105 | 111 | <DependentUpon>OpenNMTConfDialog.cs</DependentUpon>
|
106 | 112 | </Compile>
|
107 | 113 | <Compile Include="RestClient.cs" />
|
108 |
| - <Compile Include="ListTranslationOptions.cs" /> |
109 |
| - <Compile Include="ListTranslationProvider.cs" /> |
110 |
| - <Compile Include="ListTranslationProviderElementVisitor.cs" /> |
111 |
| - <Compile Include="ListTranslationProviderFactory.cs" /> |
112 |
| - <Compile Include="ListTranslationProviderWinFormsUI.cs" /> |
113 |
| - <Compile Include="ListTranslationProviderLanguageDirection.cs" /> |
| 114 | + <Compile Include="OpenNMTTranslationOptions.cs" /> |
| 115 | + <Compile Include="OpenNMTTranslationProvider.cs" /> |
| 116 | + <Compile Include="OpenNMTTranslationProviderElementVisitor.cs" /> |
| 117 | + <Compile Include="OpenNMTTranslationProviderFactory.cs" /> |
| 118 | + <Compile Include="OpenNMTTranslationProviderWinFormsUI.cs" /> |
| 119 | + <Compile Include="OpenNMTTranslationProviderLanguageDirection.cs" /> |
114 | 120 | <Compile Include="PluginResources.Designer.cs">
|
115 | 121 | <AutoGen>True</AutoGen>
|
116 | 122 | <DesignTime>True</DesignTime>
|
|
168 | 174 | </BootstrapperPackage>
|
169 | 175 | </ItemGroup>
|
170 | 176 | <ItemGroup>
|
| 177 | + <None Include="app.config" /> |
171 | 178 | <None Include="key.snk" />
|
172 | 179 | <None Include="packages.config" />
|
173 | 180 | </ItemGroup>
|
|
177 | 184 | <PropertyGroup>
|
178 | 185 | <ApplicationIcon>
|
179 | 186 | </ApplicationIcon>
|
| 187 | + <PluginDeploymentPath>$(AppData)\SDL\SDL Trados Studio\14\Plugins</PluginDeploymentPath> |
180 | 188 | </PropertyGroup>
|
181 | 189 | <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
182 |
| - <Import Project="C:\Program Files (x86)\MSBuild\SDL\SDLTradosStudio\11\Sdl.Core.PluginFramework.Build.targets" /> |
| 190 | + <Import Project="packages\Sdl.Core.PluginFramework.Build.15.0.2\build\net45\Sdl.Core.PluginFramework.Build.targets" Condition="Exists('packages\Sdl.Core.PluginFramework.Build.15.0.2\build\net45\Sdl.Core.PluginFramework.Build.targets')" /> |
| 191 | + <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
| 192 | + <PropertyGroup> |
| 193 | + <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> |
| 194 | + </PropertyGroup> |
| 195 | + <Error Condition="!Exists('packages\Sdl.Core.PluginFramework.Build.15.0.2\build\net45\Sdl.Core.PluginFramework.Build.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Sdl.Core.PluginFramework.Build.15.0.2\build\net45\Sdl.Core.PluginFramework.Build.targets'))" /> |
| 196 | + </Target> |
183 | 197 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
184 | 198 | Other similar extension points exist, see Microsoft.Common.targets.
|
185 | 199 | <Target Name="BeforeBuild">
|
|
0 commit comments