albinoJimy / sharp-architecture

Automatically exported from code.google.com/p/sharp-architecture
0 stars 0 forks source link

ClickToBuild.bat fails to build #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I get the below error when I run the ClickToBuild.bat.  Below is the
command window text.

C:\projects\research\SharpArchitecture_1.0_RTM_build_486>call go.bat build
NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
Copyright (C) 2001-2007 Gerry Shaw
http://nant.sourceforge.net

Buildfile:
file:///C:/projects/research/SharpArchitecture_1.0_RTM_build_486/Shar
pArch.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: build

 [property] Target framework changed to "Microsoft .NET Framework 3.5".

BUILD FAILED

INTERNAL ERROR

System.NullReferenceException: Object reference not set to an instance of
an obj
ect.
   at NAnt.Core.FrameworkInfo.get_Version()
   at NAnt.Core.Project.UpdateTargetFrameworkProperties()
   at NAnt.Core.Tasks.PropertyTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Project.InitializeProjectDocument(XmlDocument doc)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

Please send bug report to nant-developers@lists.sourceforge.net.

Total time: 0 seconds.

C:\projects\research\SharpArchitecture_1.0_RTM_build_486>pause
Press any key to continue . . .

Original issue reported on code.google.com by wel...@gmail.com on 19 Aug 2009 at 7:26

GoogleCodeExporter commented 9 years ago
Works for me, so I'm wondering if this is an development environment issue. 
Looks like your nant is defaulting to 
.NET Framework 2.0, but I notice that my nant targets 3.5 right off the bat.

Original comment by frank.l...@gmail.com on 1 Sep 2009 at 12:04

GoogleCodeExporter commented 9 years ago
the same thing happens to me. i dont have a clue why is this happening.

i'm a newbie to sharp-architecture, can u give me any pointers?

i'm using the 1.0 RTM version with .net 3.5 sp1 on windows vista sp2

i've also tried to "dump" the 493 release on the 1.0 rtm but nothing changes. i 
know
it's stupid but hey, we never know...

Original comment by osiri...@gmail.com on 18 Sep 2009 at 1:37

GoogleCodeExporter commented 9 years ago
i forgot to say the visual studio version.
it's visual studio 2005 professional edition.

Original comment by osiri...@gmail.com on 18 Sep 2009 at 2:57

GoogleCodeExporter commented 9 years ago
You must have Visual Studio 2008 installed to work with S#arp Architecture and 
build it 
with NAnt.  When Visual Studio 2008 is installed, it puts a "targets" file 
somewhere 
(can't thing of where off hand) which is used during the build process.  On CI 
machines 
with older versions of NAnt, you had to fake it by copying the targets file to 
the CI 
machine without installing VS 2008 on the CI machine itself; this isn't an 
issue 
anymore.  But when on a dev env't, you should have VS 2008 installed when 
working with 
S#arp Architecture.

Original comment by wmccaffe...@gmail.com on 30 Sep 2009 at 9:23

GoogleCodeExporter commented 9 years ago
ok, i understand.

still, it sucks. i have to use VS 2005 where i work, even when i develop for 
.net 3.5

oh well, gotta find another way to easily do mvc in c#/asp.net lol.

thanks for answering

Original comment by osiri...@gmail.com on 30 Sep 2009 at 9:38