|
@@ -0,0 +1,262 @@
|
|
|
+<Project ToolsVersion="17.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
|
+ <!--
|
|
|
+ This section defines project-level properties.
|
|
|
+
|
|
|
+ AssemblyName
|
|
|
+ Name of the output assembly.
|
|
|
+ Configuration
|
|
|
+ Specifies a default value for debug.
|
|
|
+ OutputType
|
|
|
+ Must be "Library" for VSTO.
|
|
|
+ Platform
|
|
|
+ Specifies what CPU the output of this project can run on.
|
|
|
+ NoStandardLibraries
|
|
|
+ Set to "false" for VSTO.
|
|
|
+ RootNamespace
|
|
|
+ In C#, this specifies the namespace given to new files. In VB, all objects are
|
|
|
+ wrapped in this namespace at runtime.
|
|
|
+ -->
|
|
|
+ <PropertyGroup>
|
|
|
+ <ProjectTypeGuids>{BAA0C2D2-18E2-41B9-852F-F413020CAA33};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
|
|
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
|
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
|
+ <ProjectGuid>{D8954476-CEAB-42AF-9926-ECE0AF26FE8F}</ProjectGuid>
|
|
|
+ <OutputType>Library</OutputType>
|
|
|
+ <NoStandardLibraries>false</NoStandardLibraries>
|
|
|
+ <RootNamespace>HTEXWordTest</RootNamespace>
|
|
|
+ <AssemblyName>HTEXWordTest</AssemblyName>
|
|
|
+ <LoadBehavior>3</LoadBehavior>
|
|
|
+ <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
|
|
+ <DefineConstants>VSTO40</DefineConstants>
|
|
|
+ <BootstrapperEnabled>true</BootstrapperEnabled>
|
|
|
+ <BootstrapperComponentsLocation>HomeSite</BootstrapperComponentsLocation>
|
|
|
+ <NuGetPackageImportStamp>
|
|
|
+ </NuGetPackageImportStamp>
|
|
|
+ </PropertyGroup>
|
|
|
+ <ItemGroup>
|
|
|
+ <BootstrapperPackage Include="Microsoft.VSTORuntime.4.0">
|
|
|
+ <Visible>False</Visible>
|
|
|
+ <ProductName>Microsoft Visual Studio 2010 Tools for Office Runtime %28x86 and x64%29</ProductName>
|
|
|
+ <Install>true</Install>
|
|
|
+ </BootstrapperPackage>
|
|
|
+ </ItemGroup>
|
|
|
+ <PropertyGroup>
|
|
|
+ <!--
|
|
|
+ OfficeApplication
|
|
|
+ Add-in host application
|
|
|
+ -->
|
|
|
+ <OfficeApplication>Word</OfficeApplication>
|
|
|
+ </PropertyGroup>
|
|
|
+ <!--
|
|
|
+ This section defines properties that are set when the "Debug" configuration is selected.
|
|
|
+
|
|
|
+ DebugSymbols
|
|
|
+ If "true", create symbols (.pdb). If "false", do not create symbols.
|
|
|
+ DefineConstants
|
|
|
+ Constants defined for the preprocessor.
|
|
|
+ EnableUnmanagedDebugging
|
|
|
+ If "true", starting the debugger will attach both managed and unmanaged debuggers.
|
|
|
+ Optimize
|
|
|
+ If "true", optimize the build output. If "false", do not optimize.
|
|
|
+ OutputPath
|
|
|
+ Output path of project relative to the project file.
|
|
|
+ WarningLevel
|
|
|
+ Warning level for the compiler.
|
|
|
+ -->
|
|
|
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
|
+ <DebugSymbols>true</DebugSymbols>
|
|
|
+ <DebugType>full</DebugType>
|
|
|
+ <Optimize>false</Optimize>
|
|
|
+ <OutputPath>bin\Debug\</OutputPath>
|
|
|
+ <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
|
|
+ <DefineConstants>$(DefineConstants);DEBUG;TRACE</DefineConstants>
|
|
|
+ <WarningLevel>4</WarningLevel>
|
|
|
+ </PropertyGroup>
|
|
|
+ <!--
|
|
|
+ This section defines properties that are set when the "Release" configuration is selected.
|
|
|
+
|
|
|
+ DebugSymbols
|
|
|
+ If "true", create symbols (.pdb). If "false", do not create symbols.
|
|
|
+ DefineConstants
|
|
|
+ Constants defined for the preprocessor.
|
|
|
+ EnableUnmanagedDebugging
|
|
|
+ If "true", starting the debugger will attach both managed and unmanaged debuggers.
|
|
|
+ Optimize
|
|
|
+ If "true", optimize the build output. If "false", do not optimize.
|
|
|
+ OutputPath
|
|
|
+ Output path of project relative to the project file.
|
|
|
+ WarningLevel
|
|
|
+ Warning level for the compiler.
|
|
|
+ -->
|
|
|
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
|
+ <DebugType>pdbonly</DebugType>
|
|
|
+ <Optimize>true</Optimize>
|
|
|
+ <OutputPath>bin\Release\</OutputPath>
|
|
|
+ <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
|
|
+ <DefineConstants>$(DefineConstants);TRACE</DefineConstants>
|
|
|
+ <WarningLevel>4</WarningLevel>
|
|
|
+ </PropertyGroup>
|
|
|
+ <!--
|
|
|
+ This section specifies references for the project.
|
|
|
+ -->
|
|
|
+ <ItemGroup>
|
|
|
+ <Reference Include="Accessibility" />
|
|
|
+ <Reference Include="Microsoft.Web.WebView2.Core, Version=1.0.2210.55, Culture=neutral, PublicKeyToken=2a8ab48044d2601e, processorArchitecture=MSIL">
|
|
|
+ <HintPath>..\packages\Microsoft.Web.WebView2.1.0.2210.55\lib\net45\Microsoft.Web.WebView2.Core.dll</HintPath>
|
|
|
+ </Reference>
|
|
|
+ <Reference Include="Microsoft.Web.WebView2.WinForms, Version=1.0.2210.55, Culture=neutral, PublicKeyToken=2a8ab48044d2601e, processorArchitecture=MSIL">
|
|
|
+ <HintPath>..\packages\Microsoft.Web.WebView2.1.0.2210.55\lib\net45\Microsoft.Web.WebView2.WinForms.dll</HintPath>
|
|
|
+ </Reference>
|
|
|
+ <Reference Include="Microsoft.Web.WebView2.Wpf, Version=1.0.2210.55, Culture=neutral, PublicKeyToken=2a8ab48044d2601e, processorArchitecture=MSIL">
|
|
|
+ <HintPath>..\packages\Microsoft.Web.WebView2.1.0.2210.55\lib\net45\Microsoft.Web.WebView2.Wpf.dll</HintPath>
|
|
|
+ </Reference>
|
|
|
+ <Reference Include="RtfPipe, Version=2.0.7677.4303, Culture=neutral, PublicKeyToken=5f6ab4ce530296d2, processorArchitecture=MSIL">
|
|
|
+ <HintPath>..\packages\RtfPipe.2.0.7677.4303\lib\net45\RtfPipe.dll</HintPath>
|
|
|
+ </Reference>
|
|
|
+ <Reference Include="System" />
|
|
|
+ <Reference Include="System.Data" />
|
|
|
+ <Reference Include="System.Drawing" />
|
|
|
+ <Reference Include="System.Windows.Forms" />
|
|
|
+ <Reference Include="System.Xml" />
|
|
|
+ <Reference Include="System.Core" />
|
|
|
+ <Reference Include="System.Xml.Linq" />
|
|
|
+ <Reference Include="System.Data.DataSetExtensions" />
|
|
|
+ <Reference Include="Microsoft.CSharp" />
|
|
|
+ </ItemGroup>
|
|
|
+ <ItemGroup>
|
|
|
+ <Reference Include="Microsoft.Office.Tools.v4.0.Framework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
|
|
+ <Private>False</Private>
|
|
|
+ </Reference>
|
|
|
+ <Reference Include="Microsoft.VisualStudio.Tools.Applications.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
|
|
+ <Private>False</Private>
|
|
|
+ </Reference>
|
|
|
+ <Reference Include="Microsoft.Office.Tools, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
|
|
+ <Private>False</Private>
|
|
|
+ </Reference>
|
|
|
+ <Reference Include="Microsoft.Office.Tools.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
|
|
+ <Private>False</Private>
|
|
|
+ </Reference>
|
|
|
+ <Reference Include="Microsoft.Office.Tools.Word, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
|
|
+ <Private>False</Private>
|
|
|
+ </Reference>
|
|
|
+ </ItemGroup>
|
|
|
+ <ItemGroup>
|
|
|
+ <Reference Include="Microsoft.Office.Tools.Common.v4.0.Utilities, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
|
|
+ <Private>True</Private>
|
|
|
+ </Reference>
|
|
|
+ </ItemGroup>
|
|
|
+ <ItemGroup>
|
|
|
+ <Reference Include="Office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
|
|
|
+ <Private>False</Private>
|
|
|
+ <EmbedInteropTypes>true</EmbedInteropTypes>
|
|
|
+ </Reference>
|
|
|
+ <Reference Include="Microsoft.Office.Interop.Word, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
|
|
|
+ <Private>False</Private>
|
|
|
+ <EmbedInteropTypes>true</EmbedInteropTypes>
|
|
|
+ </Reference>
|
|
|
+ <Reference Include="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
|
+ <Private>False</Private>
|
|
|
+ </Reference>
|
|
|
+ </ItemGroup>
|
|
|
+ <!--
|
|
|
+ This section defines the user source files that are part of the project.
|
|
|
+
|
|
|
+ A "Compile" element specifies a source file to compile.
|
|
|
+ An "EmbeddedResource" element specifies an .resx file for embedded resources.
|
|
|
+ A "None" element specifies a file that is not to be passed to the compiler (for instance,
|
|
|
+ a text file or XML file).
|
|
|
+ The "AppDesigner" element specifies the directory where the application properties files
|
|
|
+ can be found.
|
|
|
+ -->
|
|
|
+ <ItemGroup>
|
|
|
+ <Compile Include="Form1.cs">
|
|
|
+ <SubType>Form</SubType>
|
|
|
+ </Compile>
|
|
|
+ <Compile Include="Form1.Designer.cs">
|
|
|
+ <DependentUpon>Form1.cs</DependentUpon>
|
|
|
+ </Compile>
|
|
|
+ <Compile Include="Properties\AssemblyInfo.cs">
|
|
|
+ <SubType>Code</SubType>
|
|
|
+ </Compile>
|
|
|
+ <EmbeddedResource Include="Form1.resx">
|
|
|
+ <DependentUpon>Form1.cs</DependentUpon>
|
|
|
+ </EmbeddedResource>
|
|
|
+ <EmbeddedResource Include="Properties\Resources.resx">
|
|
|
+ <Generator>ResXFileCodeGenerator</Generator>
|
|
|
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
|
|
+ <SubType>Designer</SubType>
|
|
|
+ </EmbeddedResource>
|
|
|
+ <Compile Include="Properties\Resources.Designer.cs">
|
|
|
+ <AutoGen>True</AutoGen>
|
|
|
+ <DependentUpon>Resources.resx</DependentUpon>
|
|
|
+ </Compile>
|
|
|
+ <EmbeddedResource Include="RibbonWord.resx">
|
|
|
+ <DependentUpon>RibbonWord.cs</DependentUpon>
|
|
|
+ </EmbeddedResource>
|
|
|
+ <None Include="HTEXWordTest_TemporaryKey.pfx" />
|
|
|
+ <None Include="packages.config" />
|
|
|
+ <None Include="Properties\Settings.settings">
|
|
|
+ <Generator>SettingsSingleFileGenerator</Generator>
|
|
|
+ <LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
|
|
+ </None>
|
|
|
+ <Compile Include="Properties\Settings.Designer.cs">
|
|
|
+ <AutoGen>True</AutoGen>
|
|
|
+ <DependentUpon>Settings.settings</DependentUpon>
|
|
|
+ </Compile>
|
|
|
+ <Compile Include="Ribbon.cs">
|
|
|
+ <XmlRibbon>true</XmlRibbon>
|
|
|
+ </Compile>
|
|
|
+ <Compile Include="RibbonWord.cs">
|
|
|
+ <SubType>Component</SubType>
|
|
|
+ </Compile>
|
|
|
+ <Compile Include="RibbonWord.Designer.cs">
|
|
|
+ <DependentUpon>RibbonWord.cs</DependentUpon>
|
|
|
+ </Compile>
|
|
|
+ <Compile Include="ThisAddIn.cs">
|
|
|
+ <SubType>Code</SubType>
|
|
|
+ </Compile>
|
|
|
+ <None Include="ThisAddIn.Designer.xml">
|
|
|
+ <DependentUpon>ThisAddIn.cs</DependentUpon>
|
|
|
+ </None>
|
|
|
+ <Compile Include="ThisAddIn.Designer.cs">
|
|
|
+ <DependentUpon>ThisAddIn.Designer.xml</DependentUpon>
|
|
|
+ </Compile>
|
|
|
+ <AppDesigner Include="Properties\" />
|
|
|
+ </ItemGroup>
|
|
|
+ <PropertyGroup>
|
|
|
+ <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
|
|
+ <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
|
|
+ </PropertyGroup>
|
|
|
+ <PropertyGroup>
|
|
|
+ <SignManifests>true</SignManifests>
|
|
|
+ </PropertyGroup>
|
|
|
+ <PropertyGroup>
|
|
|
+ <ManifestKeyFile>HTEXWordTest_TemporaryKey.pfx</ManifestKeyFile>
|
|
|
+ </PropertyGroup>
|
|
|
+ <PropertyGroup>
|
|
|
+ <ManifestCertificateThumbprint>5A189EC8C289E2B0749F91590814690FB9372568</ManifestCertificateThumbprint>
|
|
|
+ </PropertyGroup>
|
|
|
+ <!-- Include the build rules for a C# project. -->
|
|
|
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
|
+ <!-- Include additional build rules for an Office application add-in. -->
|
|
|
+ <Import Project="$(VSToolsPath)\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets" Condition="'$(VSToolsPath)' != ''" />
|
|
|
+ <!-- This section defines VSTO properties that describe the host-changeable project properties. -->
|
|
|
+ <ProjectExtensions>
|
|
|
+ <VisualStudio>
|
|
|
+ <FlavorProperties GUID="{BAA0C2D2-18E2-41B9-852F-F413020CAA33}">
|
|
|
+ <ProjectProperties HostName="Word" HostPackage="{29A7B9D7-A7F1-4328-8EF0-6B2D1A56B2C1}" OfficeVersion="15.0" VstxVersion="4.0" ApplicationType="Word" Language="cs" TemplatesPath="" DebugInfoExeName="#Software\Microsoft\Office\16.0\Word\InstallRoot\Path#WINWORD.EXE" DebugInfoCommandLine="/x" AddItemTemplatesGuid="{51063C3A-E220-4D12-8922-BDA915ACD783}" />
|
|
|
+ <Host Name="Word" GeneratedCodeNamespace="HTEXWordTest" IconIndex="0">
|
|
|
+ <HostItem Name="ThisAddIn" Code="ThisAddIn.cs" CanonicalName="AddIn" CanActivate="false" IconIndex="1" Blueprint="ThisAddIn.Designer.xml" GeneratedCode="ThisAddIn.Designer.cs" />
|
|
|
+ </Host>
|
|
|
+ </FlavorProperties>
|
|
|
+ </VisualStudio>
|
|
|
+ </ProjectExtensions>
|
|
|
+ <Import Project="..\packages\Microsoft.Web.WebView2.1.0.2210.55\build\Microsoft.Web.WebView2.targets" Condition="Exists('..\packages\Microsoft.Web.WebView2.1.0.2210.55\build\Microsoft.Web.WebView2.targets')" />
|
|
|
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
|
|
+ <PropertyGroup>
|
|
|
+ <ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
|
|
|
+ </PropertyGroup>
|
|
|
+ <Error Condition="!Exists('..\packages\Microsoft.Web.WebView2.1.0.2210.55\build\Microsoft.Web.WebView2.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Web.WebView2.1.0.2210.55\build\Microsoft.Web.WebView2.targets'))" />
|
|
|
+ </Target>
|
|
|
+</Project>
|