VS2010 and non XNA/Silverlight Windows phone dev - visual-studio-2010

Is it possible to devlop old school Windows Phone app with VS2010 ? Do I have to dowload the template as I couldn't find this kind of project when I start a new project.
I definitively want to devlop old .Net Compact Framework 3.5 app, and no XNA or Silverlight app.
Do I have to swith back to VS2008 ?
Regards

No. Studio 2010 doesn't have any of the project wizards or templates for general Smart Device Application programs like Studio 08 does. Microsoft has said that they will add Smart Device programming capabilities into VS10 later, but they've not yet announced when or even what (e.g. will they support both native and managed).

Related

How to develop Windows 10 style apps like Mail or Powerpoint?

I'm new to Windows 10 and I absolutely love the Modern/Metro design. I'd love to create programs for Microsoft appstore that look like the Windows Mail or Office 365 Powerpoint but I don't know if I'm on the right track:
I downloaded and installed Microsoft Visual Studio Code, but it seems more for web development. Should I use Cordova and web technologies to create such apps? It is using WinJS(?) but I'm wondering if XAML is a better option?
I've also installed Visual Studio 2015 and put my Windows 10 in developer mode, but there is a bunch of options under C# projects: universal apps, windows forms apps, etc. Which one should I choose to do a native Windows app that looks like Microsoft Mail?
In general there is a whole bunch of options available and that is confusing. I know Java so picking up C# isn't hard for me. Also I've worked with Javascript/HTML/CSS for 4 years now and that is also comfortable for me.
I prefer performance and ease of maintenance.
The apps you mention are just regular Windows Universal apps so you can certainly do what you are asking.
1) No, VS Code is not for creating Windows Universal Apps, use Visual Studio 2015 instead (community edition is fine)
2) Your best starting point in terms of templates is Visual Studio 2015 > File > New Project >Installed > Templates > Visual C# > Windows > Universal > Blank App (Universal Windows)
It sounds like you could do with doing a few tutorials before diving into a real app. https://dev.windows.com/ is the main landing page for Windows app development. There are some great tutorials under the 'getting started' section, take the time to learn the basics now and you'll find writing your app much easier (and you'll probably produce a better app too).
https://dev.windows.com/en-us/design is also worth a look for design-specific resources.

Does Worlklight Studio really supports Windows 8.1?

I am working with Eclipse Kepler 4.3.2 and latest Worklight Studio downloaded and installed through Eclipse Marketplace (6.2.0.00-20140801-1709).
There are a lot of official IBM docs and web pages stating that WL 6.2 supports Win 8.1 hybrid store app development. At the same time, the IBM tutorials lead to complete the build cycle using MS Visual Studio 12 Express.
As long as I know, VS 12 targets Win 8 only, so VS 13 is needed to target Win 8.1 store apps.
So, after creating a new hybrid app, I add the Window 8 desktop and tablet environment (and the JSONStore optional feature also), then build that environment. At this point I use VS 2013 to open the .jsproj located in the windows8/native folder. VS 2013 notifies that the project must be retargeted from Windows 8 to Windows 8.1, then asks confirmation to make writable two read-only files: index.html and cordova.js. The reason for changing the content of these files during the migration from Win 8 to Win 8.1 is to change several references from "Microsoft.WINJS.1.0" to "Microsoft.WINJS.2.0".
At this point the Visual Studio project is fully functional, and also correctly runs on the Windows 8.1 tablet simulator. The noisy problem is that at every build of the windows8 environment Worklight regenerates index.html and cordova.js adding again the references to WinJS.1.0.
So, the question is: does the current Worlkight Studio version full supports Windows 8.1 development? Or, there is something wrong in my approach?
Worklight Studio is certified to work on Windows 8.1 using Visual Studio 2013.
From reading your question, and specificically this part:
At this point the Visual Studio project is fully functional, and also
correctly runs on the Windows 8.1 tablet simulator. The noisy problem
is that at every build of the windows8 environment Worklight
regenerates index.html and cordova.js adding again the references to
WinJS.1.0.
What I think is going on here is this:
You are creating your project in Worklight Studio and then open it in VS13 which then asks to migrate WinJS 1.0 to 2.0 and everything is working for you.
What you then do is re-build your project in Worklight Studio which brings back WinJS 1.0 as well as index.html
If you do changes in Visual Studio but do not bring them back into Eclipse, then your changes from VS will be lost. That is expected, because you are working with 2 IDEs, so you need to make sure that you copy back your code.
The template for a Windows8 app from Worklight Studio seems to be generating WinJS 1.0 regardless of targetting VS12 or VS13
So the only issue here is 2 above. It is worth investigating and it will be.
As for a "workaround", as long as you properly manage your code in 1, 2 should not prevent anything as you will still be given the option in VS to migrate to WinJS 2.0; it's an annoynace, though.

Visual Studios 2010 Windows Phone 7 to XNA 4.0

I'm currently using Microsoft Visual Studio 2010 for school. I recently completed a project for the Window Phone 7 platform and am now working on an XNA3D project, however I cannot seem to change my SDK environment from WP7 to XNA.
I've opened previous projects that were started using the XNA framework, but Visual Studios opens using Windows Phone 7, not XNA. I've tried creating a new project and creating it as XNA 4.0 but when Visual Studios loads up my workspace it is still using the Windows Phone 7 header in the drop down menu at the top of the screen. The program still loads the required XNA framework, and will run my program as XNA and will not load the Windows Phone 7 Emulator, so it's not a massive in-my-face kind of problem, but it is an annoyance, and one that neither myself, nor my teacher can solve. I've played around with some of the settings and properties but nothing seems to change it. VS2010 won't even let me click the drop down arrow and select XNA, it's greyed out.
What I'm asking, is has anyone encountered this issue before, and if so, how did you resolve it? Or, do you know how I can fix this and get on with my homework?
Visual Studio identifies the project with unique projectID. And I guess this is the case for you. I highly recommended that you should update the visual studio to 2012 it is good and you can use XNA there too. Here is stackoverflow question explaining details. And it may solve your issue too.
And there is one more way, you can create new XNA project and link your all files to that project. Most of the things works there. Normally I do that while creating [Monogame] (http://monogame.net/) A nice opensource port of XNA.
I hope I understand your question correctly and able to answer that. Please let me know if any specific or more details required.

Use existing Win7 code base in Windows 8 App

In my company we have an existing product that runs on Windows 7 and communicates with our web services.
We wish to make a Windows 8 tablet version of our product, and my first thought was:
"Hey, its just a new Windows version, so we can probably use our existing model, data access and business layer logic projects, and just focus on making a new UI layer"
But I fear that this is not the case, or am I wrong?
I tried opening our VS2010 solution file in VS2012 Express, but received an error "This edition of Visual Studio only supports Windows Store apps".
So, my naive hope now is: Can anyone tell me the easiest way to make our existing code work in a Windows 8 App?
EDIT:
The code is .NET C#, and my thought was that I just wanted to make a Windows 8 app so that the product had a tablet/touch friendly interface.
In general, you'll make a new UI using XAML, reuse a lot of your existing code, and change the data access to use SQLite.
VS2012 Express Edition is for making Windows Store apps. By "Windows Store" app, I mean an app which uses the WinRT APIs. Depending on your code, making a Windows Store version of your app can be straightforward.
If you need other features, you might need a different version of Visual Studio 2012. You definitely need to be on 2012 though. You can't build a Windows Store application with Visual Studio 2010. I think you know this already though.
If your existing .NET app uses WPF for the UI, you can reuse a lot of your XAML knowledge for the Windows 8 port. It's not as simple as recompiling, but it should be straightforward.
SQL CE is currently not an option for Windows Store applications. Instead, consider using SQLite.
Take a look at a post on MSDN called .NET for Windows Store apps - supported APIs. Some APIs you may be familiar with have been moved to WinRT. Sometimes porting is as simple as changing namespaces.
You mention that you also write to the C: drive. There's a sample on MSDN on how to read and write files.
So You need to build a new Metro Style Interface.
Wen You built interface just copy the Logic of your old application.
You can open old application in old VS 2010 and copy code line by line.
You can't convert old Windows app to Metro Style App.

Windows Mobile Development Under Mac OS X

I'm developing applications for iPhone and Android on my Mac, but now I want to port them to Windows Mobile. I know that it requires Visual Studio, but that's just if you want to make .Net applications. Then I want to know if there is any alternative, something like Mono...
Windows Phone 7 (unlike Windows Mobile) is quite a closed system with one development environment supported. I.e. you are stuck with Visual Studio and, consequently, Windows.
Update: Windows Mobile 6.x is not much better for MacOS developer. For .NET CF you use Visuaal Studio 2005 or 2008. For native code development you could use Visual Studio 2005 (if memory serves) or, before it, there existed eMbedded Visual Studio 4 (and embedded visual tools 3 earlier), both being similar to Visual Studio 6 (and probably built using the same code base).
Alternatives included FreePascal (Pascal language, native code compilation) and NSBasic (interpreted BASIC language, if memory serves).
But all those tools were for Windows only.
You'll need Visual Studio for both managed and native Windows Mobile applications. I don't think Mono supports .NETCF and I don't think SharpDevelop does either.
You might need to install a Windows virtual machine to run on your Mac. Or... get a PC for Windows development. I have both a PC and Mac workstation on my desk since I do iPhone, Android, and .NET all together.
I am actually looking at starting a project to do this using Mono and Moonlight. Granted, I am in the very early stages of research but I think that it can be done and I am hoping to start getting some people together to help in the near future. I will post the github repo back here when I get something going.
PLease have a look into this
http://blogs.msdn.com/b/interoperability/archive/2012/12/21/how-to-develop-for-windows-phone-8-on-your-mac.aspx
there is this Visual studio code which can be leveraged to initiate and test some basic wiMo app development

Resources