Visual Studio 2015 + Xamarin + Native Portable PCL + WCF - wcf

So our enterprise is going the Xamarin route using Visual Studio. Going through all the documentation online showed that it should be Trivial to create WCF proxy client out of a web service and place it in the PCL. After Struggling and trying to figure out why I couldn't compile the PCL using the SLSVcUtil.exe generated classes or why the "Add Service Reference" menu item was missing i gave up and downloaded the sample projects.
Turns out what I was missing all along was the target profile for the PCL. With Visual Studio 2015 + Xamarin, the default profile was set to 111. Profile 111 as it turns out does not Include support WCF as it targets Windows Phone. The target profile you want to use if you want to use WCF is 78.
So how do you change the profile of the PCL in VS 2015? See the answer below. I truly hope this helps some one in the future.

To change the profile:
Right Click Properties on the PCL project.
Click the "Change..." button on Targets Section
Uncheck Windows Phone 8.1
Check Windows Phone Silverlight 8.
Clcik ok!
More information of Profiles:
http://danrigby.com/2014/04/16/xamarin-pcl-profile-notes/

Related

VB.NET "Enable application framework" with side by side assembly

I am facing very odd problem here.
I have a VB.NET application where I am using Native (VB6) COM Component with side by side assembly. (using exe manifest file)
All is working fine if I uncheck "Enable application framework" in project settings. Application is working fine on Windows 2003 with side-by-side COM (no need to register dll).
But if I enable application framework then one of my old server Windows 2003 is not able to loading the application because it is not able to find "Microsoft.Windows.Common-controls" version 6.
My question is what does "Enable application framework" do? I am not able to get much information about how does it changes assembly reference in the application?

Universal Windows App Visual Studio 2015 Community no designer, no controls in toolbox, no properties

I am using Visual Studio Community 2015 to create Universal Windows App.
I am facing following problems-
1. No designer view.
2. No controls in toolbox.
3. Property window don't show any properties of control.
4. No phone emulators are shown after installing EmulatorSetup.exe
Visual Studio Installed Components are as follows
Microsoft Visual Studio Community 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01055
Installed Version: Community
Visual Basic 2015 00322-20000-00000-AA136
Visual C# 2015 00322-20000-00000-AA136
Visual C++ 2015 00322-20000-00000-AA136
Application Insights Tools for Visual Studio Package 4.2.60128.3
ASP.NET and Web Tools 2015.1 (Beta8) 14.1.11106.0
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
ASP.NET Web Frameworks and Tools 2013 5.2.30624.0
Common Azure Tools 1.5
JetBrains ReSharper Ultimate 10.0.2 Build 104.0.20151218.120627
JSLint.NET for Visual Studio 2.2.0
Microsoft Azure Mobile Services Tools 1.4
NuGet Package Manager 3.3.0
PreEmptive Analytics Visualizer 1.2
SQL Server Data Tools 14.0.50616.0
TypeScript 1.7.6.0
Visual Studio Tools for Universal Windows Apps 14.0.24720.00
Web Essentials 2015.1 1.0.209
I have had the same problem and the only way I have got the designer to work is (and this should work if build 10240 is acceptable for your development):
Open your project
Go under "Project" to "Properties"
Select "Application" on the left and change BOTH the target version and the min version to "Windows 10 (10.0; Build 10240)
Once you do that the XAML designer will start working again. I've had to do this on 4 different workstations and it's worked everytime.
As to why build 10568 doesn't work? Got me, agile development, will be fixed in a patch? :p
I had the same problem and could not change BOTH versions to Build 10240 as the Application listbox only showed 10586 in Properties/Application. I thought I could arrange that by editing the .csproj file, which is XML after all, but any change there makes all files in the Solution Explorer immediately unavailable. Then I noticed (running Winver.exe) that my W10 still shows build 10240 despite regularly (but not automatically) running Windows updates. Despite multiple solutions tried, this didn't change. I finally used the MediaCreation Tool to download a new Windows 10 on a USB stick and reinstalled Windows 10, preserving apps and data. And now I am really on 10586 ...and the Design mode shows again when I open my project.
I hope this helps a few!
If you are looking for the SSIS toolbox, click SSIS tab, then SSIS Toolbox.

Microsoft.Advertising.Mobile.UI - VS 2015 CTP 6

When I load a WinRT WP8 projet using AdControls into Visual Studio 2015 CTP 6 (fully updated), Intellisense tells me that he can't find the namespace Microsoft.Advertising.Mobile.UI.
Actually, the SDK still referenced from VS 2013 in the project, but the reference is not found. And I can't find any links to download it through the web.
Does anyone know a way to install it?
I'm sure that you're aware of where, Microsoft.Advertising.Mobile.UI would work only with Windows Phone 8.1 RT/Silverlight as well as WP8/7 Silverlight apps.
Reference: API Reference - Windows Phone Advertising SDK
If you're in the correct path then try downloading the Microsoft Advertising SDK from msdn.

i want to add flash file in my windows mobile application.

I am developing application in vb.net. please help me how to add a flash file in my application.
Found this on Google searching for "windows .net flash control." I looked for the COM reference as specified in the article using Visual Studio 2010 and was able to add it to a test application very quickly.
http://weblogs.asp.net/twalters/archive/2003/12/29/46265.aspx

wpf project to pixelsense application

I'm trying to write a Microsoft surface application for Samsung sur40 pixelsense machine. I have found some sample projects online and run them on the MS Visual C# 2010, but I want to convert these projects into applications so that I can put them into Samsung sur40 and run them in its surface mode. Do you know how I can actually achieve this?
In order to write these type of applications, I am using the following OS, programs and tools.
Embedded Windows 7 Professional 64-bit
Microsoft Visual C# 2010 Express Edition
.NET Framework 4.0
Windows Presentation Foundation (WPF) 4.0
Microsoft XNA® Framework 4.0
Windows PowerShell and DMTF DASH support, and enhanced administrator tools
MS Surface 2.0 SDK(an Input Simulator allows me to develop and test projects on Windows 7 PCs)
Everything is working properly and I can test the sample projects on my PC. I just want to make a Visual Studio project to run in the Samsung sur40 machine. Please help me if it is possible? If you need further explanations to answer my question, please let me know and I try to expand the problem. Thank you in advance.
Menual install !
you can't see the folder "c:\ProgramData"
because the folder's option hide~
so..
C:\ProgramData\Microsoft\Surface\v2.0\Programs --> copy and paste!! and find!!
you create a shortcut of the ApplicationName.XML in your project for MS Surface applicaion
copy shortcut file and paste --> "C:\ProgramData\Microsoft\Surface\v2.0\Programs"
and following this steps :
In Windows mode, click Start, click All Programs, click Microsoft Surface 2.0, and then click Surface Configuration Editor
In the left pane, click Application Launcher.
In the Application Launcher pane, in the Launcher title box, type the title text you want to appear above Launcher.
The title text will be placed just above the Launcher menu and is left-justified. You cannot change the font, font size, font color, justification, or location of the text.
Click OK to save your setting and close Surface Configuration Editor, or click Apply to save your setting and continue configuring Surface. Restart Surface Shell for your settings to take effect.
click : http://technet.microsoft.com/en-us/library/gg680380.aspx