C# Auto Updater - c#

I'm currently developing a Platformer using Monogame in order to learn C# again because I haven't used it for 2 years. I'm using Microsoft VSTS to remotely have it in a Git repository.
My brothers are going to be my beta testers and before I give them the game I'd like to implement automatic updates.
I'd like to create an installer that they use to install the game but after that the game automatically checks for updates at launch.
Is it possible to do that using Git as version control and only download changes every time it launches instead of a complete reinstall?
How would I go about doing something like that? I've googled a lot but haven't found a good answer yet. This is something I wanted to do years ago when using C# as well but never found a solution.
Any help would be appreciated!
Thanks in advance!

Try clickonce.. it may help you.if you are trying to do automatic update on client installation whenever new version is deplayed in application server or network share

Related

Compiling C# Code in UWP

I have using the built in CSharpCodeProvider class in previous C# .NET projects and it has worked great. I see this has been removed in UWP. I've been banging my head against the wall trying to figure out if there is a way. I can't seem to find any scrap of information. But, I did come across an interesting app called #Code by Shahul Hameed on the Windows Store. This software claims to be able to compile code and be able to run it, and indeed it does. How are they achieving this, if such actions are not possible on the framework? Is it possible they're sending the code over the net to a web service of some kind and getting the returned console output? I thought so, but what about the live stdin support they've provided in the app, how would that work in a cloud compile situation?
Thanks for shedding any light
Code on Windows Store: https://www.microsoft.com/en-us/store/p/code/9nblggh4s3mf

WebApp and iOS App which access the same Database

This question may not belong here, and if so, if you could instead point me in the right direction as apposed to marking me down, it would be much appreciated. However, I figured that these Forums are as good a place as any to come to for some advice.
Anyway, here's a simple description of what it is I hope to achieve and the questions that I have.
For a Project I'm working on, I have proposed to create a WebApp, using MS Visual Studio, and an iOS App, using Xcode, both of which need to access a central Database.
Initially, all I want to achieve is for a User of the WebApp to be able to add, edit and delete data, and for a User of the iOS App to be able to view this data.
I basically just want some advice on the best way to go about creating a suitable Database, and if there are any available resources you guys feel would be of benefit to me.
Thanks in advance.
As you looks like Microsoft product lover, you can also use Xamarin for iOS app development which using c# as basic development language which helps you a lot.

What is the best approach to automate the process of switching between camera using C#

I am working one an automation platform which automates the Android test case scenarios. Most of the case I have been able to achieve using simple adb commands. However, I stumbled upon a very simple request which demands sometimes front camera to be open and sometimes back camera to be open.
I did my searches and turns out that I am not able to find out any simple adb command for it(I would love to hear that there is a simple command for that)
Also, I come across some suggestions where people say that we can have more control using Mono but I do not have any experience in Mono at the moment and I am wondering for a simple task like this it would be too much effort to create a Mono project.
Also, some suggested to hack into Camera application source code and have two apps both for front and back camera.
I needed some suggestions on what is best approach for achieving this?
Does any adb command exist?
is creating a Mono project for such a basic thing a good idea?
Can I hack into the code?
Your suggestions would really be appreciated
Well, since no on ever answered this question, let me answer it:
The camera API provided by Google on ADb front does not offer much customization so here are the answers to all the three questions:
1.Does any adb command exist?
ANS: Yes it does. Please check here: ADB command to toggle camera modes in android device
is creating a Mono project for such a basic thing a good idea?
ANS: Technically answer is yes that you can create a Mono project but you don't need to. Download Android SDK and it all you have to do is write minimum Java code to invoke the camera app from your app.
Can I hack into the code?
ANS. Don't need to change the source code of camera app. All you have to do is to create your own app which will invoke the camera app and then pass the parameters. Below is the sample code:
Intent action = new Intent("android.media.action.IMAGE_CAPTURE");
action.putExtra("android.intent.extras.CAMERA_FACING", 1);
action.putExtra("android.intent.extras.FLASH_MODE_ON", 1);
action.putExtra("android.intent.extras.QUALITY_HIGH", 1);
This 4 liner would do the job for you!!

Visual Studio Lightswitch Beta2

What are your experiences with Beta2 of Visual Lightswitch? Can it already be used for real life projects? Does anybody know, when the final (RTM) version will be out?
I am very intersting in using Lightswitch in the future for RAD, but I am a litte bit self-conscious, if the tool is flexible enough for my dividual requirements and if a Lightswitch solution can be extended with own code !? Can it be mixed with "normal" Silverlight?
I am currently in production with a Lightswitch application connected to SQL Server 2008 via IIS. I am using it to create basic stuff for now like orders, invoices. My experience so far is very good considering Beta 2. Small bugs on slower computers but nothing to stop continuing. It will take you longer to build a nice database than to build the front-end application in LS. If you do your db design right, then the rest is easy and flawless. You can extend alot with Lightswitch like using custom Silverlight controls so basically sky is the limit if you know Silverlight programming. This is what I like, I know I can build on top with future options for my app like bing maps, upload pictures or documents.
For me, this is the perfect tool since I am not a super programmer. Once your data is in SQL, then the fun begins, you will be able to create reports via Reporting Services. If you the want to go even further, then create some SSIS`s to automate email report notifications, etc... which is what I am planning to do.
Basically, Lightswitch is driving me crazy because I can now build an app 10 times faster than if I would have to program it in Silverlight.
I don't know the release date.
Francis
Visual Studio LightSwitch 2011 will be launched on July 26, 2011.
http://www.microsoft.com/visualstudio/en-us/lightswitch

Is it possible to use TrueCrypt through another application? (C#)

I have just started using TrueCrypt and I am wondering if it is at all possible for me to write a console/forms app that will allow me to interact with truecrypt. It would be using C# in Visual Studio 2010 with Windows 7. I am just wanting to know if I can do it. If anyone has done it before or knows if it is possible I would appreciate some input.
Thanks,
Stuart.
I did look (very briefly) a few months ago, and it seems that TrueCrypt has no API other than the command line.
See this question: https://stackoverflow.com/questions/1315677/is-there-an-way-to-programatically-read-a-file-from-a-truecrypt-disk-into-memory as well.

Categories

Resources