File access denied for netstandard on UWP - .net-core

I want to read files from UWP app, and using broadFileSystemAccess cap together with app's permissions set in settings. Access to files work great, but only when using Window.Storage api which is exclusive for WinRT api. My app use net standard 2.0 library, so files are readed via System.IO api, and that's where problem is, because access is denied for this api. What I determined, is that access depend on version of Microsoft.NETCore.UniversalWindowsPlatform (project's references). For v5.X access is granted, and System.IO api just works. For v6.X access is denied. Unfortunately I must use v6.X in my app and library. So question is: are there any switch / way to get access to files using System.IO api on Microsoft.NETCore.UniversalWindowsPlatform v6.X ?

File access denied for netstandard on UWP
As you mentioned, broadFileSystemAccess only support Window.Storage api within UWP platform, If you do want to use System.IO to access the file system, we suggest you use desktop bridge extension to approach that could access file with System.IO directly. For more info please refer desktop bridge official tutorial .

Related

Manage User Secrets in a custom config file

I have a Xamarin.Forms app. As it does not have built in configuration file, I used a solution found here:
https://www.andrewhoefling.com/Blog/Post/xamarin-app-configuration-control-your-app-settings
and here
https://github.com/HoeflingSoftware/XamarinAppSettings
So now I have a custom appsettings.json file. The secrets in the file are replaced in AzureDevops pipeline. But how can I run the app from Visual Studio (on an emulator)? If it was a web application, I would use Manage User Secrets functionality, which would store the secrets in my file system. So it would be used automatically when the app is running during development. But how can I do it for a Xamarin.Forms app with its custom json file?
You could use the Replace Text in Source Files task on Marketplace to replace text in your source, before you build the project. You can then store the secret as a secure value in the pipeline variables library.
We use a similar approach to update the build versions for Xamarin Apps and for providing access to the Signing files.

Hosting updates repository. Qt Installer Framework repogen

I have created a project using Qt and I found the Repogen tool that cames with Qt.
In the official documentation says that I must host the repo in a server in order to receive updates or create an online installer. I tried using GitHub as a hosting but maintenance tool doesn't recognize it.
I added he repository url in the settings window of the maintenance tool pointing to the base repo path and then pointing directly to Updates.xml but the same error.
What kind of web server must I use to deliver the release files?
I resolve this issue, by creating a file service in Flask and using a free hosting to deliver files.
Seems like hosting in GitHub is not useful in that case.

Where is my app.config file?

I have built a server api that consists aith 3 projects:
Api(an api project) that calles BL(class library) that calls Dal(class library).
Very standard.
It works perfectly locally.
Now when I publish it, the app.config of the BL disappears.
Why is it? Where can I store my configurable parameters?
Thank you very much. Tal
On your main project ASP.NET, use the Web.Config instead of App.Config to make it work.
app.config is only the name during development, once the project is built the app.config is copied to .config and this is what is used by the application when running
An asp.net application reads config from web.config so if you have an app.config it implies that your project is not a web project but a standard library or executable.
if it is a library (.dll) then you should place your config in the web.config (if the library is used by asp.net) or in the .config if its a standard executable.
Ideally your libraries should not read settings as this creates a hidden coupling between the library and config files, and it would be better to provide those configuration parameters to the classes that need them in the library externally, this then leaves the application using the library free to store them where ever is most appropriate.
How is the consumer of your library going to know that they need to add SettingX to the appsettings of their configuration file? Better for the library to require the setting value directly. So if your DAL needs a connection string then the class which wants a connection string should ask for it in their constructor. Then the application using it can get it from settings (or whereever) and pass it to the library., and the consumers have visibility of the dependency on the connection string. If the library reads it from config the consumer has no way to know that this is something they need add to the settings
So in a web app the startup would read the settings from web.config and pass them to your library but some other app using the same library could store them in a database if they wanted.

Adding a realm in Websphere Linux 8.5.5.4 Server

Need a help on how to add a realm for a example.
com.worklight.integration.auth.AdapterAuthenticator
How should i put this realm to server?
That's got nothing to do with your application server.
You define Realms in the MobileFirst project that you created using either MobileFirst Studio or the CLI tool (in which case you then edit a file in whichever code/text editor of your choosing).
In both cases the file to edit is called authenticationConfig.xml and is located in the your-project\server\conf\ folder.
Before touching this file, though, you should familiar yourself with the authentication concept in MobileFirst Platform because you do not simply "add a realm". You are required to also configure its associated Login Module and security tests as well as actually utilize it somewhere in your application's logic.
Please read:
Developer Center: Authentication and Security
Knowledge Center: MobileFirst Security Framework
The tutorials and documentations topic above will also lead you to Adapter-based authentication, which is what you are supposedly actually looking for.

Can I access the "Ti" singleton from a remotely hosted app?

I have a TideSDK app with a main url that is hosted on a server. E.g. http://example.com/myApp.
I am trying to access the Titanium singleton from that code, but it's not defined. Does TideSDK not pass a reference to it to the window object or something?
I haven't found anything in the docs regarding this as I suppose most apps bundle the code within.
The Ti object is not available to any remote server url. This is because of the security policy in place for TideSDK.
The policy in place is to prevent any remote URL to access your entire computer through Ti object. So if you load any url in TideSDK it would not allow them to access your local computer.. and only urls from your own computer will get access to it.

Resources