x


How do I create Visual Studio solutions for Mac using Unity iPhone and MonoDevelop?

With Unity 2.6 came the easy Visual Studio integration solution. Before 2.6, we could still create Visual Studio solution files with Lucas Meijer's integration script - http://bit.ly/8u2r . However, we can't use either of these with Unity iPhone. When you drop Lucas' integration script into Unity iPhone, it complains about some methods it can't find in the version of the .NET library that Unity iPhone uses. What to do?

more ▼

asked Nov 16 '09 at 01:10 AM

VoxelBoy gravatar image

VoxelBoy
133 5 5 9

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

First off, a HUGE thanks to Lucas for his efforts towards solving the integration problem in the first place.

With a few minor tweaks, I was able to get the SyncVisualStudioSolution.cs file to work with Unity iPhone. The main problem was that the specific overload of DirectoryInfo.GetFiles method Lucas was using to gather all .cs files in all subfolders is not available on the version of .NET that Unity iPhone uses.

Here's the tweaked SyncVisualStudioSolution.cs file that should work fine with Unity iPhone: http://bit.ly/3DtIl4

I added comments next to any changes I made to the file. You should still use Lucas' instructions on how to use this script with Unity (Pretty straightforward.) Works wonders for me when used with MonoDevelop on the Mac, hopefully it'll work for you too.

more ▼

answered Nov 16 '09 at 01:24 AM

VoxelBoy gravatar image

VoxelBoy
133 5 5 9

(comments are locked)
10|3000 characters needed characters left

I don't have time to look through the code, but if the script above doesn't work with VS 2008, take a look here:

http://forum.unity3d.com/viewtopic.php?t=29336&postdays=0&postorder=asc&highlight=visual+studio&start=30

The script supports file linking.

There is a bug in the script, but it's nothing critical as long as you delete the extra symlink (inside assets folder) that is created (if it remains then Unity throws a permissions error on project launch)

more ▼

answered Nov 21 '09 at 08:42 PM

slgooding gravatar image

slgooding
31 2 2 4

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1999
x377
x337
x62

asked: Nov 16 '09 at 01:10 AM

Seen: 2843 times

Last Updated: Dec 09 '09 at 06:01 PM