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.
Related
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.
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
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.
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.
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 have a solution under TFS source control and had written some sample code using an external library that was deleted a few months ago. I am certain that the code was checked in before that class file was deleted.
I am able to manually browse to previous versions of even deleted files and copy old code but the number of check-ins is massive since then.
Is there a way to programmatically access TFS history using C# so I can automate the process of "Find in historic/deleted files"?
I know people have written scripts in PowerShell for TFS but I'd prefer to write a C# utility if it is possible. Any hints in the right direction would be appreciated.
Shai Raiten's Blog is great for learning the TFS API.
For getting file history - read this post:
http://blogs.microsoft.co.il/shair/2014/09/10/tfs-api-part-55-source-control-get-history/