OpenSimulator development code now builds using .NET 4.0

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenSimulator development code now builds using .NET 4.0

justincc
Hello folks,

As discussed previously in the opensim-dev mailing list [1], the minimum .net framework version required by
OpenSimulator is now .NET 4.0 in the development branch.

On Windows, this means that one must have the .NET 4 Framework installed to run OpenSimulator.  Previously,
OpenSimulator ran with the .NET 3.5 framework.

Also on Windows, this also means that to build OpenSimulator, you must use Visual C# 2010 [Express], 2008 does not
support .NET 4.0.  So runprebuild.bat now creates a 2010 solution.  I'm sure 2012 can also be used but I'll leave it to
someone else to create a runprebuild2012.bat.

On Mono, this raises the official minimum Mono version to 2.10.8.1.  If you already have at least this version installed
(which is the case for all the current major Linux distro versions) then you don't need to do anything.  At the moment,
older versions of Mono will continue to work as well but this will change once someone uses some .NET 4.0 specific
syntax or SDK functionality.

If you are building nant and using an old version (pre 0.91 or earlier, I think) then you may need to update this to
0.91 or later.

[1] http://www.mail-archive.com/opensim-dev@.../msg07214.html

--
Justin Clark-Casey (justincc)
OSVW Consulting
http://justincc.org
http://twitter.com/justincc
_______________________________________________
Opensim-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/opensim-users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSimulator development code now builds using .NET 4.0

aiaustin
I just want to check that I am getting the right setup for building
OpenSim 0.8.0 dev master now we have switched to .NET 4.0 as
previously it seems that the tools to run runprebuild.bat and
compile.bat were by default in all versions of Windows I have used. I
am pretty sure I have .NET 4.0 installed in them all - I checked the
registry on one and it says the .NET 4.0 "Full" version installed is
(release 378675). But, I have never installed Visual C# Express or
like tools on any of my OpenSim build machines before as far as I
know, though they may have been alreday included in the Vista, Win7
and Win8 systems we use.

It seems that "msbuild" is needed as part of the OpenSim compile.bat
script and is not present even on the very latest Windows 8.1 Pro
systems... as I get an error saying that msbuild is not available...

D:\Temp\opensim-fd24147>compile.bat

D:\Temp\opensim-fd24147>\msbuild opensim.sln
'\msbuild' is not recognized as an internal or external command,
operable program or batch file.

So, as you indicated, I am looking at the downloads for Visual C#
2010 [Express] on Windows and the (free) download from Microsoft says
that a licence key is required after initial trial use...  at

http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express

They indicate that "After installation, you can try this product for
up to 30 days. You must register to obtain a free product key for
ongoing use after 30 days. "

So, is that correct, all Windows users need to add this setup onto
their Windows system in order to use the prebuild.bat/compile.bat
route from now on?

_______________________________________________
Opensim-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/opensim-users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSimulator development code now builds using .NET 4.0

R.Gunther
Its with most windows versions at least winows 8 and i think windows 7
.net4 get default installed.
Make sure you also have the .net 4 microsoft updates. on windows8 i can
remember that .net 3.51
needed to be installed. Still have it jumps to .net4 ANd i use for
months visual studio 2012
with then runprebuild2012.bat also that works without problems

On 2013-11-09 12:25, Ai Austin wrote:

> I just want to check that I am getting the right setup for building
> OpenSim 0.8.0 dev master now we have switched to .NET 4.0 as
> previously it seems that the tools to run runprebuild.bat and
> compile.bat were by default in all versions of Windows I have used. I
> am pretty sure I have .NET 4.0 installed in them all - I checked the
> registry on one and it says the .NET 4.0 "Full" version installed is
> (release 378675). But, I have never installed Visual C# Express or
> like tools on any of my OpenSim build machines before as far as I
> know, though they may have been alreday included in the Vista, Win7
> and Win8 systems we use.
>
> It seems that "msbuild" is needed as part of the OpenSim compile.bat
> script and is not present even on the very latest Windows 8.1 Pro
> systems... as I get an error saying that msbuild is not available...
>
> D:\Temp\opensim-fd24147>compile.bat
>
> D:\Temp\opensim-fd24147>\msbuild opensim.sln
> '\msbuild' is not recognized as an internal or external command,
> operable program or batch file.
>
> So, as you indicated, I am looking at the downloads for Visual C# 2010
> [Express] on Windows and the (free) download from Microsoft says that
> a licence key is required after initial trial use...  at
>
> http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express
>
> They indicate that "After installation, you can try this product for
> up to 30 days. You must register to obtain a free product key for
> ongoing use after 30 days. "
>
> So, is that correct, all Windows users need to add this setup onto
> their Windows system in order to use the prebuild.bat/compile.bat
> route from now on?
>
> _______________________________________________
> Opensim-users mailing list
> [hidden email]
> https://lists.berlios.de/mailman/listinfo/opensim-users
>


---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

_______________________________________________
Opensim-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/opensim-users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSimulator development code now builds using .NET 4.0

aiaustin
In reply to this post by justincc
Thanks.  I now see that I have loads of .NET frameworks installed some in

C:\Windows\Microsoft.NET\Framework
C:\Windows\Microsoft.NET\Framework64

I see that the runprebuild.bat script now doe snot have the 3.5 .NET
Framework fixed path hardwired and it tries to pick up the currently
installed .NET Framework for 4.0 using registry values.

Running the new r/240runprebuild.bat on a Windows 8.1 Pro 64 bit
system it gives the error...

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0"\MSBuildToolsPath
not found.

Note the " " that seem to be misplaced. My attempts to remove the
quotes "  ... " round the key had no effect, but they don't seem to
be needed anyway?

That registry key if properly found though would point on my machine
to the apparently correct location which does contain an msbuild.exe
executable...

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\

I hardwired that in a version of runprebuild.bat and that worked fine
as far as the compile stage, which will need the Visual C# Studio
express installed I assume.

So it must be the script handling picking up the key and key value
needed for the msbuild.exe path from the registry that is not quite
working right yet?



_______________________________________________
Opensim-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/opensim-users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSimulator development code now builds using .NET 4.0

R.Gunther
Just done test.

Downloaded a fresh git version of 0.8dev version fd24147-r/24023
running prebuild.bat after completed open the OpenSim.sln
choice build solution in visual studio 2012 express.
No problem at all, done it on windows 8.1 64bit.

On 2013-11-09 16:51, Ai Austin wrote:

> Thanks.  I now see that I have loads of .NET frameworks installed some in
>
> C:\Windows\Microsoft.NET\Framework
> C:\Windows\Microsoft.NET\Framework64
>
> I see that the runprebuild.bat script now doe snot have the 3.5 .NET
> Framework fixed path hardwired and it tries to pick up the currently
> installed .NET Framework for 4.0 using registry values.
>
> Running the new r/240runprebuild.bat on a Windows 8.1 Pro 64 bit
> system it gives the error...
>
> "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0"\MSBuildToolsPath
> not found.
>
> Note the " " that seem to be misplaced. My attempts to remove the
> quotes "  ... " round the key had no effect, but they don't seem to be
> needed anyway?
>
> That registry key if properly found though would point on my machine
> to the apparently correct location which does contain an msbuild.exe
> executable...
>
> C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
>
> I hardwired that in a version of runprebuild.bat and that worked fine
> as far as the compile stage, which will need the Visual C# Studio
> express installed I assume.
>
> So it must be the script handling picking up the key and key value
> needed for the msbuild.exe path from the registry that is not quite
> working right yet?
>
>
>
> _______________________________________________
> Opensim-users mailing list
> [hidden email]
> https://lists.berlios.de/mailman/listinfo/opensim-users
>


---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

_______________________________________________
Opensim-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/opensim-users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSimulator development code now builds using .NET 4.0

justincc
Hi Austin.  Yes, there was an error with the updated runprebuild.bat where it worked with Windows Vista and earlier but
failed with Windows 7 and later.  I have hopefully now fixed this in commit 0f16612.  This has the side effect for now
of making it impossible/hard to run this batch script in cygwin, which I may try to address at a later date for the 1 or
2 people using cygwin with OpenSim (temporary workaround is to run this under a Windows command prompt instead).

Regarding the license key, it's not a problem to get, just a bit of bureaucracy - I use VS C# 2010 Express myself.

On 09/11/13 19:20, R.Gunther wrote:

> Just done test.
>
> Downloaded a fresh git version of 0.8dev version fd24147-r/24023
> running prebuild.bat after completed open the OpenSim.sln
> choice build solution in visual studio 2012 express.
> No problem at all, done it on windows 8.1 64bit.
>
> On 2013-11-09 16:51, Ai Austin wrote:
>> Thanks.  I now see that I have loads of .NET frameworks installed some in
>>
>> C:\Windows\Microsoft.NET\Framework
>> C:\Windows\Microsoft.NET\Framework64
>>
>> I see that the runprebuild.bat script now doe snot have the 3.5 .NET Framework fixed path hardwired and it tries to
>> pick up the currently installed .NET Framework for 4.0 using registry values.
>>
>> Running the new r/240runprebuild.bat on a Windows 8.1 Pro 64 bit system it gives the error...
>>
>> "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0"\MSBuildToolsPath not found.
>>
>> Note the " " that seem to be misplaced. My attempts to remove the quotes "  ... " round the key had no effect, but
>> they don't seem to be needed anyway?
>>
>> That registry key if properly found though would point on my machine to the apparently correct location which does
>> contain an msbuild.exe executable...
>>
>> C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
>>
>> I hardwired that in a version of runprebuild.bat and that worked fine as far as the compile stage, which will need the
>> Visual C# Studio express installed I assume.
>>
>> So it must be the script handling picking up the key and key value needed for the msbuild.exe path from the registry
>> that is not quite working right yet?
>>
>>
>>
>> _______________________________________________
>> Opensim-users mailing list
>> [hidden email]
>> https://lists.berlios.de/mailman/listinfo/opensim-users
>>
>
>
> ---
> This email is free from viruses and malware because avast! Antivirus protection is active.
> http://www.avast.com
>
> _______________________________________________
> Opensim-users mailing list
> [hidden email]
> https://lists.berlios.de/mailman/listinfo/opensim-users
>


--
Justin Clark-Casey (justincc)
OSVW Consulting
http://justincc.org
http://twitter.com/justincc
_______________________________________________
Opensim-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/opensim-users