Run app built with SDK on pc without SDK - c#

I wrote a small app built with the Microsoft Surface SDK in C# (.net 4 / 4.5), however people without the SDK seem to be unable to run the app.
I'm building it with Visual Studio 2012 and have Local Copy in the Microsoft.Surface reference set to true, but still nothing.
Is there any way that others can execute the app without installing the SDK?

There is the Microsoft Surface Runtime which you should distribute along with your application.

Related

Problem running aspnet core project on macos

I want to run a backend API in ASP.NET Core on a macos, the project was developed on Windows machines so there was used IIs Express to run it, but i don't know what I need to change to have it run on macos.
I found that IIs Express don't work on macos, so I need to use some alternative as I think
You can refer this blog to run your application.
How to Build Cross-Platform .NET Core Apps
I have tried to create a app in windows, then copy it to macos. I can run it successfully in macos by using visual studio mac, and also tried in Rider. You also can using the dotnet-cli to start the application.
According to the official doc, it suggests to using Nginx.

Adding LiveSDK via NuGet VS 2017

Whenever I try to add the Microsoft.LiveSDK to a UWP the assembly is not recognized and right clicking in the Solution Explorer shows no properties.
When adding a a "using Microsoft." has no Live assembly.
I am trying to use the LiveAuthClient.
My app targets NET 4.0
Everything works fine when developing using Visual Studio 2015.
Live SDK seems to be deprecated now. It has been replaced by the Microsoft Graph and Microsoft Grpah SDKs.
LiveSDK-for-Windows is still available for Windows 8.1/ Windows Phone 8.1, but may not for UWP app. It hasn’t yet been updated for UWP.
So if you are developing a UWP app, please use Microsoft Graph instead.

C# only run application if depenancies are installed

So I finished the production of my C# application. However, it is dependent on a quite high level of .NET preferably .NET 4.6. Is there a built in way from visual studio to check if it is installed on a machine and then offer to download and install it or do I have to do path checking in my code?

How to develop c# application using visual studio which will run on all windows OS xp,vista,7,8

I have windows 8.1 64 bit with visual studio 2013. But I want to develop C# application which will run on all Windows operating system xp,vista,7,8,8.1 32bit&64bit.
Is it possible to develop universal C# application for 32&64 bit xp,vista,7,8,8.1 OS.???
As pointed out in the comments, you can use .NET 4.0 to do this, and compile with Any CPU. Don't use 4.5 or later, as it's not supported on Windows XP.
You can even back-target your app all the way to the 2.0 runtime if you have a very simple application and you want to have the widest availability without having to install a later version of the .NET Framework on old machines. You give up a lot when you do this, though. I recommend just targeting 4.0 and being done with it.

InvalidOperatioException while developing Microsoft Surface 2.0 application

I am developing a Microsoft Surface 2.0 application using Visual C# 2010 Express Edition. I have already installed the Surface 2.0 SDK and Runtime Environment on a Windows 7 (32 bit).
From the installed templates, I choose a new Surface WPF application and press F5. I get an InvalidOperationException with the following message -
Cannot load Counter Name data because an invalid index 'Terminal
Services' was read from the registry.
The project is empty. I haven't added a single line of code yet. The same blank application works perfectly well on another desktop running Visual Studio 2010 Ultimate.
I would try here first: PerformanceCounters on .NET 4.0 & Windows 7
Most likely the performance counters are not loading in the registry, or at least not loaded properly. I know the question is different, but the symptoms are the same.
Run lodctr.exe /r it will repair registry entries related to the perfmon counters.

Categories