Macromedia HomeSite 5.x ASPX C# & VB.Net Compiler Call Script - 02/20/03 Ver. 1.1
Author: Michael Jaffe
Additional Author: Michael 'Flynn' Volz - michael.volz@epost.de
Description:
Since ASP.NET has arrived I feel as though I've been forced to use VS.NET.
But I can't seem to sway from Homesite completely. I just love it too much.
So this is my first attempt at making my version of homesite as .net ready as
possible.
What I have written is a C#|VB.Net compiler for ASP.NET code behind
pages.
All it does is dynamically create a .bat file in the HomeSite root and then
runs the cs|vb .net compiler.
The script then creates the /bin directory and copies the compiled .dll
to the directory.
Then it runs the internal HS browser to preview the .aspx file (Assuming your
aspx has the same base name. ex myClass.aspx / myClass.aspx.cs|vb)
Its a pretty straight forward script. But this script along with the smNetServerControls
seems to make .Net development in homesite much easier.
V1.1 Changes (Made by Michael 'Flynn' Volz)
- Added VB.Net compiler call
- Added autodection for CS & VB code
- Added ImportCommand statement for libraries to include during compilation.
Example (Put this line in the header of your sourcefile):
'ImportCommand = System.dll,System.Data.dll,System.Web.dll,System.Xml.dll
Requirements:
.Net Framework and IIS
HomeSite 5.x (Haven't tested it with 4.5)
DISCLAIMER OF WARRANTY
HS ASPX C Sharp Compiler is provided as free software, in the hope that
it will be
useful. It is provided "as-is", without warranty of any kind, either
expressed or implied, including, but not limited to, the implied warranties
of merchantability and fitness for a particular purpose. The entire risk as
to determining the suitability, quality and performance of HS ASPX C# & VB.Net Compiler
is
with you. Should HS ASPX C# & VB.Net Compiler Call Script prove defective, the full cost of
repair,
servicing, or correction lies with you.
Instructions
Just unzip to your HomeSite/Scripts directory. Then add the command (icon is included) to your HomeSite toolbar.
Updates
http://www.michaeljaffe.com/csharp.html
http://www.wilk4.com/asp4hs/
Bugs
Email Me