Mix two .NET frameworks in Windows Mobile 8 - c#

I am creating a Windows Phone application with Visual Studio 2013 Premium.
I have an older version of this project built for the old Windows Mobile platform.
The old project contains proxy classes used with the "Add Service Reference" functionality, ie classes and references from a WSDL file.
The new Visual Studio 2013 does not give the capability to add web service reference, unless you specify an older .NET framework.
My question is the following: Can I combine somehow the new UI capabilities with my old code?
Is it possible for a example to have a dll with the old web references (.NET 3.5) and link it with a project with target the "Windows Mobile 8"?

Windows Phone 8 available APIs don't allow you to handle anything about connection parameters, so proxy address as well.

Related

Develop applications for Windows Compact

I have an Windows Embedded Compact v8.00 device installed with build 6247. FYI - This device is an Siemens HMI.
Now I'm looking for the right way to develop applications for this version of Windows. I started trying with Visual Studio 2008, so I build a very simple application with just a useless textbox. After copying the executable to the device I start tried to run the test applications but nothing happens.
After searching the web I found out it's better to install Visual Studio 2015 PRO with an application builder from Microsoft's website.
Is this the right way to do? What else does I need to know when developing applications for Windows Compact 2013?
To create applications for Windows Embedded Compact 2013 you need VS2013 or VS2015 professional with the Application Builder plugin and a valid SDK installed on your PC.
If you develop managed apps you also need to check in the .NET runtime is already part of the image or find a way to deploy and install it permanently on your device (the way to do this may change depending on the device configuration, registry type etc.)

Can I create an EXE file using C# with visual web developer express?

The only option I see under C# Windows is "Class Library" to create a DLL. But I don't want a dll. I want an EXE (this time). I'm running Windows 7, btw.
If you want an executable, that suggests you don't want a web application which is what the Web Developer Express targets.
Instead, download and install the "Visual Studio Express 2013 For Windows Desktop" version. That will let you create console applications, WinForms apps, WPF apps etc. (Note that there's also a "for Windows" version rather than "for Windows Desktop" - that's for Windows Phone and Windows Store apps.)
Or hey, just skip straight to Visual Studio Community Edition which has it all in one bundle :)

how to deploy IWshRuntimeLibrary?

I am using .Net 3.5 and C# 3.0, application is creating shortcuts using IWshRuntimeLibrary.
In my understanding IWshRuntimeLibrary.dll is an automatically generated wrapper for wshom.ocx
I am required to support the following Windows Script Host versions:
Windows Vista, Windows Server 2008, Windows XP SP3 - v5.7
Windows 7, Windows Server 2008 R2 - v5.8
Windows 8, Windows Server 2012 - v5.8
Windows Script Host comes with Windows by default.
This post is suggesting that I will have to deploy IWshRuntimeLibrary dll with my project.
What would be to correct way of deploying IWshRuntimeLibrary that would allow it work with both versions of Windows Script Host in all required environments?
When you add a .NET reference to your project for the wshom.ocx file, Visual Studio should generate an interop DLL that you can include in your installer. This DLL should be in your bin folder when you build the project.
If there's a Primary Interop Assembly available, then Visual Studio should detect that.
This is an older article, but still relevant on the topic: http://www32.brinkster.com/srisamp/netArticles/article_16.htm

Secure WSDL for Metro Style Apps

I have some web services that I need to reference in a Windows 8 Metro style application, normally you can just add a reference to the service via VS2012, but the services are behind a security layer.
I have downloaded the .WSDL file to my local PC, and now I need to generate the class file for this service.
The WSDL.exe that I have found on my local PC is for .NET 4.0 and produces code that is not suitable for the .NETCore framework. Is there a WSDL.exe equivalent for Windows 8 apps?
Visual Studio 2012 can obviously add a reference to non-secure asmx WSDL web services, so the functionality must be somewhere.
As per little investigation, the original .NET 1.x asmx-based Web Reference proxies are not supported in Metro style apps.
Web Service with SOAP 1.1 end point is supported by Add Service Reference (right-click on a project and choose Add Service Reference) in Metro style apps.
A workaround should be remove the offending constructor that fails to build (unfortunately, you'll need to do that everytime you regenerate the code), and to pass an instance BasicHttpBinding and EndpointAddress to one of the constructors of the WSFTerminalsSoapClient.
Have a look at following references, which might help you in this regard:
Web Services from WinRT Metro
WCF in Windows 8 Metro styled apps? Absolutely supported
I found out how to do this if anyone is interested.
You simply download the XML WSDL file from the site via a normal browser.
Then in VS2012, you can add a service reference to that file directly (i.e. put in the full path to the file c:\tmp\mywsdl.xml) and it will be able to generate the proxy for you.

Adding Windows Azure Mobile Service to the Mobile Application in Visual Studio

I am trying my hands on Windows Azure Mobile Services. My environment is Visual Studio 2010. Azure SDK is installed. And operating system is Windows 7.
I have created a Windows Azure Mobile Services and also created the sample database and the table as instructed while creating the service.
On the other hand I have installed Mobile SDK on my Visual Studio 2010. The instructions from the Azure site says, "add a reference to the "Windows Azure Mobile Services Client" extension"
When I try to add the reference to my project inside the Visual Studio, I do not find any package by name Windows Azure Mobile Services Client or anything as such. Can some one please help me by letting me know the path where the dll is? Or if there is anything I have missed while trying to add the reference.
Thanks
If I'm not mistaken, Windows Azure Mobile Service SDK is not supported for Windows 7 and VS 2010. On Windows platform, You can only build mobile applications for Windows 8 (Windows Store Apps) using VS 2012.
Hope this helps.
To add to Gaurav's answer, Windows Azure Mobile Svcs does support Windows Phone 8 (in addition to Windows Store apps), but not Windows Phone 7. You can still retrieve data from WAMS from any client via a REST call though.

Categories

Resources