Bluetooth Low Energy in .Net (C#) [duplicate] - c#

This question already has answers here:
Is there any way to use Bluetooth LE from a c# desktop app in windows 10?
(3 answers)
Closed 6 years ago.
is it possible to use bluetooth low energy (ble) with .Net (C#) in an console app? For Example like with windows.devices.bluetooth in uwp apps.
I would just do it in uwp, but I need vJoy which is designed for .Net and the MbientLab Metawear C hardware as sensor with ble.

You can use C# APIs in C# Desktop applications! I have a sample here in GitHub.
In general, to get access to the C# APIS, add two references to your project:
C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Windows.winmd
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v4.5\System.Runtime.WindowsRuntime.dll
Note that the #2 version depends on the version of .Net that you're using.
Background tasks will not be supported, but all other Bluetooth C#
features should be there.

Related

Without using VM or MAC how can i do IOS development [duplicate]

This question already has answers here:
How can I develop for iPhone using a Windows development machine?
(42 answers)
Closed 5 years ago.
I want to start IOS development as i prefer ios over android and other platforms due to personal liking only.
The problem is i tried Visual Studio with Xamarin but it needs an actual MAC for apps !!
I am thinking about using Xamarin Studio!
Does it require a MAC too ?
Any other way around without using VM or MAC ?
You can use C# with the Xamarin Framework or use Ionic 2/3 (Angular 2/4), React Native.
For Xamarin, you could actually build your app but you'll need a Mac to be connected remotely to your Windows machine in order to build the iOS project.

Can the c#.net application run without .net framework? [duplicate]

This question already has answers here:
Running .net based application without .NET Framework
(13 answers)
Closed 9 years ago.
I created a windows application using c#.net, and i converted it into .exe
can i run this application on another system without installing .net framework?
please clear my doubt.
Thanks
C# apllications are not handled by the operating System. Its CLR(inside framework) (Common Language Runtime) who takes care about running the C# apps and also about all memory management, resource allocation, de-allocation etc. It creates a virtual layer over the OS while running the application. So you need the .NET-framework!
Its not about C#. Its about weather you want to develop managed or unmanaged applications. C# is the choice for developing managed applications which run on .NET Framework.
If you want to avoid that , you can go to Visual C++ (without .NET) development using Visual Studio.
However, .NET framework comes pre-installed with latest Os like Win 7 these days.

Running C# Windows Application from CD/USB Drive without installing .NET Framework [duplicate]

This question already has answers here:
Running .net based application without .NET Framework
(13 answers)
Closed 9 years ago.
I have a C# application which needs to run on a client's machine but the client does not want to have to install the .NET framework. He wants my application to run 'as-is' from a CD or a PenDrive.
How do I make this happen?
You need the appropriate version of the .NET framework installed in order to run .NET applications. That's pretty much a requirement.
It's just like trying to run a Java application without the JRE installed, or a PHP application without PHP.
Sorry but this is not possible. You need the .NET framework on the machine with the C# code on as the C# code relies on .NET to actually DO anything.

Is it possible to develop an Android application with C#? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Will Google Android ever support .NET?
Is there a way to develop C#/.NET on Android devices?
I don't have an experience with mobile applications and as a .Net developer I would like to ask if it is possible to develop Android applications with C#?
If yes, does this mean I can use Visual Studio for this purpose?
Yes, there is a commercial framework called MonoDroid created for this purpose. It appears to support Visual Studio 2010.
The iOS alternative, MonoTouch, is restricted to Mac usage I believe.
To be honest, it looks like it has recently been farmed off to another supplier and the prices have jumped... I'd be hesitant before buying in and I'd likely try and learn Java/Objective-C instead - unless I knew I was going to make squillions!

iphone application using xcode [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
is there any way that we can develop application in .net for iphone
can xcode be used to develop iphone applications using .net and is it compatible with windows
Take a look at Mono Touch. It lets you use .NET-style languages and tools to develop iPhone apps.
However, it won't be compatible with Windows. Mono Touch is basically a wrapper over Cocoa Touch. You still have to use Xcode (on a Mac) to build and distribute apps developed with Mono Touch.

Categories