Bugs item #1105576, was opened at 2005-01-19 15:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1105576&group_id=31650

Category: Tasks
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Submitted By: Rajiv (rajivdga)
Assigned to: Nobody/Anonymous (nobody)
Summary: ResGenTask locks .resx file

Initial Comment:
The resgen task continues to hold a lock on the input 
file after it completes.  Probably it is because in 
ReferencesThirdPartyAssemblies() the StreamReader is 
not disposed.

Change it to this and the problem goes away:
----
using (StreamReader streamreader = new StreamReader
(resourceFile, true))
{
  XmlTextReader xmltextreader = new XmlTextReader
(streamreader);
  XPathDocument xpathDoc = new XPathDocument
(xmltextreader);
...
----




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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1105576&group_id=31650


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to