[Nant-users] Embedding XML as Resource

2003-12-14 Thread Michael Doerfler
Hello everyone, sorry for asking such as basic question but I have RTFMed, 
searched the souceforge list, and googled this and can't find an answer - or 
atleast the answer I am looking for :)

When I use VS.NET 2003 I can have the following structure for my project
Folder1
 Folder2
   File.xml
and on the properties screen choose the Compile Action to be an Embedded 
Resource and it will be compiled into the manifest as

.mresource public DefaultNamespace.Folder1.Folder2.File.xml
{
}
I have been unable to duplicate that functionallity in NAnt using the 
Resource element and all of the various attributes.

I found the following bug 
http://sourceforge.net/tracker/index.php?func=detail&aid=805307&group_id=31650&atid=402868 
that was geared towards fixing problems with as?x files and another posting 
of similar problem with crystal reports 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg01691.html

The Crystal Reports mailing suggestion was to rename the file to 
DefaultNamespace.Folder1.Folder2.File.xml.  If I do that and do a compile 
from VS.NET it ends up putting the following entry in the manifest

.mresource public 
DefaultNamespace.Folder1.Folder2.DefaultNamespace.Folder1.Folder2.File.xml
{
}

I don't want my NAnt build to put different resource names in the manifest 
than the VS.NET build does.  I don't want to have to put all of the XML 
files at the root of the project with their namespace name in the file name. 
 Is this a bug or am I just using NAnt (version 0.84) incorrectly?

Any help would be greatly appreciated!  Thanks!

Mike Doerfler

_
Don’t worry if your Inbox will max out while you are enjoying the holidays.  
Get MSN Extra Storage!  http://join.msn.com/?PAGE=features/es



---
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-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] Embedding XML as Resource

2003-12-14 Thread Jaroslaw Kowalski
This is taken from my build file. The most important are: "prefix" and
"dynamicprefix" attributes.

Resources are named:

Sooda.StubGen.Template.Template.csproj
Sooda.StubGen.Template.Template.vbproj
...

 
  
   

   
   

   
   





   
  
  
 

Hope it helps.

Jarek

- Original Message - 
From: "Michael Doerfler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 14, 2003 3:26 PM
Subject: [Nant-users] Embedding XML as Resource


> Hello everyone, sorry for asking such as basic question but I have RTFMed,
> searched the souceforge list, and googled this and can't find an answer -
or
> atleast the answer I am looking for :)
>
> When I use VS.NET 2003 I can have the following structure for my project
> Folder1
>   Folder2
> File.xml
>
> and on the properties screen choose the Compile Action to be an Embedded
> Resource and it will be compiled into the manifest as
>
> .mresource public DefaultNamespace.Folder1.Folder2.File.xml
> {
> }
>
> I have been unable to duplicate that functionallity in NAnt using the
> Resource element and all of the various attributes.
>
> I found the following bug
>
http://sourceforge.net/tracker/index.php?func=detail&aid=805307&group_id=31650&atid=402868
> that was geared towards fixing problems with as?x files and another
posting
> of similar problem with crystal reports
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg01691.html
>
> The Crystal Reports mailing suggestion was to rename the file to
> DefaultNamespace.Folder1.Folder2.File.xml.  If I do that and do a compile
> from VS.NET it ends up putting the following entry in the manifest
>
> .mresource public
> DefaultNamespace.Folder1.Folder2.DefaultNamespace.Folder1.Folder2.File.xml
> {
> }
>
> I don't want my NAnt build to put different resource names in the manifest
> than the VS.NET build does.  I don't want to have to put all of the XML
> files at the root of the project with their namespace name in the file
name.
>   Is this a bug or am I just using NAnt (version 0.84) incorrectly?
>
> Any help would be greatly appreciated!  Thanks!
>
> Mike Doerfler
>
> _
> Don’t worry if your Inbox will max out while you are enjoying the
holidays.
> Get MSN Extra Storage!  http://join.msn.com/?PAGE=features/es
>
>
>
> ---
> 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-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>



---
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-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] Embedding XML as Resource

2003-12-14 Thread Michael Doerfler
Jaroslaw, thanks a bunch for your help - much appreciated!  I am able to get 
my DLL built with the proper resource names in the manifest.

I noticed while NAnt is building the resource files it creates an extra copy 
of the file - in my example
Folder1
 Folder2
   File.xml

during the build it makes a file Folder1.Folder2.File.xml under the Folder2 
physical folder.  At the end of the build I am receiving the error message

System.UnauthorizedAccessException: Access to the path 
"E:\projectname\src\projectname\folder1\folder2\folder1.folder2.file.xml" is 
denied.
 at System.IO.__Error.WinIOError(Int32 errorCode, String str)
 at System.IO.File.Delete(String path)
 at NAnt.DotNet.Tasks.CompilerBase.ExecuteTask()
 at NAnt.Core.Task.Execute()
 at NAnt.Core.Targe.Execute()
 at NAnt.Core.Project.Execute(String targetName)
 at NAnt.Core.Project.Execute()
 at NAnt.Core.Project.Run()

Has anyone received this before or I do I need to configure some security on 
my source code folders??

Thanks for the advice.

Mike


From: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>
To: "Michael Doerfler" 
<[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
Subject: Re: [Nant-users] Embedding XML as Resource
Date: Sun, 14 Dec 2003 15:45:24 +0100

This is taken from my build file. The most important are: "prefix" and
"dynamicprefix" attributes.
Resources are named:

Sooda.StubGen.Template.Template.csproj
Sooda.StubGen.Template.Template.vbproj
...
 
  
   

   
   

   
   





   
  
  
 
Hope it helps.

Jarek

- Original Message -
From: "Michael Doerfler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 14, 2003 3:26 PM
Subject: [Nant-users] Embedding XML as Resource
> Hello everyone, sorry for asking such as basic question but I have 
RTFMed,
> searched the souceforge list, and googled this and can't find an answer 
-
or
> atleast the answer I am looking for :)
>
> When I use VS.NET 2003 I can have the following structure for my project
> Folder1
>   Folder2
> File.xml
>
> and on the properties screen choose the Compile Action to be an Embedded
> Resource and it will be compiled into the manifest as
>
> .mresource public DefaultNamespace.Folder1.Folder2.File.xml
> {
> }
>
> I have been unable to duplicate that functionallity in NAnt using the
> Resource element and all of the various attributes.
>
> I found the following bug
>
http://sourceforge.net/tracker/index.php?func=detail&aid=805307&group_id=31650&atid=402868
> that was geared towards fixing problems with as?x files and another
posting
> of similar problem with crystal reports
> 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg01691.html
>
> The Crystal Reports mailing suggestion was to rename the file to
> DefaultNamespace.Folder1.Folder2.File.xml.  If I do that and do a 
compile
> from VS.NET it ends up putting the following entry in the manifest
>
> .mresource public
> 
DefaultNamespace.Folder1.Folder2.DefaultNamespace.Folder1.Folder2.File.xml
> {
> }
>
> I don't want my NAnt build to put different resource names in the 
manifest
> than the VS.NET build does.  I don't want to have to put all of the XML
> files at the root of the project with their namespace name in the file
name.
>   Is this a bug or am I just using NAnt (version 0.84) incorrectly?
>
> Any help would be greatly appreciated!  Thanks!
>
> Mike Doerfler
>
> _
> Don’t worry if your Inbox will max out while you are enjoying the
holidays.
> Get MSN Extra Storage!  http://join.msn.com/?PAGE=features/es
>
>
>
> ---
> 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-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>

_
Don’t worry if your Inbox will max out while you are enjoying the holidays.  
Get MSN Extra Storage!  http://join.msn.com/?PAGE=features/es



---
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-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] Embedding XML as Resource

2003-12-14 Thread Ian MacLean
Michael,
I assume you are using the 0.84 rc1 build ? The copying error you are
seeing is a bug in that release which has since been fixed. Try a
nightly build from

http://nant.sourceforge.net/builds/

and let us know if that fixes your issue.

Ian

Michael Doerfler wrote:

> Jaroslaw, thanks a bunch for your help - much appreciated! I am able
> to get my DLL built with the proper resource names in the manifest.
>
> I noticed while NAnt is building the resource files it creates an
> extra copy of the file - in my example
> Folder1
> Folder2
> File.xml
>
> during the build it makes a file Folder1.Folder2.File.xml under the
> Folder2 physical folder. At the end of the build I am receiving the
> error message
>
> System.UnauthorizedAccessException: Access to the path
> "E:\projectname\src\projectname\folder1\folder2\folder1.folder2.file.xml"
> is denied.
> at System.IO.__Error.WinIOError(Int32 errorCode, String str)
> at System.IO.File.Delete(String path)
> at NAnt.DotNet.Tasks.CompilerBase.ExecuteTask()
> at NAnt.Core.Task.Execute()
> at NAnt.Core.Targe.Execute()
> at NAnt.Core.Project.Execute(String targetName)
> at NAnt.Core.Project.Execute()
> at NAnt.Core.Project.Run()
>
>
> Has anyone received this before or I do I need to configure some
> security on my source code folders??
>
> Thanks for the advice.
>
> Mike
>
>
>> From: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>
>> To: "Michael Doerfler"
>> <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
>> Subject: Re: [Nant-users] Embedding XML as Resource
>> Date: Sun, 14 Dec 2003 15:45:24 +0100
>>
>> This is taken from my build file. The most important are: "prefix" and
>> "dynamicprefix" attributes.
>>
>> Resources are named:
>>
>> Sooda.StubGen.Template.Template.csproj
>> Sooda.StubGen.Template.Template.vbproj
>> ...
>>
>> 
>> > output="${sooda.outdir}/StubGen.exe"
>> debug="${sooda.debug}"
>> define="${sooda.define},NO_VB,NO_JSCRIPT">
>> 
>> 
>> 
>> 
>> 
>> 
>> > prefix="Sooda.StubGen"
>> dynamicprefix="true">
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> > tofile="${sooda.outdir}/StubGen.exe.config" />
>> 
>>
>> Hope it helps.
>>
>> Jarek
>>
>> - Original Message -
>> From: "Michael Doerfler" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Sunday, December 14, 2003 3:26 PM
>> Subject: [Nant-users] Embedding XML as Resource
>>
>>
>> > Hello everyone, sorry for asking such as basic question but I have
>> RTFMed,
>> > searched the souceforge list, and googled this and can't find an
>> answer -
>> or
>> > atleast the answer I am looking for :)
>> >
>> > When I use VS.NET 2003 I can have the following structure for my
>> project
>> > Folder1
>> > Folder2
>> > File.xml
>> >
>> > and on the properties screen choose the Compile Action to be an
>> Embedded
>> > Resource and it will be compiled into the manifest as
>> >
>> > .mresource public DefaultNamespace.Folder1.Folder2.File.xml
>> > {
>> > }
>> >
>> > I have been unable to duplicate that functionallity in NAnt using the
>> > Resource element and all of the various attributes.
>> >
>> > I found the following bug
>> >
>> http://sourceforge.net/tracker/index.php?func=detail&aid=805307&group_id=31650&atid=402868
>>
>> > that was geared towards fixing problems with as?x files and another
>> posting
>> > of similar problem with crystal reports
>> >
>> http://www.mail-archive.com/[EMAIL PROTECTED]/msg01691.html
>>
>> >
>> > The Crystal Reports mailing suggestion was to rename the file to
>> > DefaultNamespace.Folder1.Folder2.File.xml. If I do that and do a
>> compile
>> > from VS.NET it ends up putting the following entry in the manifest
>> >
>> > .mresource public
>> >
>> DefaultNamespace.Folder1.Folder2.DefaultNamespace.Folder1.Folder2.File.xml
>>
>> > {
>> > }
>> >
>> > I don't want my NAnt build to put different resource names in the
>> manifest
>> > than the VS.NET build does. I don't want to have to put all of the XML
>> > files at the root of the project with their namespace name in the file
>> name.
>> > Is this a bug or am I just using NAnt (version 0.84) incorrectly?
>> >
>> > Any help would be greatly appreciated! Thanks!
>> >
>> > Mike Doerfler
>> >
>> > _
>> > Don稚 worry if your Inbox will max out while you are enjoying the
>> holidays.
>> > Get MSN Extra Storage! http://join.msn.com/?PAGE=features/es
>> >
>> >
>> >
>> > ---
>> > 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-users mailing list
>> > [EMAIL PROTECTED]
>> > https://lists.sourceforge.net/lists/listinfo/nant-users
>> >
>>
>
> _
> Don稚 worry if your Inbox will max out while you are enjoying the
> holidays. Get MSN Extra Sto