Xamarin Android C# Logging [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I´m about to finish my apprenticeship soon and I must do a project. I want to write a logging-class/-dll for being used by other programs. I will use Xamarin for android (C#) because my company will use my dll in the future for their apps.
My dll should contain log levels, for example if the developer wants the full path of actions the user did, or only if an error occurs he wants go get the errordata. The dll should be able to track more than only the error/errormessage (->which leads us to the logging levels).
Does anyone have an idea how to get into this topic or has any testfiles for me?

There are already few open source logging frameworks available that work on Xamarin.Android, e.g https://serilog.net/
There is another logging framework called NLog (https://github.com/NLog/NLog/wiki/platform-support) You can refer these projects to build your own logging library

Related

How package and distribute C# application [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have to create a form for a task that is done by multiple people at the company I work for. Due to the circumstances, I have choosen Windows Forms and C# to make it. However, I'm not sure how I'm going to make the program available to my colleagues.
In Python, I use PyInstaller to create a .exe file and distribute my programs in a way that no one needs to install a Python interpreter to use it. Is there anything similar for C#?
Right click project and choose publish.
There’s a lot of tutorials about it.

Access photos on iphone via script [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
How to access iPhone with c# in visual studio console app? The phone appears in the file explorer but I do not know how to get it in code. After what I've read, it is very complicated.
I am not a dev but I can read and try lots of stuff.
I am on windows 10.
here is a usefull library to solve your problem called
MediaDevices from the GitHub user Basman2. You can find this library also on the NuGet Store.
For the examples you can download the GitHub repo and test the implemented features.
The library has functionalities to download files from your device or upload them.
With this tool you can also display your files like in the link below.
Screenshot from the file section
I hope this can fix your problem.

Is it possible to run an EXE from MVC site? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Is it possible to call an exe from a MVC site?
I've seen this link. (I'll try it tomorrow in the morning when I get in the office)
Stackoverflow link
However I wanted to know if I cam barking up the wrong tree.
I have a 3rd party app that provides us a stand alone exe. Instead of sending this exe to x amount of clients. I would like to keep that exe on my web server so I can control who can use the exe.
Is this is viable option?.
You might find the responses to this old question helpful. If you are trying to run an exe file within your application, I think this would be the approach to take.
If I have understood your question wrong, and you are trying to provide users with a link to download an application, or a link to launch an application that already exists on their computer, then you will probably want to look into the html <href> tag.

how to chose folder by mouse event? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I just started writing my application which will help us to protect a folder with a password, when we open the menu on folders, we will see a "Create Password" entry. You can see this on the screen.
My question is: How can I get information abouth which folder the user has choosen, it's a WPF application and I can find nothing. Thanks for help and sorry for my language ;)
From this article about the SharpShell project, it looks like with it you would use the SelectedItemPaths property. Windows Shell Extensions in .NET says:
The purpose of the Initialize method is to get information about the selected items in the shell and save that information for later calls. The m_dataObject and m_hDrop fields are used to store this information in the COM object between calls.
(emphasis added)
But conventional wisdom and guidance is that you shouldn't, in general, write shell extensions in managed code.
Microsoft recommends against writing managed in-process extensions to Windows Explorer or Windows Internet Explorer and does not consider them a supported scenario.
(emphasis theirs)
They do give some examples where it is OK.

Add new winforms into a big application after shipping to the customer [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Lets assume that we have developed and shipped an application to many customers. We would like to add new screens to that application without removing and re-installing from customers computers the entire application. We just want to send a DLL or an EXE file to the customer, then they will put that file and place it to application folder. Then application will find and recognize that DLL or EXE and let user use that WinForm?
How can I do that? Would you please give me an idea?
professional and complete solution is MEF if you want something simple, you could use something like Assembly.LoadFrom(filePath) and iterate types in it. check for if the type is derived from System.Windows.Forms.Form (you should use typeof(Form).IsAssignableFrom(loadedType))
This problem is why web-applications are so popular. A single install for everyone. Change without re-installing in multiple locations.
This problem is why SAAS exists. The true solution to this problem is get off the winform-gui model.
Think bigger!

Categories