Hi Gert,
Thanks for the information. The server I was planning on using does not have the .NET
1.0 or .NET 1.1 SDKs installed. I do want to run with .NET 1.1 and I just wanted to
make sure that the .NET 1.1 SDK is required. If it is required, I will have it
installed and give it a shot. I will also try the newest nightly build.
Thanks,
Alex
-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 5:07 PM
To: Osbun, Alex; [EMAIL PROTECTED]
Subject: Re: [Nant-users] Solution task prerequisites
Alex,
NAnt 0.85 will by default target framework in which NAnt is currently
running. If you have the .NET Framework 1.1 installed, NAnt will use target
that framework by default. For NAnt 0.84, the default framework was always
.NET 1.0.
See http://nant.sourceforge.net/faq.html#change-targetframework for
information on how to change the target framework (to .NET 1.0).
I also uploaded a new nightly build to
http://nant.sourceforge.net/nightly/builds that might resolve your issue.
Let me if you make any progress.
Thanks,
Gert
----- Original Message -----
From: "Osbun, Alex" <[EMAIL PROTECTED]>
To: "Gert Driesen" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, April 14, 2004 7:35 PM
Subject: RE: [Nant-users] Solution task prerequisites
Whew! Yes, it did take a while for the operation to complete. The nant
version I am using is 0.85-20040328 and I am attempting to run my build
script on a server with Microsoft Windows 2000 5.00.2195 Service Pack 4.
The server has version 1.0 and 1.1 of the .NET framework installed. It's an
old server and it's wicked slow. 450MHz PIII with half a gig of ram.
I went ahead and added the code to ReferenceGacCache.cs and did a release
build of NAnt. The UpdateBin task did not work for me.
UpdateBin:
[copy] Copying 23 files to 'C:\Program Files\nant-0.85-20040328\bin'.
BUILD FAILED
Cannot copy 'C:\Program
Files\nant-0.85-20040328\build\nant-0.85\bin\NAnt.VisualCppTasks.dll' to
'C:\Program Files\nant-0.85-20040328\bin\NAnt.VisualCppTasks.dll'.
The process cannot access the file "C:\Program
Files\nant-0.85-20040328\bin\NAnt.VisualCppTasks.dll" because it is being
used by another process.
Total time: 5.4 seconds.
I just manually copied over the dlls from nant\build\nant-0.85\bin to
nant\bin. Anyway, I am now getting the following error:
[solution] Building 'Lpa.Framework.UI' [debug]...
BUILD FAILED
The SDK for the 'net-1.1' framework is not available or not configured.
Total time: 453.2 seconds.
.NET Fundamental Function Code Coverage
So, it looks like I just need to install the .Net 1.1 Framework SDK on the
server?
Thanks!
Alex
-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 11:22 AM
To: Osbun, Alex; [EMAIL PROTECTED]
Subject: Re: [Nant-users] Solution task prerequisites
Hi Alex,
The <solution> definitely does not require Visual Studio .NET to be
installed.
What version of NAnt are you using ? Using the latest nightly build, and
exception in GacResolver.IsAssemblyInGAC should never propogate to the
caller as we just return false if an assembly cannot be loaded.
However, I have no clue why you'd get a RemotingException. Did it perhaps
take a long time for the operation to complete ?
Can you try adding this to the GacResolver class in
src/NAnt.VSNet/ReferenceGacCache.cs :
#region Override implementation of MarshalByRefObject
/// <summary>
/// Obtains a lifetime service object to control the lifetime
/// policy for this instance.
/// </summary>
/// <returns>
/// <c>null</c> to indicate that this instance should live
/// forever.
/// </returns>
public override object InitializeLifetimeService() {
return null;
}
#endregion Override implementation of MarshalByRefObject
and rebuild NAnt ?
Thanks,
Gert
----- Original Message -----
From: "Osbun, Alex" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 14, 2004 4:50 PM
Subject: [Nant-users] Solution task prerequisites
Does Visual Studio .Net need to be part of the build environment in order to
use the Solution task? On an environment that has VS.Net installed the
solution task works, but I get the following error on an environment that
doesn't have VS.Net installed.
BUILD FAILED
INTERNAL ERROR
System.Runtime.Remoting.RemotingException: Object
</80d69086_d670_4ed2_8de0_953b152a1823/I9f789nIXCMiqIgYtFK4cWGN_3.rem> has
been disconnected or does not exist at the server.
Server stack trace:
at
System.Runtime.Remoting.Channels.ChannelServices.CheckDisconnectedOrCreateWe
llKnownObject(IMessage msg)
at
System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(IMessag
e msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at NAnt.VSNet.GacResolver.IsAssemblyInGAC(String assemblyFile) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\ReferenceGacCach
e.cs:line 133
at NAnt.VSNet.ReferenceGacCache.IsAssemblyInGac(String assemblyFile) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\ReferenceGacCach
e.cs:line 93
at NAnt.VSNet.Reference.ResolveFromPath(String path) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Reference.cs:lin
e 617
at NAnt.VSNet.Reference.ResolveFromFolderList(StringCollection
folderList, String fileName) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Reference.cs:lin
e 505
at NAnt.VSNet.Reference.ResolveFromAssemblyFolders(XmlElement
referenceElement) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Reference.cs:lin
e 597
at NAnt.VSNet.Reference.ResolveAssemblyReference(XmlElement
referenceElement) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Reference.cs:lin
e 478
at NAnt.VSNet.Reference..ctor(Solution solution, ProjectSettings ps,
XmlElement elemReference, ReferenceGacCache gacCache, SolutionTask
solutionTask, DirectoryInfo outputDir) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Reference.cs:lin
e 126
at NAnt.VSNet.Project.Load(Solution sln, String projectPath) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Project.cs:line
174
at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask
slnTask, TempFileCollection tfc, ReferenceGacCache gacCache, DirectoryInfo
outputDir, String path) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\ProjectFactory.c
s:line 70
at NAnt.VSNet.Solution.LoadProjects(ReferenceGacCache gacCache) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Solution.cs:line
491
at NAnt.VSNet.Solution..ctor(FileInfo solutionFile, ArrayList
additionalProjects, ArrayList referenceProjects, TempFileCollection tfc,
SolutionTask solutionTask, WebMapCollection webMaps, FileSet
excludesProjects, DirectoryInfo outputDir, ReferenceGacCache gacCache) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Solution.cs:line
127
at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Tasks\SolutionTa
sk.cs:line 364
at NAnt.Core.Task.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.Core\Task.cs:line 151
at NAnt.Core.Target.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.Core\Target.cs:line
252
at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.Core\Project.cs:line
878
at NAnt.Core.Project.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.Core\Project.cs:line
835
at NAnt.Core.Project.Run() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.Core\Project.cs:line
903
Thanks in advance!
Alex
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users