Skip to content

Commit

Permalink
Merge pull request #57836 from CyrusNajmabadi/sqliteAuthoring
Browse files Browse the repository at this point in the history
Simplify sqlite authoring now that we're 64bit only
  • Loading branch information
CyrusNajmabadi authored Nov 20, 2021
2 parents f2c231a + 2089cef commit fa2e3ca
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@
<PackageReference Include="Xunit.Combinatorial" Version="$(XunitCombinatorialVersion)" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<Content Include="$(NuGetPackageRoot)\sqlitepclraw.lib.e_sqlite3\$(SQLitePCLRawbundle_greenVersion)\runtimes\win-x86\native\e_sqlite3.dll">
<Link>runtimes\win-x86\native\e_sqlite3.dll</Link>
<Content Include="$(NuGetPackageRoot)\sqlitepclraw.lib.e_sqlite3\$(SQLitePCLRawbundle_greenVersion)\runtimes\win-x64\native\e_sqlite3.dll">
<Link>e_sqlite3.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(NuGetPackageRoot)\sqlitepclraw.lib.e_sqlite3\$(SQLitePCLRawbundle_greenVersion)\runtimes\win-x64\native\e_sqlite3.dll">
<Link>runtimes\win-x64\native\e_sqlite3.dll</Link>
<Link>Core\e_sqlite3.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/VisualStudio/Setup/Roslyn.VisualStudio.Setup.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,14 @@
<NugetPackageToIncludeInVsix Include="Microsoft.VisualStudio.LanguageServer.Protocol.Internal" />
</ItemGroup>
<ItemGroup>
<Content Include="$(NuGetPackageRoot)\sqlitepclraw.lib.e_sqlite3\$(SQLitePCLRawbundle_greenVersion)\runtimes\win-x86\native\e_sqlite3.dll">
<Link>runtimes\win-x86\native\e_sqlite3.dll</Link>
<Content Include="$(NuGetPackageRoot)\sqlitepclraw.lib.e_sqlite3\$(SQLitePCLRawbundle_greenVersion)\runtimes\win-x64\native\e_sqlite3.dll">
<Link>e_sqlite3.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
<Visible>false</Visible>
</Content>
<Content Include="$(NuGetPackageRoot)\sqlitepclraw.lib.e_sqlite3\$(SQLitePCLRawbundle_greenVersion)\runtimes\win-x64\native\e_sqlite3.dll">
<Link>runtimes\win-x64\native\e_sqlite3.dll</Link>
<Link>Core\e_sqlite3.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
<Visible>false</Visible>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

using System;
using System.Composition;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -54,6 +55,10 @@ private static bool TryInitializeLibrariesLazy()
catch (Exception e) when (e is DllNotFoundException or EntryPointNotFoundException)
{
StorageDatabaseLogger.LogException(e);

// In debug also insta fail here. That way if there is an issue with sqlite (for example with authoring,
// or with some particular configuration) that get CI coverage that reveals this.
Debug.Fail("Sqlite failed to load: " + e);
return false;
}

Expand Down

0 comments on commit fa2e3ca

Please sign in to comment.