Skip to content

WebSharper 4.5.3

Compare
Choose a tag to compare
@Tarmil Tarmil released this 17 Sep 16:27
· 1131 commits to master since this release

This is a bugfix release for WebSharper 4.5. See the associated WebSharper.UI release

Templates for .NET Core SDK: dotnet new -i WebSharper.Templates::4.5.2.275

Templates for Visual Studio 2017: http://websharper.com/installers/WebSharper.4.5.2.275.vsix

Fixes

  • #1019 Show a compile-time warning when an Inline or Direct contains a $variable that doesn't correspond to an argument. Additionally, add a property UseDollarVariables : string on both InlineAttribute and DirectAttribute to indicate that a given $variable is not an argument typo and should not cause a warning.

    For example, the following warns that $unexpected doesn't correspond to an argument, but doesn't warn about $expected1 and $expected2:

    [<Inline("$this.myMethod($theArg, $unexpected, $expected1, $expected2)",
             UseDollarVariables = "$expected1, $expected2")>]
    member this.MyMethod(theArg: int) = X<unit>