[NAnt-users] Using nant with .resx files without resgen

2008-02-12 Thread Andrew Armstrong
Hi all,

 

I have been trying to get nant to compile an application and have needed to
 some .resx files as some winforms make use of an external icon.

 

I now cannot compile using nant on a machine without Visual Studio
(resgen.exe) being installed.

 

Is there some way to let nant simply use the existing .resx files already
there, instead of trying to use resgen and generate them again?

 

A search of the nant website and list archives does not yield any help on
the matter.

 

Cheers,

Andrew

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Using nant with .resx files without resgen

2008-02-12 Thread Gert Driesen
Andrew,

You do not need Visual Studio, you only need to install the .NET Framework SDK.

Resx files must be compiled before you can use then, hence the need for resgen.

Hope this helps,

Gert
- Original Message - 
From: "Andrew Armstrong" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, February 12, 2008 9:54 AM
Subject: [NAnt-users] Using nant with .resx files without resgen


> Hi all,
> 
> 
> 
> I have been trying to get nant to compile an application and have needed to
>  some .resx files as some winforms make use of an external icon.
> 
> 
> 
> I now cannot compile using nant on a machine without Visual Studio
> (resgen.exe) being installed.
> 
> 
> 
> Is there some way to let nant simply use the existing .resx files already
> there, instead of trying to use resgen and generate them again?
> 
> 
> 
> A search of the nant website and list archives does not yield any help on
> the matter.
> 
> 
> 
> Cheers,
> 
> Andrew
> 
>





> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/





> ___
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Using nant with .resx files without resgen

2008-02-12 Thread Andrew Armstrong
Awesome, thanks Gert!

-Original Message-
From: Gert Driesen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 12 February 2008 8:09 PM
To: Andrew Armstrong; nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Using nant with .resx files without resgen

Andrew,

You do not need Visual Studio, you only need to install the .NET Framework
SDK.

Resx files must be compiled before you can use then, hence the need for
resgen.

Hope this helps,

Gert
- Original Message - 
From: "Andrew Armstrong" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, February 12, 2008 9:54 AM
Subject: [NAnt-users] Using nant with .resx files without resgen


> Hi all,
> 
> 
> 
> I have been trying to get nant to compile an application and have needed
to
>  some .resx files as some winforms make use of an external
icon.
> 
> 
> 
> I now cannot compile using nant on a machine without Visual Studio
> (resgen.exe) being installed.
> 
> 
> 
> Is there some way to let nant simply use the existing .resx files already
> there, instead of trying to use resgen and generate them again?
> 
> 
> 
> A search of the nant website and list archives does not yield any help on
> the matter.
> 
> 
> 
> Cheers,
> 
> Andrew
> 
>






> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/






> ___
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Builds suddenly failing: "runtime framework 'net-2.0'is not correctly configured"

2008-02-12 Thread Bevan Arps
Hi Chris.

FWIW, I've seen similar problems in the past and found them to be
environmental.

Some things to check ...

... Look at the environment variable "TEMP". Does the directory exist?
Can you create files there?
[Why? If applications can't create temporary files they can fail in
strange ways]

... Look at the enviornment variable "PATH". Has it been truncated? Are
some directories listed multiple times?
[Why? The path is still used for loading DLL files. If truncated
(there's a character # limit), a key system directory may no longer be
searched. I've found some installers/uninstallers have a habit of
duplicating PATH entries.]

... List the directory C:\. How many files are in the root of your
partition? Try (carefully!) removing any junk files? 
[Why? There are limits to how many files can be created in the root of a
drive, if all available directory entries are full you can have
weirdness.]


Hope this helps,
Bevan.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Weiss
Sent: Saturday, 9 February 2008 9:54 a.m.
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Builds suddenly failing: "runtime framework
'net-2.0'is not correctly configured"

I've been editing a NANT file that does delay-signing and then creates
policy files. After running the file, NANT suddenly started throwing
the following errors, regardless of what build file I feed it (even a
simple "hello world" build file fails).

C:>\nant -f:test.build -debug
(numerous loadtasks snipped)
[loadtasks] Adding task 'xmlpoke' from
c:\nant\bin\NAnt.Core.dll:NAnt.Core.Tasks.XmlPokeTask
Framework 'net-1.0' is invalid and has not been loaded : The file
exists.
.
System.IO.IOException: The file exists.

   at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
   at System.IO.__Error.WinIOError()
   at System.IO.Path.GetTempFileName()
   at NAnt.Core.ProjectSettingsLoader.ProcessFrameworks(XmlNode
platformNode)

Framework 'net-1.1' is invalid and has not been loaded : The file
exists.
.
System.IO.IOException: The file exists.

   at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
   at System.IO.__Error.WinIOError()
   at System.IO.Path.GetTempFileName()
   at NAnt.Core.ProjectSettingsLoader.ProcessFrameworks(XmlNode
platformNode)


BUILD FAILED

The current runtime framework 'net-2.0' is not correctly configured in
the NAnt configuration file.
The file exists.


Stacktrace:

The current runtime framework 'net-2.0' is not correctly configured in
the NAnt configuration file.:
NAnt.Core.BuildException: The current runtime framework 'net-2.0' is
not correctly configured in the NAnt configuration file. --->
System.IO.IOException: The fi
le exists.

   at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
   at System.IO.__Error.WinIOError()
   at System.IO.Path.GetTempFileName()
   at NAnt.Core.ProjectSettingsLoader.ProcessFrameworks(XmlNode
platformNode)
   --- End of inner exception stack trace ---
   at NAnt.Core.ProjectSettingsLoader.ProcessFrameworks(XmlNode
platformNode)
   at NAnt.Core.ProjectSettingsLoader.ProcessPlatform(XmlNode
platformNode)
   at NAnt.Core.ProjectSettingsLoader.ProcessSettings()
   at NAnt.Core.Project.CtorHelper(XmlDocument doc, Level threshold,
Int32 indentLevel, Optimizations optimization)
   at NAnt.Core.Project..ctor(String uriOrFilePath, Level threshold,
Int32 indentLevel)
   at NAnt.Core.ConsoleDriver.Main(String[] args)

I've no clue what files it thinks exists. I diff'd my nant folder with
a working nant folder on another machine and there's no extraneous
files and no changes to the config files.

Anyone have any ideas where to look? It doesn't appear that .Net is
corrupted on my machine (nothing else is floundering, that I can
tell).


-- 
-Chris


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users