根據MS,SQL Server CE已被棄用,但現在我真的無法考慮遷移到SQL Server Express或LocalDB
,因此,在VS 2013上,有一個感嘆號帶有文字「無法找到引導程序的先決條件」。有解決方法嗎?當我的程序部署時,SQL Server CE需要自動安裝。SQL Server CE 4 Clickonce部署VS2013
在此先感謝
根據MS,SQL Server CE已被棄用,但現在我真的無法考慮遷移到SQL Server Express或LocalDB
,因此,在VS 2013上,有一個感嘆號帶有文字「無法找到引導程序的先決條件」。有解決方法嗎?當我的程序部署時,SQL Server CE需要自動安裝。SQL Server CE 4 Clickonce部署VS2013
在此先感謝
如果由於某種原因你不能(直接)適用埃裏克的修復,那麼你可以嘗試以下解決方法:
我在哪裏可以找到__SQL Server Compact Edition 4.0 bootstrap package__?我一直在尋找它幾個小時,並開始寫我的自定義引導程序包,但它並不容易。 – Gromy
我得到了同樣的問題。我的項目的發佈部分的VS 2013先決條件列表中不存在SQL Server Compact Edition 4.0。爲了解決我用下面的步驟同樣的問題:
product.xml:創建的文件夾中
<?xml version="1.0" encoding="utf-8"?>
<Product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" ProductCode="System.Data.SqlServerCe.4.0">
<InstallChecks>
<FileCheck Property="IsInstalled"
FileName="System.Data.SqlServerCe.dll" SearchPath="C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Desktop" />
</InstallChecks>
<PackageFiles CopyAllPackageFiles="false">
<PackageFile
Name="SSCERuntime_x86-ENU.exe"
HomeSite="sqllocaldb_32" />
<PackageFile
Name="SSCERuntime_x64-ENU.exe"
HomeSite="sqllocaldb_64" />
</PackageFiles>
<Commands Reboot="Defer">
<Command PackageFile="SSCERuntime_x86-ENU.exe" Arguments="">
<InstallConditions>
<FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired" />
<BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="Intel" />
<BypassIf Property="IsInstalled" Compare="ValueExists" Value="0" />
</InstallConditions>
<ExitCodes>
<ExitCode Value="0" Result="Success" />
<ExitCode Value="1641" Result="SuccessReboot" />
<ExitCode Value="3010" Result="SuccessReboot" />
<DefaultExitCode Result="Fail" String="GeneralFailure" FormatMessageFromSystem="true" />
</ExitCodes>
</Command>
<Command PackageFile="SSCERuntime_x64-ENU.exe" Arguments="" >
<InstallConditions>
<BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="amd64" />
<BypassIf Property="IsInstalled" Compare="ValueExists" Value="0" />
</InstallConditions>
<ExitCodes>
<ExitCode Value="0" Result="Success" />
<ExitCode Value="1641" Result="SuccessReboot" />
<ExitCode Value="3010" Result="SuccessReboot" />
<DefaultExitCode Result="Fail" String="GeneralFailure" FormatMessageFromSystem="true" />
</ExitCodes>
</Command>
</Commands>
</Product>
創建烯夾
en文件夾創建package.xml文件和複製下一個代碼在此文件:
包。XML:
<?xml version="1.0" encoding="utf-8" ?>
<Package
xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
Name="DisplayName"
Culture="Culture">
<!-- Defines a localizable string table for error messages-->
<Strings>
<String Name="DisplayName">SQL Server Compact Edition 4.0</String>
<String Name="Culture">en</String>
<String Name="AdminRequired">Administrator permissions are required to install SQL Server Compact Edition 4.0. Contact your administrator.</String>
<String Name="GeneralFailure">A failure occurred attempting to install SQL Server Compact Edition 4.0.</String>
</Strings>
</Package>
重新啓動MS Visual Studio中
,你可以找到SQL Server精簡版4.0在前提
Nuget:https://www.nuget.org/packages/SqlServerCompact – mcfea