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.
Related
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 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 raise an event in one .dll that can be handled by another? If so, what should I be looking at.
EDIT:
I think the two dlls are running in the same process - they are both add-ins to another program. I'm limited to what I can do with add-ins, hence the need to have this communication.
I thought about writing to a local file and reading it from the other dll, but how would I know when to read it.
It's called Interprocess Communication
You probably would like to look on Pipes, or look into the IpcChannel Class, which may make things even easier. I personally didn't use any of those under C# language, but what important, is an idea and technology behind, the rest is an implementation detail.
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
As the title says "How do you make a license for your programs?"
Do you use a plugin or do you make your own? I've looked the whole day for finding resulutions, but didnt found one yet.
I basically want a normal license for my program:
A textbox where you type your license "XXXX-XXXX-XXXX-XXXX"
Is it possible to make this yourself, or should i use a website for it? If i should use a website, which do you recomend then?
It is rather simple to implement a simple license yourself BUT it will no be very save.
Because C# is transformed into IL, everybody can decompile your code easily and work around your license checks. It is very hard to build a license mechanism in a save way, so you should resort to some existing, proven solution.
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!