I wanted to start Cross Mobile App Development for that I had heard Xamarin is a good framework if you are good with C# , so , I had downloaded the latest Visual Studio 2017 with Xamarin module installed, for learning I got the Udemy Course for Xamarin and its the latest one, so my question is in the videos and most of the tutorials out there are many templates which are missing in my Visual Studio so to make it simple I want to ask you guys that am I having the correct templates and the videos I'm referring to are old please clarify them I will post the screenshots of my setup and the video's setup.
**PS. Please excuse my novice I just started it and Google just got me confused **
Here is my Setup:
I'm just asking since to learn I need to have the same setup if there's some dissimilarity then I won't be able to have a heads up.
First off welcome to the Xamarin world.
Secondly your templates that you have are correct. They simply changed up a bit in visual studio 2017. For instance, if you want to create a PCL ( Portable Class Library ) project, you select cross-platform app and click ok. Than you get following screen:
Here can select your coding strategy ( I chose PCL in screenshot ).
If more questions don't hesistate to ask and goodluck ;)
Microsoft keep on improving VS and Xamarin. Yesterday I updated VS 2017 to version 15.8.4 and now I see a difference also between your screen Jordy Dieltjens and mine as below, you have "UI Technology" to the left bottom corner and instead I have "Platform". Also you have "Portable Class Library (PCL)" under "Code sharing strategy" to the right bottom corner where I have ".Net Standard" instead. as per my knowledge PCL is now deprecated and replaced with .Net Standard which is supposed to do the same.
Related
I am brand new to asking questions in SO and I do not really know if this question is meant to be asked here but here i am asking anyways.
I will cut to the chase now.
I am using VS 2019 Community and whenever I install for example .NET for C# development , my C++ disappears and I need to reinstall the whole Desktop Development with C++ package and when that gets done , the .NET development package disappears and needs to be reinstalled to be used again.
Does anyone have an idea on why that happens and how it can be fixed?
Hi and welcome to Stack Overflow. RUn your installer and select modify if you've already got it installed.
You'll arrive at a screen like this (this uses my VS 2019 Preview installation which doesn't have a lot selected.)
When you have arrived at this page, select the workload you want, in this case "Desktop Development with C++". It will show you how much space will be required. On the right, you'll see it show you the details of what it will install, and you can add/remove any specific SDK versions that you may want right there.
The space required will update to reflect your changes and then once you're done. In this case, I selected Windows SDK version 17763 (I only had one other selected on this device).
After this you'll have everything you had before, and the new workload that you have just installed.
I'm using Visual Studio 2017 for personal Apps (Windows Form), now I'm trying to use it for Xamarin Apps, but I can not find "Blank App (Xamarin.Forms Portable)" under Visual C# in the New Project creating Windows.
Do I miss any special update or something?
You mention Portable in your title but Portable Class Libraries (PCLs) have been deprecated in favor of .Net Standard. The current VS 2017 no longer supports creating them. If you're new and don't really know the difference between PCL and .Net Standard the chances are pretty good you can just go with .Net Standard and won't have to worry about it. The end result is basically the same. Whatever documentation/tutorial you're using will probably still be applicable even if you're doing a .Net Standard project instead of a PCL.
Along with the other answer that says to make sure you have Xamarin components installed, proceed with the stuff below.
As far as selecting "Blank App" specifically, it's in the second part of the workflow to create the project. I'll show you step 1 and step 2 on my installation.
Ensure this is installed in Visual Studio Installer (run VSI, find your installation and if it's trying to update it, drop down the arrow next to update and choose Modify):
I am coming from android studio and am really missing the preview feature when editting XML code.
The Xamarin website says this:
https://developer.xamarin.com/guides/xamarin-forms/xaml/xaml-previewer/
I find it essential to use the XML preview because I am still a beginner and learning.
Is there any way this can be done? Perhaps any third party apps if they exist?
Thanks In advance
There some alternatives to Xamarin's own XAML previewers, but it is unclear whether those third parter alternatives would support XAML themes.
Gorilla Player
enter image description here
This one is particularly good for previewing the XAML live simultaneously across multiple platform. I think its available on windows but the level of integration with visual studio remains unclear. However, as their download page contains link for windows, it should support it.
You can access it from this link:
http://gorillaplayer.com
XenForms
XenForms is another promising Xamarin.Forms. You can Load, Edit, and Save XAML. This is the first WYSIWYG UI designer for Xamarin.Forms. This tool definitely support windows as a developing platform and windows phones. Unfortunately, it does NOT support drag and drop. Another great feature is that is it has some support for c# user interface as well as the XAML markups.www.xenforms.com
You can check Xamarin's own previewer which is integrated with Visual Studio. Please update your xamarin to latest installation. You may also need to rebuild the solution and then open/reopen the XAML file for preview. For details please check my blog post here.
To start things off i am an amateur programmer and have basically only used visual studios to make anything i have made in school. C# is what i am familiar with as far as game development goes, and at this point i am trying to develop a game using visual studios & cocos2ds. That i can somehow port over to the Apple App Store.(Stop me if any of this is completely impossible, like i said i am quite new to the whole app development thing)
So I have one Big question that kind of stems off into a few others. Most importantly I currently have Microsoft Visual Studios Community 2015 version, and I would like to use Cocos 2d-x in unison with VS to create an app. I have currently sifted through a lot of different websites and eventually stumbled upon this : https://www.youtube.com/watch?v=xqtT0E68TJM. This guy is the most informative resource i have found for installing Cocos with VS. I followed his entire tutorial to the very end. With a few minor changes.
At the very end of the tutorial you can see he opens the project.sln file in Visual Studios and runs it. This then brings up the little interface with some numbers across the bottom. When i open it in my Visual Studios it says :
"Unable to start program"
C:\Users\guy\Desktop\Personal\Projects\GameTest1\GameTest1\proj.win32\Debug.win32\GameTest1.exe
The system cannot find file specified."
I cant figure out What exactly is going wrong and why mine wont work. Like i said i only changed a few things from the tutorial but that was because it was from years ago, So i had VS 2015 instead of 13 etc. But my changes were as follows:
I updated my Java recently which was up to Java 8. I downloaded the Newest Eclipse from their website and ran it just like in the tutorial ^. But it didn't work so i had to figure out that in order to run .py files like in the tutorial you had to add "python " before the "cocos.py new ......" in order to create a new file. Then it told me that i had to be running Java 1.6 Whilst i was currently running 1.8. So i downloaded an earlier build of Java then used it as the path destination for eclipse. Then aside from that everything built and i ended up with the right files named correctly in the right spot and presumably in the right format. It just gave me that error ^ at the very last step of the tutorial :S.
Firstly - Cocos2d-x uses C++ or Js(i.e. Cocos2d-js) and not C#.
Secondly - Yes you can port your app to apple app store with Cocos2d-x but it can only be done by a mac but not a windows pc .So if you want to port your game to apple devices you must be having a mac.
Thirdly - It doesn't matter if you have installed java unless you are developing for android.If you want to port your game to android then you must have java installed(it doesn't matter if you have latest version or not but you should install greater than v1.5)
Now coming to your problem
Ensure that you have python version2.7 or greater is installed version 3. will not work.
Also ensure that you don't have any spaces in your file path as that may cause error sometimes.
Hope it helps
Lovekesh Garg provided me with a complete, if not incredibly extensive (abundantly helpful) explanation of basically everything i have asked.
I have been pursuing other interest after realizing the expense involved after some investigation so i apologize for the late answer posting :S.
Would like to make a cross-platform app supporting WinPhone 7.5 and later, plus Android and IOS if possible, using VS 2010 Professional. MVVMCross looked like a good choice but I can't find any information on whether it works with VS2010 or only VS2012.
Apologies if this information is in plain sight somewhere; maybe the answer will make it show up on Google more easily for the next guy.
With the current release it should work - but you will need to make sure you have the latest PCL and nuget plugins installed.
In the near future, Microsoft seem to be pushing hard to prevent WP7.x development - they are removing WP7.x support from VS2013 so MvvmCross will most likely have to switch to WP8-only support - see http://slodge.blogspot.ca/2013/07/mvvmcross-wp7-tombstoned.html