WebSharperの最新バージョンをダウンロードしてインストールしました。このページには、次の行の1つである例があります。
let HomePage =
Template "HomePage" <| fun ctx ->
[ Div [Text "HOME"] Links ctx Div [new Controls.HelloControl()] ]
Visual Studio 2012 Ultimate RCでは、「Webアプリケーション(サイトレット)」テンプレートはすでに次のコードを提供しています。
let HomePage =
Skin.WithTemplate "HomePage" <| fun ctx ->
[
Div [Text "HOME"]
Links ctx
]
Visual StudioのレッドライニングのDiv [new Controls.HelloControl ()]後にメッセージ を追加しようとすると、次の ように変更しようとしましたが、それ自体がメッセージでレッドライニングされます。Links ctxLinks ctxThis value is not a function and cannot be applied.Skin.WithTemplateTemplateTemplateThe value or constructor Template is not defined
問題を解決するための助けをいただければ幸いです。WebSharperWebサイトの公式ドキュメントが一般的に最新であるかどうかを知ることも役立ちます。
これがスクリーンショットです。
