I have a Xamarin Cross Platform App in VS2017. I'm trying to add WCF service references and it seems I need to be able to uncheck Windows 8 and Windows Phone 8.1 from the list of Targets. However, I'm unable to do so.
When I right click on the project and choose properties I see this:
Project Properties showing Windows 8 and Windows Phone 8.1 as targets
When I click the "Change..." button I only see these options:
Change Targets options that don't include Windows 8, or Windows Phone 8.1
The "Install Additional Targets" link just takes me here: (Not helpful)
https://www.microsoft.com/net/download/visual-studio-sdks
Any idea how I can remove these targets and start making use of my WCF web services?
Thanks in advance!
Thanks for your comment Hans.
For anyone else running into the same problem with adding a Service Reference I followed these steps, which don't make any sense, but they worked:
Right click on the Xamarin project and choose Manage NuGet Packages. Uninstall Xamarin Forms.
Close and re-open Visual Studio.
Right click on the Xamarin project and choose Properties. Click the "Change..." button under Targeting. The .NET Framework dropdown was automatically set to 4.5 for me. I changed it to 4.6. Click OK. (Mine still said 4.5 on the properties window, but that's OK)
Close and re-open VS.
Go back to Manage NuGet Packages and reinstall Xamarin Forms.
Close and re-open VS.
Viola. Magic. I can now add Service References.
Related
I'm developing a Windows application in C# (Visual Studio Community 2022)
I installed Gmap.NET.Windows Nuget packet v.2.0.3
I added the Map control and it works ok: when I run the application inside Visual Studio, the map is shown.
After publishing, when I start the application manifest file, the app doesn't start, no warning windows. (same behaviour on two different computers).
If I remove the Map control, the published app is ok.
If I leave only the Map control without code (provider settings, properties, etc), the problem is still present.
It seems a problem of the Map control or some property of it.
I tried with framework 4.8 and 4.6.2...problem is still present.
Can you help me?
Currently I am trying to add service reference for mine Portable Class Library (PLC) in my Xamarin.Forms apps. For that point, I read that I have to remove Windows Phone 8.1 target platform.
I am opening PLC properties and I see where the target platforms are, there I find WinPhone and Silverlight, unfortunately when I click Change they disappear and I cannot remove them.
Screenshot of libraries
Can anybody suggest what the issue could be and how can I fix it?
Please keep in mind that I am doing it with Visual Studio Community 2017 (version 15.2).
Thanks in advance
1 option is to change the .net profile version manually in your .csproj file.
Visual Studio unload your current PCL Project.
Edit your .csproj File (Right Click on the unloaded project)
Find Node <TargetFrameworkProfile></TargetFrameworkProfile>
Change Value to Profile7
Save and close the file.
And than reload your .csproj file.
Another way is to uncheck Asp.Net Core when clicking on Change button. That will give you the Add ServiceReference instantly.
I start learning the Xamarin with the latest of VS 2015 (enterprise)
I create a a cross platform project with the 'blank xml app'
I got a solution with 5 projects created: portable, droid, ios, UWP and windows 8.1. All of them cannot get compiled at all, since the "initializecomponent" missing
After I've updated the package Xamarin.forms to the latest version, almost of them can be compiled without any errors, except the windows 8.1. I tried around but got no luck, please advise which packages I need to install to?
Edited: add an image "cannot install the package xamarin.forms for the two.windows"
Try to right-click the Two.Windows project -> click Manage NuGet Packages -> in the Installed packages tab, if Xamarin.Forms is listed, uninstall it -> Now click on the Online tab -> search for and install Xamarin.Forms only in your Two.Windows project
After that, I would completely close Visual Studio, click save if asked, delete all files and folders in each project folder's /bin/ and /obj/ folders, reopen the solution and rebuild the Two.Windows project.
If you still have issues after that let us know and also post a new image of the references listed under your Two.Windows project.
Edit: Here is a list of references that I see in my default Windows 8.1 project:
.NET for Windows Store app
Identity: .NETCore,Version=v4.5.1
Path: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v4.5.1\
Windows 8.1
Identity: Windows,Version=8.1
Path: C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral\
Xamarin.Forms.Core
Xamarin.Forms.Platform
Xamarin.Forms.Platform.WinRT
Xamarin.Forms.Platform.WinRT.Tablet
Xamarin.Forms.Xaml
The I also have the reference to my shared project in there as well as Newtonsoft.Json, but I am not sure if that came by default or not.
Edit #2: Now that we know you are on Windows 7, we know why the Windows Phone 8.1 project is failing. Refer to this answer for more information but the short of it is that you cannot install the Windows Phone 8.1 SDK on Windows 7 nor can you deploy WP 8.1 apps using Windows 7. The answer also gives some alternatives you might be able to use. I think the upgrade is free from what I remember.
I am using Unity 5.3.1f1 and vs2015 update 1
I tried to export my project as Windows 10 Universal with XAML and i even try with D3D
i got about 300+ error
I am able to run blank windows10 Universal app created using vs2015
i have try reinstalling ,updating vs2015,unity
Game works when i export it as windows 8,8.1 and other platform(webGl ,windows desktop ...)
Edit:
As seen on the second image, you are missing the references to the System DLL's. Just go to References, Right Click -> Add References.
My Unity projects always show up those references. Simply add them manually and you're good to go. An example :
I went to Tools->Options->NuGet Package Manager
Tick Allow NuGet to download missing packages.
Tick Automatically check for missing packages during build in VS
Whenever I create a new application in Visual Studio for Windows Phone 7, every time I build my application this error pops up:
The application could not be launched
for debugging. Ensure that the target
device screen is unlocked and that
application is installed.
Due to this error my application is not running in the emulator. I tried reinstalling the SDK and Visual Studio but can't seem to solve this error.
When you say a 'new application', do you mean a completley new application, or have you added some code? I've heard this error occurring if you try and add non WP7 project to your WP7 solution. Right-click on your solution and select Properties. Open the Configuration Properties panel on the left and make sure that Build and Deploy are both selected.
Also, make sure your project is the startup project (right click on your project and select Set as Startup Project.
Your Visual Studio toolbar should look like this (Having Windows Phone 7 Emulator in the target dropdown):