Bugs item #755604, was opened at 2003-06-17 01:23
Message generated for change (Comment added) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474851&aid=755604&group_id=54790

Category: None
Group: None
Status: Open
>Resolution: Out of Date
Priority: 5
Submitted By: Martin Hanson (martin-hanson)
Assigned to: Nobody/Anonymous (nobody)
Summary: Resource manifest problem

Initial Comment:
In the following methods:

SLiNgshoT.Core.NAntWriter.WriteResXFile()
SLiNgshoT.Core.NAntWriter.WriteCleanProject()
SLiNgshoT.Core.NAntWriter.WriteSolution()

The code to compose the .resource filename is a bit 
funky and causes problems with resource location in 
assemblies. I have replaced the code which forms 
the .resource filename in these routines with the 
following code and it seems to work okay:

                string outputPath;

                int lastDotIndex = 
file.ResourceName.LastIndexOf(".resx");

                if(lastDotIndex >= 0)
                {
                        outputPath = 
file.ResourceName.Substring(0, lastDotIndex);
                }
                else
                {
                        outputPath = 
project.RootNamespace +
                                "." +
                        
        Path.GetFileNameWithoutExtension
(file.RelativePath);
                }

                writer.WriteAttributeString(
                        "output",
                        "${build.dir}\" +
                        outputPath +
                        ".resources");


----------------------------------------------------------------------

>Comment By: Gert Driesen (drieseng)
Date: 2004-08-02 14:46

Message:
Logged In: YES 
user_id=707851

slingshot has been deprecated

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474851&aid=755604&group_id=54790


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
NAntContrib-Developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to