I want to create an application with list Picker i have this message
"The type 'toolkit: ListPicker is found. Make sure there are no missing assembly reference and that all referenced assemblies have been generated."
ListPicker is a part of the Windows Phone Toolkit. You can download it here or through NuGet.
Related
I've created a Xamarin project which added the following projects to the solution:
Xamarin.UI(Portable)
Xamarin.UI.Droid
Xamarin.UI.iOS
Xamarin.UI.UWP
Xamarin.UI.Windows (Windows 8.1)
Xamarin.UI.WindowsPhone (Windows Phone 8.1)
I am having problems creating a client which can consume my WCF service.
1) Firstly the current Xamarin project template doesn't reference System.ServiceModel assembly in the PCL therefore I cannot right click the PCL and Add Service Reference to my project. When I manually add a reference to System.ServiceModel from this location - C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5 the menu item for create service reference pops up. When I click Go in the Add Service Reference dialog I get the following error:
"This service cannot be consumed by the current project. Please check if the project target framework supports this service type."
The PCL targets are as follows:
.NET Framework 4.5
ASP.NET Core 1.0
Windows 8
Windows Phone 8.1
Xamarin.Android
Xamarin.iOS
Xamarin.iOS
I don't know how to get this working ?
2) Secondly the work around I use is to create the client with SlSvcUtil.exe
Add the generated code to my PCL along with a reference to System.ServiceModel and everything builds ok. The problem is that when I run the code it flags up type reference errors ! Should I be manually adding the reference to System.ServiceModel anyway? What am I doing wrong in this scenario? Am I missing some steps?
I've checked the Xamarin docs but it seems that I can't find detailed instructions on this.
Please help me out ! Thanks:)
PCL and WCF should be supported. Alternatively, you could get this to work manually with HttpClient, etc. But maybe if you can use the shared project instead of PCL, that would be easier. Otherwise you'd have to also use DependencyService, create interfaces, etc. for each platform.
The default blank Windows Phone 8.1 template came with 2 default references ".NET for Windows Store apps" and "Windows Phone 8.1". Then I added a new dll "PresentationCore". After this, when I tried to add a reference to dll "System.Drawing",I found that the existing dll "PresentationCore" was replaced with this new dll.
However, the default 2 dlls remained the same. Does anyone have an idea what's going on here?
Namespace Microsoft.Phone.Tasks is not available in XAML page code behind file of my Windows Phone application. Please see the screenshot.
In the properties windows of the project I see:
Target: Windows Phone 8.1
Am I missing an assembly reference or something?
Windows Phone 8.1 XAML apps don't have Microsoft.Phone.Tasks namespace to make common UI framework with windows Runtime APIs. Still you can code up a few tasks by using Windows.ApplicationModel namespace. As you havent claried which task you want to use, so here's the link to the whole MSDN article. http://code.msdn.microsoft.com/windowsapps/WindowsPhone-Store-81-vs-25c80c2a
From your Screenshot. I see your project is Windows Phone 8.1, not Windows Phone Silverlight 8.1 . Please see your Solution Explorer, is it Windows Phone 8.1? If so, there are not Microsoft.Phone.Tasks namespace anymore. If you want to choose picture, you should use FileOpenPicker.
I converted a Windows Phone 8 app to a Windows Store app.
All the changes went well, I was able to remove all the errors.
Finally when I am trying to build my app I'm getting this error:
"cannot find type system.windows.controls.control in module system.windows.dll" in the file C:\Program Files(x86)\MSBuild\Microsoft\WindowsXaml\v11.0\Microsoft.Windows.UI.Xaml.Common.targets
Error is saying you are using Control which is not part of System.Windows.dll of WinRT. In short the error is due to that control which is available for Windows Phone only.
Hi I created as sample C++ CLI project in VS.
By default it has many assembly attributes like company, product etc.
On Windows7 or Vista, when I right click on the assembly and go to the Details tab, the assembly is missing some of the attributes that I added.
Any Idea why it is so?
Which attributes are missing? The Windows Explorer properties dialog only supports a subset of the .NET assembly version attributes.
Windows 7 file system is different from Windows XP (I don't know about Vista). In particular, under Windows XP, you could append Summary information to any file (Title/Subject/Author/Category/Keywords/Comments), but not under Windows 7. If you copy such a file to Windows 7, this information is just thrown away. Many users have complained about this.