windows-10-universal

WebRequest does not contain a definition for 'GetResponse' for Windows 10 Universal App

雨燕双飞 提交于 2019-12-06 15:04:18
I download a Console Application on GitHub and works fine. But I want to translate this C# Console Application to a Universal Windows 10 Application. The error on Visual Studio : Web Request does not contain a definition for... This is the code: private AccessTokenInfo HttpPost(string accessUri, string requestDetails) { //Prepare OAuth request WebRequest webRequest = WebRequest.Create(accessUri); webRequest.ContentType = "application/x-www-form-urlencoded"; webRequest.Method = "POST"; byte[] bytes = Encoding.ASCII.GetBytes(requestDetails); webRequest.ContentLength = bytes.Length; using (Stream

Add System.Web Reference To A Windows 10 Universal App

邮差的信 提交于 2019-12-06 13:37:11
I download a project on Gitgub Basically is a Console Application. But I want to translate this C# Console Application to a Universal Windows App. I want to use HttpUtility.UrlEncode in a windows 10 universal, but I can not find System.Web in .NET (Add Reference) How can I add this assembly to my project? Error: The "HttpUtility" Does not existin the current context. Im using Visual Studio 2015 I try with this question: How Add System.Web Reference To A Windows Form Application But doesnt work for the Universal 10 app. Thanks in advance! The System.Web assembly is a huge monolith that

Delphi FireMonkey - Setting Wallpaper on Win 10 does not work when deployed as APPX

冷暖自知 提交于 2019-12-06 13:12:54
I have created a simple application using Delphi 10.2 Tokyo (using FireMonkey) that displays images and allows you to set the desktop wallpaper for a selected image. The main code that sets the desktop wallpaper is: class procedure TUtilityWin.SetWallpaper(AFileName: String); begin SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, pChar(AFileName), (SPIF_UPDATEINIFILE OR SPIF_SENDWININICHANGE)); end; While this works great when the application runs on the desktop (as a standalone install), it fails when run as an APPX (during the certification process) of submitting to the Windows 10 App Store.

Internal compiler error when UseDotNetNativeToolchain is true

走远了吗. 提交于 2019-12-06 12:14:05
I have a UWP app that compiles successfully if I have UseDotNetNativeToolchain off. But when I turn it on, it gives me the cryptic error: Internal compiler error: Object reference not set to an instance of an object. UWPApp C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets 887 Build This is all it gives me. What could be causing this? How can I drill down on this. Using VS2015 Here is the full build output in case that helps: https://gist.github.com/shannah/e24fe8456313fb9ad98577c9a812f357 The solution to this problem was to disable optimization in a few

“GenerateAppxPackageRecipe” task was not given a value for the required parameter “AppxManifestXml”

▼魔方 西西 提交于 2019-12-06 09:51:53
Just updated to VS2015 Update 3 RC and now can't build UWP solution in Release configuration because of the following error: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2194,5): error MSB4044: The "GenerateAppxPackageRecipe" task was not given a value for the required parameter "AppxManifestXml" . It was fine a few minutes ago with VS2015 Update 2 and no any code changes since then. Anyone experience something like this after update (or with fresh VS2015 Update 3 RC installation)? OK, repairing VS2015 Update 3 RC fixed the build issue.

CordovaApp.Windows.jsproj(70,3): error MSB4019: The imported project

◇◆丶佛笑我妖孽 提交于 2019-12-06 09:34:36
Full error log: C:\Users\user\Development\Tutorials\cordova-tutorial\hello\platforms\windows\CordovaApp.Windows.jsproj(70,3): error MSB4019: The imported project "C:\Program Files(x86)\MSBuild\Microsoft\VisualStudio\v14.0\Microsoft.VisualStudio..Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1 While doing Create your first app tutorial from official Cordova website, when building the helloworld app, I got the error I've posted

How do I allow a UWP ListView to scroll past the last item?

泄露秘密 提交于 2019-12-06 09:16:47
问题 I have a ListView with a bunch of irregularly sized items. As you scroll the ListView, the bottom of the last item will end up at the bottom of the control: you can't keep scrolling. If the last item is smaller than the control, I want the top of the last item to be able to scroll to the top of the control (if the item is larger than the control, I am fine with the default behavior; in this case, the top of the item will have scrolled past the top of the ListView control which satisfies my

Detect which APIs are present in UWP app

回眸只為那壹抹淺笑 提交于 2019-12-06 08:59:07
Understanding why it's not recommended to detect the device type to perform run-time functionality, best practices dictate detecting which APIs are present instead. This way, users running their tablet in desktop mode, for instance, will not experience undesired behavior. Also, since hardware is so dynamic, checking for user interactions like touch capability is not a good approach either. On our project, we have decided to identify the APIs we'll need for three different screen widths - small, medium, and large. Microsoft has listed these APIs here . But this list is rather long and checking

Can I set the uwp app store display name to be different from the installed app display name?

好久不见. 提交于 2019-12-06 07:13:39
I would like to have a more descriptive name (for discoverability) in the Microsoft app store, but use a shorter name for the app when it is installed. I have reserved both names. I am thinking I set the App Manifest to have the short name in the Application -> Display name, and the more descriptive, store name in Packaging -> Package display name, but I don't understand the way these two names are used so I'm just guessing. Before I try this with an actual submission, I'm wondering if someone already knows if this will work. Yes, you're right. "Application -> Display name" used as a name of

NTLM authentication using Windows.Web.Http.HttpClient

核能气质少年 提交于 2019-12-06 07:00:01
问题 I am working on a Windows 10 UWP app that needs to talk to a IIS server using NTLM authentication. I am setting the username and password in the HttpBaseProtocolFilter: filter.ServerCredential = new PasswordCredential(uri, UserName, Password); When i view the request in fiddler, it is using Basic Auth. Is there anything I can do to get it to use NTLM, which the server is requiring? Request Headers: Content-Length: 1459 Content-Type: text/xml; charset=utf-8 Host: server Connection: Keep-Alive