Quantcast
Channel: ajaxmin Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 683

Commented Unassigned: Manifest files are not closed properly when using the AjaxMinManifestTask [20273]

$
0
0
I tried using the AjaxMinManifestTask in my SharePoint project in the AfterLayout target in MSBuild in order to minify my scripts in the "pkg" folder structure that is later packaged into deployable WSP-files. This caused the build process to fail with an error message saying that the manifest file was being used by "another process".
I downloaded the code and noticed when debugging and monitoring the file handles with process monitor that the file handle for the manifest file isn't closed when the XmlReader is disposed. After changing the try-catch to a using-block for the StreamReader object, the file handle is closed properly when exiting the outer using-block.
This does, however, cause the code analysis to warn about objects getting disposed twice.
Comments: ** Comment from web user: ronlo **

Well, crud. I had changed from a using a while back because of that warning and how it suggest it be fixed. That'll teach me to pay attention to documentation. I'll put it back to a using; not only does it seem to work better, it's far easier to read and maintain.


Viewing all articles
Browse latest Browse all 683

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>