- Posted by Justin on October 13, 2008
I have been having issues with data in a Flex application not refreshing when configuration changes are made. I thought that the issue was related to IE caching since it works as expected if the check for newer versions of stored pages to Every time I visit the webpage. However, even when I put the meta http-equiv Expires tag to 0, it didn't fix the problem. It turns out that it is the Flash player that is caching the data. I found a fix at http://www.communitymx.com/content/article.cfm?cid=827EA .
var gateway:HTTPService = new HTTPService();
gateway.url = urlValue + "?cachebuster=" + new Date().getTime();
- Posted by Justin on October 12, 2008
I have been thinking about generating the help documentation during my cc.net builds and the article below looks to be exactly what I need.
Original Post at Auto-generating help with NAnt and CC.net
Sancastle Help File Builder tool is a fantastic GUI interface to configure and create both HTML Help and web page documentation (I wont' discuss this in depth here). Basically just point it at your .exe or .dll set a few parameters and you are off. Great when you are manually doing it, but for automation; no. Well inside the deployment directory is a command line tool; SandcastleBuilderConsole.exe. Use the GUI tool to create your project and set any parameters and then save it as an .shfb file. Then pass your .shfb file generated to the SandcastleBuilderConsole application and your help file will be created.
Now both the Sandcastle Help File Builder tool and its command line version need the XML comments from your application. Visual Studio will generate this automatically by going to the project properties build tab and selecting the XML documentation file tick box. If however you are wanting NAnt to do it automatically each time you perform a build, add the doc attribute to your csc element like this:-
1: <csc target="library" output="nant_build\ReportsPdf.dll"
2: doc="nant_build\ReportsPdf.xml">
Then somewhere within your target element, add the command to run the exe which points to your SandCastleBuilderConsole.exe, like this:-
1: <exec
2: program="C:\Program Files\EWSoftware\Sandcastle Help File Builder\SandcastleBuilderConsole.exe"
3: commandline=""${SandCastleDocPath}\${SandCastleHFBProject}"" 4: failonerror="true"/>
The two properties for the commandline attribute are set earlier on in the NAnt file like so:-
1: <property name="SandCastleHFBProject" value="sandcastle.shfb"></property>
2: <property name="SandCastleDocPath" value=".\Sandcastle\"></property>