Click here to Skip to main content
15,893,814 members
Articles / Programming Languages / C#

Using ASP.NET Runtime in Desktop Applications

Rate me:
Please Sign up or sign in to vote.
4.82/5 (26 votes)
24 Jun 20034 min read 374.6K   4.6K   91  
This article explains how to use ASP.NET runtime in Windows Desktop applications
@echo off

REM if directory bin does not exist, create it
if not exist bin md bin

REM create WebBrowser asseblies
echo "creating assemblies for the WebBrowser control ..."
aximp %systemroot%\system32\SHDocVw.dll

REM create the application
echo ""
echo "building the application ..."
csc /debug+ /define:TRACE /out:UsingAspRuntime.exe /target:winexe /r:AxSHDocVw.dll AssemblyInfo.cs MyHost.cs MainForm.cs

REM copy the application to bin directory. ASP.NET environment need it
copy UsingAspRuntime.exe bin

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
India India
I am System Architect working in a IT company at Hyderabad, India. I have worked extensively on C, C++, COM, COM+ and .NET (C#).

Comments and Discussions