Re: [nant-dev] localised resources

2003-11-23 Thread Gert Driesen
Damir,

Can you verify whether this is working fine in the latest nightly build
?

Thanks,

Gert

On Thu, 2003-11-20 at 15:30, Ian MacLean wrote:
 Damir Simunic wrote:
 
 Hi Damir,
 
 I'm just back from vacation and catching up on email. I'll take a look 
 at this and get it working for non resx files. I'll need to re-visit 
 that code - I see that Gert made some changes there recently and may 
 even have fixed this issue.
 Ian
 
 
 I've tried out the new csc task -- it definitely works for .resx files, but
 any other type of resource will still be embedded in the main assembly. 
 
 For example, if the project has text files, such as 'strings.fr-FR.txt' and
 'strings.de-CH.txt', those will be included in the main assembly, while
 visual studio will correctly link them into corresponding satellite
 assemblies.
 
 
 Cheers,
 
 Damir
 
 
 
 ---
 This SF.net email is sponsored by: The SF.net Donation Program.
 Do you like what SourceForge.net is doing for the Open
 Source Community?  Make a contribution, and help us add new
 features and functionality. Click here: http://sourceforge.net/donate/
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers
   
 
 



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] functionality of version task

2003-11-23 Thread Scott Hernandez
I like it a lot. This is definitely something I want to be able to do with
our (internal) nant builds so we can easily identify our build type and
config from the binaries.

If you are fine contributing it, I think we can review it and put it under
source control.

Please post a compressed patch or the a files, and we'll take care of it.

Thanks,
Scott
- Original Message - 
From: Wenig, Stefan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 22, 2003 1:41 AM
Subject: [nant-dev] functionality of version task


hi,

since i needed a versioning scheme other than that of the existing version
task, i built my own. i like the way it works, so im suggesting this as an
extension to the existing version task.

the idea is to have a version-config file that contains not only the counter
for the incrementing part of the version number, but also the rules that
says how the rest of the version number should look.

an example of a version config file i use is as follows:

?xml version=1.0 encoding=UTF-8 ?
buildversion xmlns=urn:rubicon-it:nant:buildversion
  major0/major
  minor9/minor
  build
increment currentValue=13 /
  /build
  revision
map property=nant.settings.currentframework
  entry propertyvalue=net-1.0 versionvalue=10 /
  entry propertyvalue=net-1.1 versionvalue=11 /
  default fail=true /
/map
map property=project.config
  entry propertyvalue=release versionvalue=1 /
  entry propertyvalue=debug versionvalue=2 /
  entry propertyvalue=documentation versionvalue=0 /
  entry propertyvalue= versionvalue=0 /
  default fail=true /
/map/revision
/buildversion

this would result in version number of 0.9.14.101 for a release buld for
.net framework 1.0, or 0.9.13.101 if i supress incrementing. the advantage
is that if i look at the metadata of an assembly that uses one of the target
assemblies of this build, i can tell immediately which configuration is
referenced.
this could be extended to include tags for date/time values. or, more
generally, it could be extended to include simple property expansion, and
nant could provide properties with current date/time values by default.
AFAIU, any of these enhancements would provide the current functionality of
the version task and more.

my implementation of this task provides properties for the whole version
number, each part (minor, major etc) and a version number that does not
include configuration-specific values (.noconfig property).
in the example above, the latter would be 0.9.13.0, so that target directory
trees can be built like
0.9.13.0/net-1.0/debug
0.9.13.0/net-1.0/release
0.9.13.0/net-1.1/debug
etc.
also, the task allows supressoin of version incrementation.

usage example:

buildversion versionfile=build/buildversion.xml property=buuild.version
increment=false /
property name=build.basedir
value=${solution.basedir}/build/${build.version.noconfig} /

i'd like to know if you think this functionality should be part of the nant
version functionality, a alternative one in nant contribs, or neither. once
more, i don't find the time to struggle with the details of contribution
right now, but i'll provide source code on request (just a few lines of code
anyway).

stefan




---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] nant 0.8.3 release - bug.

2003-11-23 Thread Dmitry Sapunov
Following exception is outprinted executing following task:

cvs-checkout destination=${deploy.dir} cvsroot=${cvs.root}
module=${module.name} /

where  cvs.root  is  :local:v:/cvsrep  . and modulename is PROJ or PROJ/SUB.
Of course these directories are exists in the V:/cvsrep directory.

Same exception ifs thrown when module name do not match existing in CVS in
your sample tag.


BUILD FAILED

INTERNAL ERROR

System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32 length)
   at ICSharpCode.SharpCvsLib.Misc.CvsRoot..ctor(String cvsroot)
   at NAnt.SourceControl.Tasks.AbstractCvsTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

Please send bug report to [EMAIL PROTECTED]

wbr, dMitry.




---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] csc /lib parameter handling

2003-11-23 Thread Yevgeniy . Tolmachev

Hello Gentlemen,

I was in need of passing /lib parameter to c# compiler and being unable to find appropriate attribute in csc task I extended it myself.
Please find the source code attached. I'm new here and would appreciate if someone could take care to incorporate it into the next release.

Thanks a bunch,
Yevgeniy (Eugene) Tolmachev
t.o.e at sympatico dot ca


CscTask.cs
Description: Binary data


[nant-dev] solution task and linked VS.Net files.

2003-11-23 Thread Viehland, Kirk
Nant developers,

I am getting this error when I compile a VS.Net 2003 solution with an
ProductInfo file that has been linked from a parent directory.

e.g.

  File
RelPath = ProductInfo.cs
Link = ..\ProductInfo.cs
SubType = Code
BuildAction = Compile
/


System.IO.IOException: Could not find a part of the path
U:\dev\MyProject\ProductInfo.cs.
   at System.IO.File.GetLastWriteTime(String path)
   at NAnt.VSNet.Tasks.Project.CheckUpToDate(ConfigurationSettings cs)
   at NAnt.VSNet.Tasks.Project.Compile(String strConfiguration, ArrayList
alCSCArguments, String strLogFile, Boolean bVerbose, Boolean bShowCommands)
   at NAnt.VSNet.Tasks.Solution.Compile(String strConfiguration, ArrayList
alCSCArguments, String strLogFile, Boolean bVerbose, Boolean bShowCommands)
   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()


Does the solution task not know how to resolve linked files?

Kirk A. Viehland



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Internal nant error

2003-11-23 Thread Olivier Dagenais
I was asked to report this to your address...  Using nant 0.8.3.  I have a
nant task within my nant script, but it looks like the solution task tries
to use the first task's currentDirectory (e:/src/buildrobot/) instead of the
nant task's directory (e:/src/buildrobot/builds/razorrobot/4/).
Specifically, line 45 of src/Nant.VSNET/Solution.cs should probably call
System.IO.Path.Combine with the project's basedir and strSolutionFilename,
although you probably already know this..

Anyway, here's the output I got.  I'm able to get around the problem by
launching nant with exec / and pointing workingdir to the appropriate
place.


 [nant] ./builds/RazorRobot/4/RazorRobot.build

Buildfile:
file:///E:/src/BuildRobot/builds/RazorRobot/4/RazorRobot.build

build:

 [solution] Starting solution build.
Total time: 0 seconds.

BUILD FAILED

INTERNAL ERROR

System.IO.FileNotFoundException: Could not find file
E:\src\BuildRobot\razorrobot.sln.
File name: E:\src\BuildRobot\razorrobot.sln
   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boole
an useAsync, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean
detectEncodingFromByteOrderMarks, Int32 buffe
rSize)
   at System.IO.StreamReader..ctor(String path)
   at NAnt.VSNet.Tasks.Solution..ctor(String strSolutionFilename, ArrayList
alAdditionalProjects, ArrayList alReferenceP
rojects, TempFileCollection tfc, Task nanttask)
   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

Please send bug report to [EMAIL PROTECTED]



PS:  Keep up the good work.  Open source rocks!

-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=
Olivier Dagenais
Software Engineering / GĂ©nie logiciel
Formark Consulting Ltd.
(613) 599-5173 x238
-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Is this a bug?

2003-11-23 Thread Clarence T. Yeoh
Dear Sirs/Mdms,

I was trying to build a web application and below are the error I've got in return. I 
have no problem building this project using the IDE.

Any assistance would be greatly appreciated.
Thank you

Clarence



NAnt version 0.8.3 Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///D:/GV_VSS/ELMO.BPayView/default.build

build:

 [solution] Starting solution build.
http://192.168.1.14/BpayView/BpayView.csproj
Total time: 1 seconds.

BUILD FAILED

INTERNAL ERROR

System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.CheckFinalStatus()
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.HttpWebRequest.GetResponse()
   at NAnt.VSNet.Tasks.WebDavClient.GetFileContentsStatic(String strRemoteFilena
me)
   at NAnt.VSNet.Tasks.Project.LoadXmlDocument(String strFilename)
   at NAnt.VSNet.Tasks.Project.IsEnterpriseTemplateProject(String strFilename)
   at NAnt.VSNet.Tasks.Solution..ctor(String strSolutionFilename, ArrayList alAd
ditionalProjects, ArrayList alReferenceProjects, TempFileCollection tfc, Task na
nttask)
   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

Please send bug report to [EMAIL PROTECTED]

***
build file
***

?xml version=1.0?
project name=ELMO.BPayView default=build basedir=.
target name=build
solution configuration=debug solutionfile=ELMO.BPayView.sln
/solution
/target
/project


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


RE: [nant-dev] nant 0.8.3 release - bug.

2003-11-23 Thread Clayton Harbour
Hi Dmitry,

Thanks for the error report.  The problem is occuring because the cvs
root parser is looking for a [EMAIL PROTECTED] expression and is not
finding it.  In addition to this the local protocol is not supported.

Please note I have forwarded this on to the sharpcvslib developers list
and I will submit a bug report there as well.


Thanks,


Clayton

-Original Message-
From:   Dmitry Sapunov
Sent:   Mon 11/10/2003 9:10 AM
To: [EMAIL PROTECTED]
Cc: 
Subject:[nant-dev] nant 0.8.3 release - bug.
Following exception is outprinted executing following task:

cvs-checkout destination=${deploy.dir} cvsroot=${cvs.root}
module=${module.name} /

where  cvs.root  is  :local:v:/cvsrep  . and modulename is PROJ or
PROJ/SUB.
Of course these directories are exists in the V:/cvsrep directory.

Same exception ifs thrown when module name do not match existing in CVS
in
your sample tag.


BUILD FAILED

INTERNAL ERROR

System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32 length)
   at ICSharpCode.SharpCvsLib.Misc.CvsRoot..ctor(String cvsroot)
   at NAnt.SourceControl.Tasks.AbstractCvsTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

Please send bug report to [EMAIL PROTECTED]

wbr, dMitry.




---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers



winmail.dat

Re: [nant-dev] solution task and linked VS.Net files.

2003-11-23 Thread Gert Driesen
Kirk,

This should be fixed in cvs, and in the nightly builds.

Are you using NAnt 0.8.3 ?  Can you try a recent nighlty build
(http://nant.sourceforge.net/nightly/builds) and get back to us ?

Thanks,

Gert

- Original Message - 
From: Viehland, Kirk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 17, 2003 10:19 PM
Subject: [nant-dev] solution task and linked VS.Net files.


 Nant developers,

 I am getting this error when I compile a VS.Net 2003 solution with an
 ProductInfo file that has been linked from a parent directory.

 e.g.

   File
 RelPath = ProductInfo.cs
 Link = ..\ProductInfo.cs
 SubType = Code
 BuildAction = Compile
 /


 System.IO.IOException: Could not find a part of the path
 U:\dev\MyProject\ProductInfo.cs.
at System.IO.File.GetLastWriteTime(String path)
at NAnt.VSNet.Tasks.Project.CheckUpToDate(ConfigurationSettings cs)
at NAnt.VSNet.Tasks.Project.Compile(String strConfiguration, ArrayList
 alCSCArguments, String strLogFile, Boolean bVerbose, Boolean
bShowCommands)
at NAnt.VSNet.Tasks.Solution.Compile(String strConfiguration, ArrayList
 alCSCArguments, String strLogFile, Boolean bVerbose, Boolean
bShowCommands)
at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()


 Does the solution task not know how to resolve linked files?

 Kirk A. Viehland



 ---
 This SF.net email is sponsored by: SF.net Giveback Program.
 Does SourceForge.net help you be more productive?  Does it
 help you create better code?  SHARE THE LOVE, and help us help
 YOU!  Click Here: http://sourceforge.net/donate/
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers





---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] nant 0.8.3 release - bug in documentation

2003-11-23 Thread Gert Driesen
Dmitry,

This is fixed in recent nightly builds.

Thanks for the report,

Gert

- Original Message - 
From: Dmitry Sapunov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 10, 2003 7:54 PM
Subject: [nant-dev] nant 0.8.3 release - bug in documentation


 Documentation file \doc\help\tasks\csctask.html contain error: the
 output attribute of the csc task means not Output directory for the
 compilation target. but Name of the output file. It became clear only
 when debug information is included into output DLL - file named with
 directory name and .pdb extension is created in the project's root
 directory and compilation fails with CS0016 error - access denied.
 When output parameter defined as file name - everything is working fine.

 wbr, dMitry.



 ---
 This SF.net email is sponsored by: SF.net Giveback Program.
 Does SourceForge.net help you be more productive?  Does it
 help you create better code?  SHARE THE LOVE, and help us help
 YOU!  Click Here: http://sourceforge.net/donate/
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers





---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers