TesseractScreenReader.csproj 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <Import Project="C:\NuGetLocalRepo\ILRepack.2.0.18\build\ILRepack.props" Condition="Exists('C:\NuGetLocalRepo\ILRepack.2.0.18\build\ILRepack.props')" />
  4. <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  5. <PropertyGroup>
  6. <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  7. <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  8. <ProjectGuid>{70B65817-3B66-4822-9D87-62C9E703F377}</ProjectGuid>
  9. <OutputType>WinExe</OutputType>
  10. <RootNamespace>TesseractScreenReader</RootNamespace>
  11. <AssemblyName>TSR</AssemblyName>
  12. <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
  13. <FileAlignment>512</FileAlignment>
  14. <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  15. <Deterministic>true</Deterministic>
  16. <NuGetPackageImportStamp>
  17. </NuGetPackageImportStamp>
  18. </PropertyGroup>
  19. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  20. <PlatformTarget>AnyCPU</PlatformTarget>
  21. <DebugSymbols>true</DebugSymbols>
  22. <DebugType>full</DebugType>
  23. <Optimize>false</Optimize>
  24. <OutputPath>bin\Debug\</OutputPath>
  25. <DefineConstants>DEBUG;TRACE</DefineConstants>
  26. <ErrorReport>prompt</ErrorReport>
  27. <WarningLevel>4</WarningLevel>
  28. <LangVersion>8</LangVersion>
  29. </PropertyGroup>
  30. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  31. <PlatformTarget>AnyCPU</PlatformTarget>
  32. <DebugType>pdbonly</DebugType>
  33. <Optimize>true</Optimize>
  34. <OutputPath>bin\Release\</OutputPath>
  35. <DefineConstants>TRACE</DefineConstants>
  36. <ErrorReport>prompt</ErrorReport>
  37. <WarningLevel>4</WarningLevel>
  38. <LangVersion>8</LangVersion>
  39. <Prefer32Bit>false</Prefer32Bit>
  40. </PropertyGroup>
  41. <ItemGroup>
  42. <Reference Include="System" />
  43. <Reference Include="System.Core" />
  44. <Reference Include="System.Xml.Linq" />
  45. <Reference Include="System.Data.DataSetExtensions" />
  46. <Reference Include="Microsoft.CSharp" />
  47. <Reference Include="System.Data" />
  48. <Reference Include="System.Deployment" />
  49. <Reference Include="System.Drawing" />
  50. <Reference Include="System.Net.Http" />
  51. <Reference Include="System.Windows.Forms" />
  52. <Reference Include="System.Xml" />
  53. <Reference Include="Tesseract, Version=4.1.0.0, Culture=neutral, processorArchitecture=MSIL">
  54. <HintPath>C:\NuGetLocalRepo\Tesseract.4.1.0-beta1\lib\net45\Tesseract.dll</HintPath>
  55. </Reference>
  56. </ItemGroup>
  57. <ItemGroup>
  58. <Compile Include="TsrMainForm.cs">
  59. <SubType>Form</SubType>
  60. </Compile>
  61. <Compile Include="TsrMainForm.Designer.cs">
  62. <DependentUpon>TsrMainForm.cs</DependentUpon>
  63. </Compile>
  64. <Compile Include="TsrProgram.cs" />
  65. <Compile Include="Properties\AssemblyInfo.cs" />
  66. <EmbeddedResource Include="TsrMainForm.resx">
  67. <DependentUpon>TsrMainForm.cs</DependentUpon>
  68. </EmbeddedResource>
  69. </ItemGroup>
  70. <ItemGroup>
  71. <None Include="packages.config" />
  72. </ItemGroup>
  73. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  74. <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
  75. <PropertyGroup>
  76. <ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
  77. </PropertyGroup>
  78. <Error Condition="!Exists('C:\NuGetLocalRepo\Tesseract.4.1.0-beta1\build\Tesseract.targets')" Text="$([System.String]::Format('$(ErrorText)', 'C:\NuGetLocalRepo\Tesseract.4.1.0-beta1\build\Tesseract.targets'))" />
  79. <Error Condition="!Exists('C:\NuGetLocalRepo\ILRepack.2.0.18\build\ILRepack.props')" Text="$([System.String]::Format('$(ErrorText)', 'C:\NuGetLocalRepo\ILRepack.2.0.18\build\ILRepack.props'))" />
  80. </Target>
  81. <Import Project="C:\NuGetLocalRepo\Tesseract.4.1.0-beta1\build\Tesseract.targets" Condition="Exists('C:\NuGetLocalRepo\Tesseract.4.1.0-beta1\build\Tesseract.targets')" />
  82. <PropertyGroup>
  83. <PostBuildEvent>if $(ConfigurationName) == Release if not exist "$(TargetDir)Packed" md "$(TargetDir)Packed"
  84. if $(ConfigurationName) == Release $(ILRepack) /ndebug "/out:$(TargetDir)Packed\$(TargetFileName)" "$(TargetPath)" Tesseract.dll
  85. if $(ConfigurationName) == Release if exist "$(TargetDir)Packed\$(TargetFileName).config" del "$(TargetDir)Packed\$(TargetFileName).config"
  86. if $(ConfigurationName) == Release if not exist "$(TargetDir)Packed\chi_sim.traineddata" copy "$(TargetDir)chi_sim.traineddata" "$(TargetDir)Packed\"
  87. if $(ConfigurationName) == Release if not exist "$(TargetDir)Packed\x86" xcopy "$(TargetDir)x86" "$(TargetDir)Packed\x86\"
  88. if $(ConfigurationName) == Release if not exist "$(TargetDir)Packed\x64" xcopy "$(TargetDir)x64" "$(TargetDir)Packed\x64\"</PostBuildEvent>
  89. </PropertyGroup>
  90. </Project>