System.Data.SQLite
Check-in [e1d9903754]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Rename 'TryToFindVsSdk2017' MSBuild target to 'MaybeFindVsSdk2017'. Add 'MaybeMissingVsSdk2017' MSBuild target. Call both of them from the 'InitialTargets' property so they can actually override the build processing, if necessary.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | vs2017
Files: files | file ages | folders
SHA1: e1d9903754415f773b32626833e1ce671938d455
User & Date: mistachkin 2017-08-02 21:19:45
Context
2017-08-02
21:20
Fix typos in the 'testlinq' project file for Visual Studio 2017. check-in: fa7b063622 user: mistachkin tags: vs2017
21:19
Rename 'TryToFindVsSdk2017' MSBuild target to 'MaybeFindVsSdk2017'. Add 'MaybeMissingVsSdk2017' MSBuild target. Call both of them from the 'InitialTargets' property so they can actually override the build processing, if necessary. check-in: e1d9903754 user: mistachkin tags: vs2017
20:53
Corrections to the 'TryToFindVsSdk2017' build target. Also, make it possible to use the target without needing the 'SQLiteNetDir' MSBuild property. check-in: 628098f876 user: mistachkin tags: vs2017
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to SQLite.Designer/SQLite.Designer.2017.csproj.

     3      3    *
     4      4    * SQLite.Designer.2017.csproj -
     5      5    *
     6      6    * Written by Joe Mistachkin.
     7      7    * Released to the public domain, use at your own risk!
     8      8    *
     9      9   -->
    10         -<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
           10  +<Project InitialTargets="MaybeFindVsSdk2017;MaybeMissingVsSdk2017" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    11     11     <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
    12     12     <PropertyGroup>
    13     13       <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    14     14       <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    15     15       <ProjectGuid>{9B4A5CF6-5BE5-4926-ACC7-B729A8C05198}</ProjectGuid>
    16     16       <OutputType>Library</OutputType>
    17     17       <AppDesignerFolder>Properties</AppDesignerFolder>
................................................................................
   204    204     <ItemGroup>
   205    205       <None Include="Resources\info.png" />
   206    206       <None Include="Resources\ToolboxItems.txt" />
   207    207       <None Include="source.extension.vsixmanifest" />
   208    208     </ItemGroup>
   209    209     <Import Project="$(SQLiteNetDir)\System.Data.SQLite\Targets\System.Data.SQLite.Properties.targets" />
   210    210     <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
   211         -  <PropertyGroup>
   212         -    <PrepareForBuildDependsOn>
   213         -      $(PrepareForBuildDependsOn);
   214         -      TryToFindVsSdk2017;
   215         -    </PrepareForBuildDependsOn>
   216         -  </PropertyGroup>
   217    211     <PropertyGroup Condition="'$(NetFx47)' == 'false'">
   218    212       <!--
   219    213           NOTE: We cannot build this project unless the version of the .NET
   220    214                 Framework matches exactly.
   221    215       -->
   222    216       <BuildDependsOn>
   223    217         WrongNetFx
   224         -    </BuildDependsOn>
   225         -  </PropertyGroup>
   226         -  <PropertyGroup Condition="'$(VSSDK150Install)' == '' Or
   227         -                            !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v4.0\Microsoft.Data.ConnectionUI.dll') Or
   228         -                            !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v4.0\Microsoft.VisualStudio.Data.dll') Or
   229         -                            !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v4.0\Microsoft.VisualStudio.Data.Services.dll') Or
   230         -                            !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v2.0\Microsoft.VisualStudio.OLE.Interop.dll') Or
   231         -                            !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v4.0\Microsoft.VisualStudio.Shell.15.0.dll') Or
   232         -                            !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v2.0\Microsoft.VisualStudio.Shell.Interop.dll') Or
   233         -                            !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v2.0\Microsoft.VisualStudio.Shell.Interop.8.0.dll') Or
   234         -                            !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v2.0\Microsoft.VisualStudio.Shell.Interop.9.0.dll') Or
   235         -                            !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v2.0\Microsoft.VisualStudio.Shell.Interop.10.0.dll')">
   236         -    <!--
   237         -        NOTE: We cannot build this project without the necessary reference
   238         -              assemblies; therefore, skip building it altogether.
   239         -    -->
   240         -    <BuildDependsOn>
   241         -      MissingVsSdk
   242    218       </BuildDependsOn>
   243    219     </PropertyGroup>
   244    220     <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
   245    221          Other similar extension points exist, see Microsoft.Common.targets.
   246    222     <Target Name="BeforeBuild">
   247    223     </Target>
   248    224     <Target Name="AfterBuild">
   249    225     </Target>
   250    226     -->
   251    227   </Project>

Changes to Targets/SQLite.NET.targets.

   257    257   
   258    258       <Exec Condition="'$(DoesMachineMatchPlatform)' != 'false'"
   259    259             Command="XCOPY &quot;$(OutDir)$(TargetName).*&quot; &quot;$(OutDir)..\..\$(BaseConfiguration)\bin\&quot; /D /E /V /I /F /H /Y" />
   260    260     </Target>
   261    261   
   262    262     <!--
   263    263     ******************************************************************************
          264  +  **                        Visual Studio 2017 Targets                        **
          265  +  ******************************************************************************
   264    266     -->
   265    267   
   266         -  <Target Name="TryToFindVsSdk2017"
   267         -          Condition="'$(TryToFindVsSdk2017)' != 'false' And
          268  +  <Target Name="MaybeFindVsSdk2017"
          269  +          Condition="'$(MaybeFindVsSdk2017)' != 'false' And
   268    270                        '$(MSBuildProjectDirectory)' != '' And
   269    271                        !HasTrailingSlash('$(MSBuildProjectDirectory)') And
   270    272                        Exists('$(MSBuildProjectDirectory)\..\Externals\vswhere\vswhere.exe')">
   271    273       <!--
   272    274           HACK: Use a couple undocumented properties of the Exec task in order
   273    275                 to capture the console output of the "vswhere" command.  This
   274    276                 is needed to locate the SDK for Visual Studio 2017.  For more
................................................................................
   284    286       <CreateProperty Condition="'$(VS150INSTALLATIONPATH)' != '' And
   285    287                                  !HasTrailingSlash('$(VS150INSTALLATIONPATH)') And
   286    288                                  Exists('$(VS150INSTALLATIONPATH)\VSSDK')"
   287    289                       Value="$(VS150INSTALLATIONPATH)\VSSDK\">
   288    290         <Output TaskParameter="Value" PropertyName="VSSDK150Install" />
   289    291       </CreateProperty>
   290    292     </Target>
          293  +
          294  +  <!--
          295  +  ******************************************************************************
          296  +  -->
          297  +
          298  +  <Target Name="MaybeMissingVsSdk2017"
          299  +          Condition="'$(MaybeMissingVsSdk2017)' != 'false' And
          300  +                     ('$(VSSDK150Install)' == '' Or
          301  +                      !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v4.0\Microsoft.Data.ConnectionUI.dll') Or
          302  +                      !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v4.0\Microsoft.VisualStudio.Data.dll') Or
          303  +                      !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v4.0\Microsoft.VisualStudio.Data.Services.dll') Or
          304  +                      !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v2.0\Microsoft.VisualStudio.OLE.Interop.dll') Or
          305  +                      !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v4.0\Microsoft.VisualStudio.Shell.15.0.dll') Or
          306  +                      !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v2.0\Microsoft.VisualStudio.Shell.Interop.dll') Or
          307  +                      !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v2.0\Microsoft.VisualStudio.Shell.Interop.8.0.dll') Or
          308  +                      !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v2.0\Microsoft.VisualStudio.Shell.Interop.9.0.dll') Or
          309  +                      !Exists('$(VSSDK150Install)VisualStudioIntegration\Common\Assemblies\v2.0\Microsoft.VisualStudio.Shell.Interop.10.0.dll'))">
          310  +    <!--
          311  +        NOTE: We cannot build this project without the necessary reference
          312  +              assemblies; therefore, skip building it altogether.
          313  +    -->
          314  +    <CreateProperty Value="MissingVsSdk">
          315  +      <Output TaskParameter="Value" PropertyName="BuildDependsOn" />
          316  +    </CreateProperty>
          317  +  </Target>
   291    318   </Project>