C#, Swift, AND Android in Visual Studio 2015 - c#

I'm still a coding/C# newbie. I've spent the last 30 days learning C# probably about 8-12 hours per day. That said, I'm trying to get a setup where I can build Android apps, do some Swift programming, and continue learning C#.
I am currently running Visual Studio Express 2015 and it's for the Desktop platform, not Windows 10 apps.
My question is, can I use Visual Studio to do all of these things in one combined installation? I ask this because I was just about to install Xamarin and then I also found this Silver compiler which ALSO says it includes Visual Studio 2015: http://www.elementscompiler.com/elements/silver/default.aspx .
However, I'm not sure if I were to install Xamarin and then try to install Silver, is the Silver's Visual Studio going to over-write the Xamarin or my original installation of the IDE? I want to have ONE Visual Studio installation that allows me to start C#, Swift, AND Android projects.
I am also slightly confused on the different variations of Visual Studio 2015. By having Express, do I already have Community or is this a different IDE?
Thank you.

I would suggest you get Visual Studio Community instead of Express since Express is very limited. In community you are able to do all of those.

For Swift you only can use the language in the Xcode IDE. Swift can use in the Mac OS and Ubuntu, can not use in the windows now.

It's not correct. Silver is a project where you can use swift to write native apps on Windows. Xamarin is a completely different thing. With this tool you can write platform-independent with C#. For Mac, Android, iOS, and nativly with C# on Windows. It should be your prepared way, if you want to write many code in C#.

Related

Xamarin forms development on LinuxMint

Is there any way that we can build/debug and run xamarin forms app on linuxMint?
Alternatively is there any way that we can run visual studio 2019 on Linux apart from using vine?
Is there any way that we can build/debug and run xamarin forms app on linuxMint?
Sorry , there is no way to build /debug a xamarin froms app on Linux OS from officail supports.
However , about Xamarin.Android on Linux , you can have a look at that .Although that not tested on linuxMint , also can have a try whther it also works on linuxMint .
Alternatively is there any way that we can run visual studio 2019 on Linux apart from using vine?
(Hoping that Microsoft will release Visual Studio for Linux soon)
But Microsoft hasn’t made it’s Visual Studio Open Source. So it isn’t Available for Linux Systems.
You can only Install Visual Studio Code for Linux Systems , which is an amazing Code editor for Programmers.
More reference: Visual Studio Code on Linux

visual studio c# extensions missing

I've search the web and found questions from 3-9 years ago.
My problem is that I can't find anywhere the .NET standard or Windows Console Application or Windows Desktop Application or class Library for C#.
When I had Visual Studio 2015 - it was there by default.
Today I have Visual Studio 2017 and window 10 and I can't get my things together.
Are they canceled?
What is the other option?
When I look at my New project library -> Online -> Visual C#
There are many different applications but non of them seems to come from Microsoft.
Meanwhile I've got a .NET Core API Solution template but it has a lot of errors.
Please help
visual studio c# extensions missing
Just like Joe said, you should use Visual Studio installer to install the modules you need. Visual Studio 2017 use the a new way to install Visual Studio! In the newest version, MS have made it easier for you to select and install just the features you need. MS have also reduced the minimum footprint of Visual Studio so that it installs more quickly and with less system impact than ever before.
After the installer is installed, you can use it to customize your installation by selecting the feature sets—or workloads—that you want.
For the .NET core API project, you need install module .NET Core cross-platform development.
Check the document Install Visual Studio 2017 for some more details.
Hope this helps.

C# Interactive in Visual Studio Community on Mac

I'm trying to do some treehouse tutorials on C#. Unfortunately, the instructor is teaching this course in an windows machine with a windows version of VS Community while I follow along VS Community for mac. Got to a point where she is trying to use the C# interactive (REPL) but I can't seem to find it on the mac version. Anyone know if its even possible to do this on the mac? Thanks.
You can't run it in Visual Studio. You can, however, use the terminal.
When you install mono the command csharp gets installed as well.
Simply type csharp and the terminal will become a C# interactive window.
If you have Mono installed you can also use: csi
No Interactive Window support in VS 2017 Mac.
Future versions may have this feature. If it is important you could use Parallels and run the Windows version.
Or work around it by doing the same sorts of things with a debugger and Immediate Window.
Use Xamarin Workbooks!
If you don't like Xamarin Workbooks for whatever reason, you can also use csi in the console, but it doesn't have code completions :/ I couldn't edit Sachin's answer above, but to be more clear, all you need to do is open the terminal and type csi to start the C# interactive tool. Of course this only works after you've installed Visual Studio (it should have installed Mono in the process).

Upgrading C# project from VS 2010 to 2013; need to make it work for Windows 8 and 10

I inherited a C# app written in Visual Studio 2010 professional. From the compile done in VS 2010, the C# app works perfectly in Windows XP and Windows 7.
Now I am about to install Visual Studio 2013 for the first time tomorrow, and load the C# app.
I have 2 immediate goals:
Upgrade my project to work in VS 2013 Professional. I am not sure
if/what obstacles I may run into here, but if anyone has any suggestions I am all ears.
More importantly, I have 2 new prospective users for my app - one wants to use it in Windows 10, the other in Windows 8. However, I don't know the steps I
have to take to make my C# app work for these newer operating
systems. Are there specific steps I will have to take (or settings to
assign) in Visual Studio 2013 so that my C# app will work for Windows
8 and Windows 10? If someone knows the answer to this, can you please
make it clear whether I should be making separate builds for each
target operating system, or if the steps you suggest will allow me to
build this for all 4 operating systems included in the same build?
Thanks very much, really appreciate any input.
Adam
For the most part the project should auto update just fine. You might want to make a back up incase it upgrades incorrectly and it doesn't create a back up on its own.
The boxes you deploy to might need a visual studio 2013 redistributable which will be apparent if they crash when opening on the deployment machine

Can I program in C# on a Mac?

I want to learn C# for Unity and my personal computer is a MacBook Air. Can I program in C# on a Mac?
Your first option is Microsoft Visual Studio for Mac which was released in 2017. If you're used to VS ide then I suggested you download this.
If not then you can have a look into MonoDevelop. You can download from here
MRE = Mono Runtime Environment
MDK = Mono Development Kit.
MDK = MRE + Extra tools, libraries, .NET PCL (Portable Class Library) profiles, etc.
If you have an application that you want to run that needs Mono you can install just the MRE.
If you are doing development, writing C# applications, whilst you can sometimes get away with just having the MRE installed, you may hit some missing features such as not having the .NET PCL profiles. So I would install the MDK if you are doing development. Reference
Yes, it is. Microsoft has released Visual Studio Code 2017. It works on Windows, Mac OS, and Linux; It is quite nice development text-editor. It works similar to the full-version, available on Windows - with a few draw-backs, and it will allow to write programs, as well as run and test them right on your Mac.
Microsoft Docs offer a quick getting started tutorial and a Hello World program out-of-the-box with the Visual Studio Code.
You will need to install a few dependencies, however. Which may sound kinda of obvious:
Visual Studio Code
.Net Core SDK
C# extension from the marketplace.
I had good luck getting started and Visual Studio got all of the dependencies for me; so I simply went into the program, opened the integrated terminal (View > Integrated Terminal) and ran the command dotnet new console, and boom, a few seconds later I had a Hello World program, written in C#, running on my MacBook Pro.
There is now a Visual Studio for Mac available as a free community version as well as professional and enterprise versions by subscription.
JetBrains also has an IDE for C#, called Rider, that runs on the Mac. If you use IntelliJ or any of their other products you might like it - it feels better to me than MonoDevelop or Visual Studio for Mac. It is a commercial product but JetBrains offers very generous license terms (as in free) for students and open source projects. They also have a substantial discount for startups.
It is possible, but you won't be able to use Microsoft's tools, you'll need to use a third-party program like Xamarin Studio (MonoDevelop).
Edit
at the time of this answer there wasn't a Microsoft tool/IDE that could be used for developing .net / C# programs on a Mac. Now there are two:
Visual Studio Code
Visual Studio for Mac
Note that while everyone mentions Mono and Xamarin, which you should absolutely look into for C# development, Unity works on Mac directly, specifically Mac OSX 10.6+
while both use the C# language, some of the paradigms espoused by Unity are a little different from standard C# development. I personally recommend learning both.
ADDENDUM: Note that MS has recently announced that they'll be moving the standard .NET implementation cross-platform, and are doing so with the help of the Mono team, so while there's currently a confusing dual set of tools, it'll be shifting away from this in the future
It is entirely possible, if you install a version of Windows using Bootcamp you can switch between the two at start up and have the full functionality of both by installing Visual Studio on the Windows partition. Alternatively, you could use VMware such as Virtual Box and use Windows within your Mac OS.

Categories