小编sub*_*bha的帖子

无法在SQLite Net Platform WinRT中加载DLL'sqlite3'

我正在使用Xamarin.Forms开发本机应用程序.但我现在面临的问题与Xamarin无关.我添加了新的Windows Phone项目

right-click > Add > New Project -> Windows Phone Apps -> Blank App(Windows Phone).

在我在Visual Studio premium 2013中的现有Xamarin项目中.我使用sqlitenet pcl进行数据库连接.我的项目中有以下代码.

public ISQLitePlatform CreateSqlitePlatformInterface()
        {
            return new SQLitePlatformWinRT();
        }
Run Code Online (Sandbox Code Playgroud)

当它在行上面执行时,它会抛出异常

An exception of type 'System.DllNotFoundException' occurred in SQLite.Net.Platform.WinRT.DLL but was not handled in user code

Additional information: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Run Code Online (Sandbox Code Playgroud)

这已被问了很多次,我尝试了所有建议的解决方案,但我仍然无法解决它.

我的Packages.config

 <package id="SQLite.Net-PCL" version="3.0.5" targetFramework="wpa81" />
  <package id="Sqlite-Winrt" version="3.8.7.1" targetFramework="wpa81" />
  <package id="Xamarin.Forms" version="1.4.2.6359" targetFramework="wpa81" /> …
Run Code Online (Sandbox Code Playgroud)

c# sqlite windows-runtime

12
推荐指数
2
解决办法
7552
查看次数

无法根据复选框选中的属性在按钮中添加/删除已禁用的属性

jQuery的:

<script type="text/javascript">

function  enableDisableButton() {

    var isChecked = ($('input[name=ignore-checkbox]').is(':checked'));

    if (isChecked == true) {
        $("button[name=set-up-account]").removeAttr("disabled");
    }
    else {
        $("button[name=set-up-account]").attr("disabled", "disabled");
    }

}

$('#mobilePage').live('pageinit', function (event) {    //document ready for jquery mobile

    enableDisableButton();

    $('#ignore-checkbox').bind("change", function () {
        enableDisableButton();
    });

});
  </script>
Run Code Online (Sandbox Code Playgroud)

HTML:

 @using (Html.BeginForm("Account", "SetUpAccount", FormMethod.Post, new { @id = "account-set-up", @data_ajax = "false" }))
 {       

     <div class="ui-grid-a field">
        <div class="ui-block-a" style="width:140px;">
         <label for="ignore-checkbox">Ignore</label>
         <input type="checkbox" name="ignore-checkbox" id="ignore-checkbox"/>
        </div>
     </div>

     <div style="width:100%;float:left;">
         <button type="submit" name="set-up-account" id="set-up-account"  data-inline="true"  data-mini="true">Set Up Account</button> …
Run Code Online (Sandbox Code Playgroud)

jquery jquery-mobile

7
推荐指数
3
解决办法
6万
查看次数

在Jquery mobile中弹出菜单

我正在尝试使用Jquery mobile创建弹出菜单,通过单击按钮它应该弹出菜单选项而不更改页面,类似于jquery mobile的选择菜单.有没有办法在JQM中做到这一点?

谢谢...

menu popup jquery-mobile

4
推荐指数
1
解决办法
2万
查看次数

将时间从UTC转换为指定的TimeZone时出现.NET PCL异常

我正在使用C#在Xamarin Studio中开发一个项目.它是一个.net PCL项目,我的个人资料是78.我的问题是,我无法将DateTime从UTC转换为指定的时区.我使用下面的代码将DateTime从UTC转换为指定的本地TimeZone.

   DateTime dateTime = (TimeZoneInfo.ConvertTime (DateTime.SpecifyKind (DateTime.UtcNow, DateTimeKind.Utc), profile.TimeZone));
Run Code Online (Sandbox Code Playgroud)

我正在低于例外

dateTime参数的Kind属性是DateTimeKind.Utc,但sourceTimeZone参数不等于TimeZoneInfo.Utc.

在PCL TimeZoneInfo.ConvertTime中没有用于指定的参数TimeZoneInfo sourceTimeZone.它只有2个带有以下参数的重载.

ConvertTime(DateTime,TimeZoneInfo)和ConvertTime(DateTimeOffset,TimeZoneInfo)

TimeZoneInfo仅用于指定目标TimeZoneInfo.

它也没有TimeZoneInfo.ConvertTimeFromUtc, TimeZoneInfo.ConvertTimeToUtc方法.

请有人帮我解决这个问题.

.net timezone datetime portable-class-library

4
推荐指数
1
解决办法
956
查看次数

尝试从PCL项目中使用PCLStorage读取文件时出现异常

我试图从PCL项目中获取文件PCLStorage,如下所示.我在Visual Studio 2015 Professional中使用Xamarin.

IFile file = await FileSystem.Current.GetFileFromPathAsync("file\path");
Run Code Online (Sandbox Code Playgroud)

但我得到例外:

System.NotImplementedException:此程序集的可移植版本中未实现此功能.您应该从主应用程序项目中引用PCLStorage NuGet包,以引用特定于平台的实现.

.net portable-class-library xamarin

3
推荐指数
1
解决办法
1067
查看次数

ISolrQueryResults不使用solrNet 4.0

ISolrQueryResults正在使用solrNet 3.0

就像我的solrNet 3.0代码一样

       ISolrOperations<ProductTest2> solr = ServiceLocator.Current.GetInstance<ISolrOperations<ProductTest2>>();
       ISolrQueryResults<ProductTest2> powerArticles  = solr.Query(new SolrQuery("is_OneCategoryActive:true") , new QueryOptions
        {
            FilterQueries = new[] { new SolrQueryByRange<Int32>("bestsellercurrent",1, 5) },
            Start = 0,
            Rows = 5
        }
         );
Run Code Online (Sandbox Code Playgroud)

现在它停止使用solrNet 4.0.请建议我需要改变什么.

solrnet c#-4.0

1
推荐指数
1
解决办法
792
查看次数