I'm doing a simple demo that involves creating an HTML page using F# and Websharper. Using the samples from the Websharper website I'm able to run a simple Hello World page using sitelets when I hit Debug on Visual Studio. I'm wondering if there's a way to package this in such a way that I don't have to open the file in Visual Studio and hit debug to display the content? I've tried using msbuild from the command line to build the solution but I've had no luck opening the browser that way. What I need is a way to compile the code and display the HTML page without having to open up VS. Also I'm using Web Applications (Sitelets) template for VS for Web Express 2012. Thanks
1 に答える
2
「Web アプリケーション (Sitelets)」テンプレートは、実際には HTML ファイルを生成しません。ASP.NET ランタイムで実行できる DLL を生成します。したがって、状況に応じて:
サーバー側の計算を行わずに HTML ファイルを生成するだけの場合は、代わりに HTML アプリケーション テンプレートを使用する必要があります。サイトレットを一連の .html ファイルにコンパイルします。
サーバー ランタイムが必要な場合は、ASP.NET for IIS をインストールするのが最も安全な方法です。コントロールパネルのどこかにある「Windowsの機能の有効化または無効化」で見つけることができます。次に、IIS マネージャーで Web サイトを追加し、アプリケーションの Web フォルダーをポイントします。
于 2013-11-15T17:21:28.547 に答える