windows-8

Windows Store Apps and F#

◇◆丶佛笑我妖孽 提交于 2019-12-21 14:11:10
问题 I am trying to create a portable library using F# to use with Windows Store apps. I created one fs file with one class: module FunctionalRT open System.Net open System.IO type WebHelper = static member DownloadStringAsync (url:string) = async { let req = HttpWebRequest.Create(url) use! resp = req.AsyncGetResponse() use stream = resp.GetResponseStream() let reader = new StreamReader(stream) let s = reader.ReadToEnd() return s } I referenced this library in my Windows Store app with no problems

Windows 8 store certificate: Uploaded app package invalid because of certification (publisher id) [closed]

时光总嘲笑我的痴心妄想 提交于 2019-12-21 12:59:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I receive following error when attempting to upload my app to the Windows 8 store: Validation error: The Publisher attribute of the Identity element in the app manifest doesn't match your publisher ID, which is: CN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX I manually updated the app manifest file with the publisher

How to sign manually an exe file with developer licence for Windows 8 RT

风格不统一 提交于 2019-12-21 12:15:28
问题 I make an exe file for Windows 8 RT. But when I want to run, show an error message: "Windows cannot verify the digital signature for this file. ..." I get a developer licence for windows 8 RT . With this license visual studio 2012 can remotely deploy and run metro application in my surface. But I want to sign manually my exe file with this certificate using signtool.exe : signtool.exe sign -s CertStoreName -n "subject name" C:\mytest.exe My problem is that I don't know the "CertStoreName" and

Entity Framework for Portable Class Library

放肆的年华 提交于 2019-12-21 11:01:21
问题 I am trying to create Repository , Entity framework for Portable Class Library , when ever I try to Nuget EntityFramework it is Failed to add reference to 'System.ComponentModel.DataAnnotations'. Please make sure that it is in the Global Assembly Cache. Any Idea to resolve this for EF Compatible EF package for Portable Library 回答1: You can use fluent Api, don't use data annotations and attributes in the model class. Example: for defining a primary key; instead of using [Key] tag, use:

How to use xaml vector images as image source in Windows 8 app

雨燕双飞 提交于 2019-12-21 08:21:12
问题 I created some assets in inkscape and would like to use them as icons in a windows 8 application. I have done some reading and it seams that while .Net 4.5 supports SVG, the modern ui profile does not. I converted the svg to xaml using this tool. I get the following xaml. <Canvas xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="svg2997" Width="744.09448" Height="1052.3622" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> <Canvas x:Name="layer1"> <Path Fill="

TRACKER : error TRK0005: Failed to locate: “CL.exe”. The system cannot find the file specified

一世执手 提交于 2019-12-21 07:36:31
问题 I'm trying to execute the following command in a Node.js project on Windows 8: npm install web3@1.0.0-beta.24 But I'm gettig an error that I have node idea how to deal with. TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Projects\myproject\node_modules\scrypt\build\copied_files.vcxproj] Here is the entire output: scrypt@6.0.3 preinstall C:\Projects\myproject\node_modules\scrypt node node-scrypt-preinstall.js scrypt@6.0.3 install C:\Projects

Is Universal Windows Platform the replacement of WinRT of Windows 8 and Windows Phone apps?

老子叫甜甜 提交于 2019-12-21 07:24:13
问题 Is Universal Windows Platform the replacement of WinRT of Windows 8 and Windows Phone apps? I mean, there was a WinRT platform to develop metro apps exclusively for Windows 8. Now, that is replaced by UWP, isn't it? 回答1: That is correct, UWP is the new platform for ALL Windows devices going forward (Win 10+). However WinRT is not replaced by UWP but is instead an extension on top of it, making UWP a much broader set of APIs that can be used across even more devices. As Microsoft themselves

Issue with multiselect combobox control in Windows 8

六月ゝ 毕业季﹏ 提交于 2019-12-21 06:39:18
问题 I am creating a multiselect combobox in Windows 8 as shown in below image: For this I have created custom control code for which is mentioned below: The problem with below code is that on selecting all the all items are not selected Selected items are not displayed in textbox How can I fix that? XAML: <UserControl x:Class="App5.MultiSelectComboBox" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:App5"

ReadText from file in ANSII encoding

吃可爱长大的小学妹 提交于 2019-12-21 06:37:10
问题 I use Q42.Winrt library to download html file to cache. But when i use ReadTextAsync i have exception: No mapping for the Unicode character exists in the target multi-byte code page. (Exception from HRESULT: 0x80070459) My code very simple var parsedPage = await WebDataCache.GetAsync(new Uri(String.Format("http://someUrl.here"))); var parsedStream = await FileIO.ReadTextAsync(parsedPage); I open downloaded file and there is ANSII encoding. I think i need to convert it to UTF-8 but i don't

How to prevent/disable snapped view for Windows 8 Metro UI applications

萝らか妹 提交于 2019-12-21 06:29:44
问题 I have an application that really makes no sense for snapped view, as the content generally represents A4 pages of information and data collection. Is there a way to disable snapped view for the application, or is the recommended approach to just show the application icon, while in snapped mode? 回答1: You cannot disable snapped view. Simply just create a new page and navigate to that page if a snap event occurred. You can simply display an image. Window.Current.SizeChanged += (object sender,