小编Ant*_*rne的帖子

是否可以将现有的Windows Phone 8应用程序更新为Windows Phone Store 8.1

我在Windows Phone Store上有一个Windows Phone 8.0应用程序,我想将我的应用程序更新到Windows Phone商店API(而不是Windows Phone Silverlight 8.1)以准备Windows 8.1版本.

是否可以将IsolatedStorage数据从SL8更新并迁移到Phone Store App?

c# windows windows-phone-8 windows-store-apps windows-phone-8.1

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

无法将cordova-plugin-uid添加到Visual Studio 2013项目中

当尝试通过config.xml设计器将https://github.com/hygieiasoft/cordova-plugin-uid添加到visual studio时,它"识别"有一个插件,但以所有属性的空白字段结尾(版本,插件ID等),即使您等待几分钟(大多数其他人在几秒钟内找到所有属性).如果您尝试添加它,它只会崩溃VS并重新启动.我尝试使用不支持所有平台的插件,但是成功了,但不是这个.

有没有人有幸把它添加到VS或有任何想法.由于该项目是跨平台的,我宁愿使用推荐的方式,即使这只是android,但我愿意接受建议.最终,我只是在寻找IMEI.

使用Telerik的应用程序Studio的用户建议,因为这个过程是简单的插件复制到www文件夹,但除了成本,我想,如前所述,喜欢升级时保留了几分推荐的方式,将继续工作范围内到VS 2015及以后.

android cordova visual-studio-2013 cordova-plugins visual-studio-cordova

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

GitLab runner无法通过http克隆存储库

我在测试环境中运行了最新的GitLab docker镜像,我遇到了GitLab运行器的问题.它无法通过HTTP链接进行克隆,产生以下消息:

Running on runner-bd27e50b-project-1-concurrent-0 via machine...
Cloning repository...
Cloning into '/builds/my/awesome-project'...
fatal: unable to access 'http://gitlab-ci-token:xxxxxx@127.0.0.1/my/awesome-project.git/': 
    Failed to connect to 127.0.0.1 port 80: Connection refused

ERROR: Build failed with: exit code 1
Run Code Online (Sandbox Code Playgroud)

我用--debug标志运行了gitlab-runner 并使用了它正在尝试的确切地址(带有令牌)并且我可以克隆存储库就好了.我不知道为什么服务无法克隆存储库.运行程序执行程序也配置为"docker".也许有一些端口映射问题进入该容器?

git gitlab gitlab-ci gitlab-ci-runner

7
推荐指数
2
解决办法
6707
查看次数

myproject.DLL中发生了'System.NullReferenceException'类型的异常,但未在用户代码中处理

这个错误是什么意思?,我一直得到这个错误,它用来工作正常,它刚刚开始抛出这个错误....任何帮助?

img1.ImageUrl = ConfigurationManager.AppSettings.Get("Url").Replace("###", randomString) 
 + Server.UrlEncode(((System.Web.UI.MobileControls.Form)Page.FindControl("mobileForm")).Title);
Run Code Online (Sandbox Code Playgroud)

MyProject.DLL中发生了'System.NullReferenceException'类型的异常,但未在用户代码中处理

附加信息:未将对象引用设置为对象的实例.

c# mobile-website

6
推荐指数
1
解决办法
11万
查看次数

从Microsoft UWP上的异步方法返回Task <string>

我一直在尝试从异步方法返回Task,它在可移动设备上创建一个文件夹并将其保存以备将来在应用程序中使用.但是,我得到了可怕的WME1039,说我没有使用有效的Windows运行时类型.我在这里检查了有效的运行时类型: Windows运行时基本数据类型,字符串是一个有效的类型..我完全陷入困境,并不知道从哪里开始!我是否遗漏了async/await模式的基本内容?我现在的代码如下所示,请原谅我的粗糙,我只是简单地填写了这个概念!

来电代码:

await LoadExtDrive();
Run Code Online (Sandbox Code Playgroud)

方法:

public async Task<string> LoadExtDrive()
{
    StorageFolder externalDevices = Windows.Storage.KnownFolders.RemovableDevices;
    // Get the first child folder, which represents the SD card.
    IReadOnlyList<StorageFolder> tmp;
    try
    {
        tmp = await externalDevices.GetFoldersAsync();
    }
    catch (Exception ex)
    {
        throw;
    }
    StorageFolder sdCard = ( tmp).FirstOrDefault();
    if (sdCard != null)
    {
     // An Removable device is present..
     var dbdir = 
     await sdCard.CreateFolderAsync(APP_DB_DIR_NAME, CreationCollisionOption.OpenIfExists);
     var dirToken = 
     Windows.Storage.AccessCache.StorageApplicationPermissions.FutureAccessList.Add(dbdir);
     return dirToken;
    }
    else
    {
        // No SD card is present.
        return …
Run Code Online (Sandbox Code Playgroud)

.net c# asynchronous windows-10-iot-core uwp

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

在Windows 10物联网中安全保存文件

我的团队需要一种防弹的方法来在Windows 10 IOT上保存文件(小于100kb)。

该文件不能被损坏,但是如果由于断电等原因导致保存失败,可以删除最新版本。

由于文件IO发生了很大变化(不再有File.Replace),因此我们不确定如何实现它。

我们可以看到:

var file = await folder.CreateFileAsync(fileName, CreationCollisionOption.OpenIfExists);
await Windows.Storage.FileIO.WriteTextAsync(file, data);
Run Code Online (Sandbox Code Playgroud)

确实是不可靠的(在停止调试或重置设备时反复损坏。),最后我们得到的是损坏的文件(全为零),旁边是.tmp文件。我们可以恢复此.tmp文件,但我不确定我们是否应基于未记录的行为来解决方案。

我们想尝试的一种方法是:

var tmpfile = await folder.CreateFileAsync(fileName+".tmp",
                               CreationCollisionOption.ReplaceExisting);
await Windows.Storage.FileIO.WriteTextAsync(tmpfile, data);

var file = await folder.CreateFileAsync(fileName, CreationCollisionOption.OpenIfExists);

// can this end up with a corrupt or missing file?
await tmpfile.MoveAndReplaceAsync(file); 
Run Code Online (Sandbox Code Playgroud)

总而言之,有没有一种安全的方法可以将一些文本保存到一个永不损坏该文件的文件?

c# io windows-10-iot-core windowsiot

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

如何使用linux获取csv文件的标题并将其打印为列?

我正在尝试获取 csv 文件的标题或第一行并将其打印为列。

文件示例:test.txt 姓名^姓氏^地址^邮政编码^电话号码

预期结果:

name
lastname
address
zipcode
phonenumber
Run Code Online (Sandbox Code Playgroud)

linux csv

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