Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
my .net app needs to store some persistent data and since it is possible that it runs in an environment where it cant write to disk, i would like to use the registry for it.
are there any conventions about the path where an application is writing to?
are there any tools or libraries that make reading and writing the registry from .net more convenient? i need to mostly write simple datatypes and datastructures like lists.
any other best practices or tips & tricks that should be know when working with the registry?
Writing to the registry is a little frowned on nowadays, however if you must:
Put settings for the current user in: HKEY_CURRENT_USER\Software\Your Company\Your App
Put settings for all users in: HKEY_LOCAL_MACHINE\Software\Your Company\Your App
Use the Registry class in the .NET framework to read and write registry keys and values:
http://msdn.microsoft.com/en-us/library/microsoft.win32.registry(v=vs.110).aspx
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am developing Cross-platform application using xamarin forms for all WindowsPhone, iOS and android app.
Those application can work offline also for this I want use database storing information for offline use.
I need your suggestion which database ORM I do use for development and which one is best.
Thanks in advance!
In the near future i would vote for realm ,but since at the moment they are not stable and missing many key features in Xamarin.Forms, then I would vote for SQLite for now.
For me to store information I use the Settings Plugin for that. But that is because I am lazy at the first place :)
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm being tasked with making a modular program that uses external, easy to edit files to dictate if certain elements are shown, what classes are used, etc.
Using C# and Visual Studio 2008, what type of file should I use? I was suggested .ini, but there is also talk of using .xml for it?
Which file would be best, and is there a built-in C# method of working with those files?
There's a heap of different ways for achieving different things. You could for example use an appSetting in an app.config file to turn features on and off. If you wanted to change classes or services that are used, then you could use DI/IoC with something like Castle Windsor and configure that in code and or xml.
If you can be more specific with what you want to achieve, and some examples in code, you can probably get some better answers.
you can use custom sections in your config files.
Config files are xml, well known files in .net context.
See example here: http://msdn.microsoft.com/en-us/library/vstudio/2tw134k3(v=vs.100).aspx
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am new to arcgis. I have given the task to create .net desktop application that can perform specific arcgis functions like digitization, interpolation etc. So my questions are
Can i develop application in .net to perform specific functionalities of arcGis like interpolation etc.
If yes how much time will be required for intermediate level developer ?
Can i develop application in .net to perform specific functionalities of arcGis like interpolation etc.
Yes, you can. ARCGIS does provide tools that be used in winform application. But, first of all make sure that your organization will purchase license for ARCGIS. It is not free and quite expensive.
how much time will be required for intermediate level developer
This involves GIS skills along with application development skills. And as none of us know your skill set, therefore we cannot tell that.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I need to access iTunes data (playlists, songs etc.) in a C# application, but without using the COM interface available from Apple..
The problem i have is that the iTunes COM interface requires the iTunes process to be running. I would like to avoid that and make my application work even if iTunes process is shutdown.
I need only read-only access to GET some simple data from the iTunes database and not any kind of real-time control and similar.
Is there a way to suppress the iTunes process from starting automatically when i use the COM objects or is there an alternative to the COM interface?
I see that for apple developers it is normal to access an XML file, and they just recently got access to a "Library Framework"
https://developer.apple.com/library/mac/documentation/iTunesLibrary/Reference/iTunesLibraryFrameworkReference/_index.html
I could probably access the same XML file in windows.. is that the only alternative approach? or is there something more elegant?
The solution is definitely to use the XML file since i have found other software that does the same.
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'm working with some code in Visual Studio. My parter-in-crime fellow developer has suggested that the code also be available to work under Mono. I'm impresed witht he work that is already done in Mono, but I'm very new to Mono, so I don't know what it can/cannot do.
I've already written a class in C# using the .NET LicenseManager object. It writes to the windows registry, so I know I'll have to modify it so that it will use some compiler flags like #if Win32 or #if MONO.
My question is two-fold:
1) Does Mono implement the same LicenseManager class structure?
2) If so, how do you guys lock down your code using LicenseManager in Linux? (i.e. Write to files, use a hardware dongle, compare to hardware serials, etc??)
http://www.mono-project.com/MoMA will show you areas not supported
the current state of mono's implementation at the time I write this indicates it has more than just 'TODO' status but you would have to give it a try for your scenario.