WebSharper 4.5.3
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
orDirect
contains a$variable
that doesn't correspond to an argument. Additionally, add a propertyUseDollarVariables : string
on bothInlineAttribute
andDirectAttribute
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>