Is it possible to develop desktop applications for Windows 7 using a machine running Windows 10? I am trying to use WPF for developing the app and have Visual Studio 2015 installed on my device.
I am aware that its not possible to develop Windows 8/10 stores apps on Windows 7 but am not sure if its possible the other way round?
Yes, there is no reason why you couldn't do that.
you can develop a backward compatible WPF app on Windows 10 as long as you don't run code that uses APIs introduced in Windows 10 when it runs on another version of Windows.
You can detect Windows version or better detect features to ensure your app will use the right API depending on the OS it runs.
Check the System.Environment.OSVersion API to detect Windows version
Related
I have just installed Windows 8.1 and then installed Visual Studio 2013 Community Edition.
I tried to create a Windows Phone app and found out that there are two ways of creating it (in fact 3 if you count Universal Apps if I am not wrong)
Windows Phone
Windows Phone Silverlight
Can someone please tell me what exactly is the difference between these two? I read a couple of articles but still don't understand and this whole thing is very confusing.
When I tried to create a Windows Phone Silverlight project then it asked me whether I want to target 8.0 or 8.1.
When I tried to create Windows Phone project then it asked me to get a Developer license and didn't ask about version 8.0 or 8.1.
What shall I chose if my aim is to create an application for mobile devices (tablet/phones) that will run on maximum devices running Windows Phone 8 version?
Windows Phone 8 Silverlight is the older UI on Windows Phone 8. WinRT XAML is used for Windows Store Apps(these are Universal Apps). Windows Phone 8.1 Silverlight is a bit different as explained here.
Windows Phone Silverlight, although older, is better in some ways. If your aim is to develop an app that is targeted only for phones and that doesn't have any use getting ported to Win8/RT, go with Silverlight. Background Audio is a mess in WinRT. Speech Recognition with Cortana is worse.
The controls of WinRT XAML are buggy. For example, there is a clear performance degradation of MapControl in WinRT XAML, whereas, in Silverlight, this is smoother.
On the other hand, Windows Store Apps have .NET Native, which converts C# to native C++ code, resulting in performance gains.
For a beginner, I would advise starting with Windows Phone 8 Silverlight apps.
Windows Phone Silverlight is the "old" platform that WP8.0 apps are built on. It asked you to target 8.0 or 8.1 because WP8.1 has a hybrid mode that lets you build WP8.1 apps but still have access to the Sliverlight API if you had a whole lot of legacy code you didn't want to port over just yet.
Windows Phone is the (mostly) universal platform for WP8.1 that is based on Windows Runtime.
I have to create an application with metro design on vs2010 and windows 7.
The application should work both on pc and device without internet.
Initially i though of wpf but i do not know if it works on Mobile.
Please let me know how i can develop once such standalone application for
both device and PC also
Unfortunately, there is not a single platform that targets both PC and Phone...although, the presumption is that Windows Phone and Windows Store applications are moving toward a unified foundation.
Windows Store applications unfortunately don't run on Windows 7. Only Windows 8 and above, but the advantage is they work with the desktop version as well as the tablet version of windows.
If you want to target windows 7 and say windows phone as well, your best bet is to use portable class libraries to create a common "core" for the application. And use WPF for the desktop which has a lot in common with XAML for Windows Phone.
If you want to target windows phone 8, you have to use Visual Studio 2012 or above.
Pretty old question, but in case anyone is still blindfolded, there is UWP.
Furthermore, if you want to have XAML and C# deployed as native apps in a variety of platforms (UWP, Droid, iOS, WinPhone), be sure to check out Xamarin, which now belongs to Microsoft, and follows the awesomeness of open-source MIT just as the entire .NET does now.
I have a wpf application and want to make it run on a win 8 Lenovo tablet 2(waiting for delivery).
Can I simply execute the application or I must use VS2010/2012?
Thanks in advance.
You can execute the application normally in any machine in any windows version that has the relevant .Net Framework version installed.
Can existing apps (both web and desktop apps) using Silverlight run on Windows 8? How about Windows RT?
If it's not possible, what would be the path of least resistance to make it work? (Viz., how to get it working on Windows 8/RT, not caring about whether it'll work on Windows 9 or not.)
Existing Silverlight applications can run in the Windows 8 Desktop, but cannot run as part of a Windows Store application. Only Windows Store applications can run on Windows RT (with exception of Office apps delivered by Microsoft).
Path of least resistance would be leveraging your assets - it's C#/VB and XAML still - within the Windows RT framework.
You might check out this Deep Fried Bytes episode, and there are other blog posts as well to give you some guidance. There's also an article on the Dev Center focused on Windows Phone 7 Silverlight to Windows 8, but much should be application to your scenario as well.
You WPF and Silverlight application work fine on Windows 8, but not in the Windows store, which needs only Metro Applications.
But you can more and less easily port your Silverlight app to Metro : you keep XAML files, and you change the code behind with new objects defined ine the Windows 8 libraries.
I have a WPF project with one external library. Is it possible to make one executable file "*.exe" from this project to run on windows systems even without .net? and how to insert that library into .exe file?
You will need to have the .net framework installed on the clients pc. What this says is that since .Net has been preinstalled on Windows since XP SP1, you should target your application to the runtime that is available on the system you wish to install it on. And since you are targeting WPF you will need to make sure that you have available .net 3.5 or greater. You may want to look into the Client installation of the framework since it is smaller. And you may want to look at this Stackoverflow question
i.e. from above link
Windows .Net Framework
Win 7 SP1 4
win 7 3.5.1 ( can be updated to .Net Framework 4 through windows updates )
windows vista 3.0 ( can be updated to .Net Framework 4 through windows updates )
windows XP Sp 1 2.0
You must have .net installed to use a wpf application. You can use clickonce to make the install experience more friendly to the user, if he doesn't the right version of the .net framework installed.
As for the external third party library, see my answer here for the same issue.