Can I use Visual Studio with Unity? - c#

I've been checking out Unity and it looks quite interesting.
In particular after reading you can use C# as the scripting language, I am left wondering if there is some sort of Visual Studio integration to leverage IntelliSense and all that jazz built into VS.

Unity has a wiki page explaining how to do this. It seems that the latest version of Unity should already allow you to create a Visual Studio project (if you're running Windows). However, it seems only VS 2008 is supported natively. You can follow this workaround to get it to work with VS2010 (except VS2010 Express Edition) to some degree.

Unity exports a VS 2008 project. I built a VS 2010 exporter so you can avoid fighting with the upgrade wizard. http://u3d.as/2gR

You can check UnityVS from SyntaxTree. With this extension you can code & debug Unity 3D games using VisualStudio
http://unityvs.com/
Disclaimer: both Sébastien and I are working on UnityVS

Microsoft have now acquired UnityVS company SyntaxTree, and are offering UnityVS for free for Visual Studio 2010-2013 Professional or higher.
You can download it here, or get it from the Visual Studio Extensions Gallery.

As of Unity 5.2, Visual Studio Tools are supported by Microsoft for Unity on Windows. Source
For OS X, Visual Studio Code can be used directly with Unity. Source

Related

How create installer with Visual Studio Express 2013? [duplicate]

I already have a project which is ready to build. Currently, I am using visual studio 2013.
But, I don't know how to create an MSI setup in visual studio 2013, but for visual studio 2010 there are plenty of tutorials out there discussing how to create a setup in visual studio 2010.
Does this mean I need to install visual studio 2010 in order to create an application setup for my project?
What is the easiest way to create an application setup in visual studio 2013?
Microsoft has listened to the cry for supporting installers (MSI) in Visual Studio and release the Visual Studio Installer Projects Extension. You can now create installers in VS2013, download the extension here from the visualstudiogallery.
visual-studio-installer-projects-extension
As of Visual Studio 2012, Microsoft no longer provides the built-in deployment package. If you wish to use this package, you will need to use VS2010.
In 2013 you have several options:
InstallShield
WiX
Roll your own
In my projects I create my own installers from scratch, which, since I do not use Windows Installer, have the advantage of being super fast, even on old machines.
Visual Studio 2013 now supports setup projects. Microsoft have shipped a Visual Studio extension to produce setup projects.
Visual Studio Installer Projects Extension
Microsoft recommends to use the "InstallShield Limited Edition for Visual Studio" as replacement for the discontinued "Deployment and Setup Project" - but it is not so nice and nobody else recommends to use it. But for simple setups, and if it is not a problem to relay on commercial third party products, you can use it.
The alternative is to use Windows Installer XML (WiX), but you have to do many things manually that did the Setup-Project by itself.
Microsoft also release the Microsoft Visual Studio 2015 Installer Projects Extension This is the same extension as the 2013 version but for Visual Studio 2015
Apart from Install Shield and WiX, there is Inno Setup. Although I haven't tried it myself I have heard good things about it.
I will tell , how i solved almost similar problem. I developed a application using VS 2013 and tried to create wizard for it failed to do. Later i installed premium VS and tried and failed.
at last i used "ClickOnce" and it worked fine.
So i believe here also , "CLICKONCE" would help you.

XNA Game Studio and Visual Studio 2012--Wrong Language

I just managed to get XNA Game Studio to work with Visual Studio 2012 by following these
steps. However, it appears to have only installed in C# language. It is only a template in C#. How can I get it to be a template in Visual Basic? I really need to program in VB, not VCS. Any ideas of how I can fix this?
Thanks
I get this question so often? How can I install XNA with the latest version of Visual Studio.
The question generally comes from UK Academics still teaching XNA here the latest up to date how to use XNA and Visual Studio 2015.
Thanks to the Open Source Project MXA, XNA now works fine with Visual Studio 2015
XNA is a great framework for creating games, and we use it as a tool to motivate students to learn how to program whilst creating great games at extra-curricular events such as the three thing game.
Many academic still stress
A tool like XNA is an invaluable intrinsic motivator – inspiring students to want to learn to code, as opposed to being motivated because we said so, or because they will get better grades.
1- Download the latest version of this package MXA - XNA 4.0 Refresh for Visual Studio MXA XNA Supports VS2010-2015 see https://mxa.codeplex.com/

Simplest Visual Studio That Supports C# and F#

What is the simplest version of Visual Studio (professional, enterprise, or other) that I could purchase that supports C# or F# development?
It looks like F# is downloadable from Microsoft for no charge and comes in configurations
that would allow .Net and non-.Net development with or without Visual Studio. Am I missing something?
Is the same true for C#? That is is it downloadable without cost?
Thank you.
The simplest single version of Visual Studio which supports both developing in F# and C# is professional.
It's possible to install multiple free versions of the Visual Studio shell to allow you to develop C# and F# locally
C# via Express SKU
F# via Free Tools + Isolated Shell
This won't give you a single IDE though for developing in both languages.
C# is downloadable without cost as either part of the Windows SDK (which provides a commandline compiler csc) or Visual C# Express, which provides an IDE.
F# is available either in commandline form (fsc) or as a Visual Studio plugin, which requires the VS Shell (which is freely downloadable) or a full (non-Express) Visual Studio.
This means that you must purchase at least VS Professional to open both types of projects in the same editor, but you could also use a combination of VS Express and VS Shell for free.
Visual Studio Express Editions allows you to develop in NET languages. For example Microsoft Visual C# 2010 Express and it has no cost.
However it lacks many features. If you need a more powerful IDE, you can use SharpDevelop. It has no cost and allow you to develop in C#, F# and many more. Give it a try. Good luck!

How do you compile C#?

So, I was wondering how to compile C#. I have Windows 7 Enterprise. Is there a built-in program or do I have do download one?
If I have to download one, what do you recommend?
I have Googled this, and it told me about "csc.exe" but I can't find this.
For any real development, an IDE is preferable. Microsoft offers the Visual Studio Express edition for free, which has everything you need to get started with C#.
However, you can compile using just the command line compiler (csc.exe), which is included with the framework.
It should be located in the .NET installation dir; for instance on my machine for .NET 4, 64 bit version, I have a csc.exe in:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319
Your choices are:
csc.exe (the command line compiler), which is in c:\Windows\Microsoft.Net\Framework\v4.0.30319\
Install Visual Studio Express, the free edition of VS, for Windows/Console Applications, Web Applications, or Windows Phone Applications
Purchase a license for Visual Studio 2010 or get an MSDN subscription
Use the command line compiler csc
C:\>csc file.cs
You can use Visual Studio Community edition which is a full featured free IDE from Microsoft that will compile C#.
Since you're starting fresh, why not use an IDE that does it for you?
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express
You can find the command-line compiler, csc.exe, in \Windows\Microsoft.Net\Framework\vX.Y.
However, you will probably want to use Visual Studio, Microsoft's world-class IDE.
You can download the free version.
For literally compiling C#: Native Image Generator
Otherwise get Visual Studio.
Using Visual Studio will be the easiest way. There are free editions available - see http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express for details.
You need Visual Studio to compile it once you have it installed. Once you have it installed you can go to Visual Studio Command Prompt and Use C# compiler csc.exe to compile it.
Look here for more information Command-Line Building
You need to have the framework installed (2.0, minimum). Then follow this old article for a simple how-to:
http://msdn.microsoft.com/en-us/library/ms379563(v=vs.80).aspx
NOTE: Microsoft IDEs like VS can do this for you also.
Not sure if you can do this by default with Windows 7 Enterprise. At very least you are likely going need visual studio.
You can get Visual C# here for free: http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express
I would advice Visual Studio, the express edition is for free, you can find more information on the microsoft site over here.
I started using SharpDevelop as a portable text editor that understood ASPX files out-of-the-box (vs. Sublime, etc.), but I've build a couple of small (<10K lines) utilities using just that and CSC now. A portable copy of SharpDevelop is especially handy when you don't have the administrative permissions (or time) to install full Microsoft Visual Studio in an environment.
Download the "XCopyable" edition to get the portable edition of SharpDevelop from here:
http://www.icsharpcode.net/OpenSource/SD/Download/Default.aspx#SharpDevelop5x
Also consider the option of using Mono & MonoDevelop available for Mac, Linux and Windows. Not a bad choice for a serious beginner.

teaching friends son C#, easiest path to setup IDE on his laptop?

I need to setup a c# ide (free) on his laptop, do I need to download the sdk or does windows 7 come with a c# compiler? (it's been a while setting something up from scratch)
You can try Visual C# 2010 Express, it's a free version of Visual Studio for C# development, and IMHO more than enough for someone learning that you don't really need the full VS2010 package.
Download Visual C# 2010 Express edition. It's free, you can find further information here: http://www.microsoft.com/express/Windows/
Just use Microsoft Visual Studio Express.
http://www.microsoft.com/express/
The Microsoft Web Platform Installer can be used to install Visual Studio Express, and also easily install many of the other MS tools like WebMatrix.
The Microsoft Web Platform Installer
3.0 (Web PI) is a free tool that makes getting the latest components of the
Microsoft Web Platform, including
Internet Information Services (IIS),
SQL Server Express, .NET Framework and
Visual Web Developer easy.
Similarly Linqpad is a great tool for playing around and dynamic prototyping. I can't advocate it enough.
... LINQPad is more than just a LINQ
tool: it's an ergonomic C#/VB
scratchpad that instantly executes any
C#/VB expression, statement block or
program with rich output formatting –
the ultimate in dynamic development.
Put an end to those hundreds of Visual
Studio Console projects cluttering
your source folder!
Look for the free version of Visual Studio 2008. Not sure if there is one for 2010. It's at the Microsoft site. http://www.microsoft.com/express/downloads/#2008-Visual-CS
Framework is sufficient, IIRC.

Categories

Resources