Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into websharper61
Browse files Browse the repository at this point in the history
  • Loading branch information
Jooseppi12 committed Nov 28, 2022
2 parents bc03a16 + 043018d commit f0d134d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ Target.create "RunCompilerTestsRelease" <| fun _ ->

[
//"tests/WebSharper.Compiler.FSharp.Tests/WebSharper.Compiler.FSharp.Tests.fsproj"
"tests/WebSharper.Core.JavaScript.Tests/WebSharper.Core.JavaScript.Tests.fsproj"
"tests/WebSharper.CSharp.Analyzer.Tests/WebSharper.CSharp.Analyzer.Tests.fsproj"
yield "tests/WebSharper.Core.JavaScript.Tests/WebSharper.Core.JavaScript.Tests.fsproj"
if System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform System.Runtime.InteropServices.OSPlatform.Windows then
yield "tests/WebSharper.CSharp.Analyzer.Tests/WebSharper.CSharp.Analyzer.Tests.fsproj"
]
|> List.iter (
DotNet.test (fun t ->
Expand Down Expand Up @@ -216,7 +217,7 @@ Target.create "RunSPATestsRelease" <| fun _ ->
// failwith "Chutzpah test run failed for SPA tests"

Target.create "RunMainTestsRelease" <| fun _ ->
if Environment.environVarAsBoolOrDefault "SKIP_CORE_TESTING" false then
if Environment.environVarAsBoolOrDefault "SKIP_CORE_TESTING" false || not <| System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform System.Runtime.InteropServices.OSPlatform.Windows then
Trace.log "Chutzpah testing skipped"
else

Expand Down
2 changes: 1 addition & 1 deletion msbuild/WebSharper.FSharp.Internal.targets
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<PropertyGroup Condition=" '$(WebSharperRunCompiler)' == 'True' ">
<WebSharperTaskAssembly Condition=" '$(WebSharperTaskAssembly)' == ''">$(Root)/build/$(Configuration)/FSharp/netstandard2.0/WebSharper.MSBuild.FSharp.dll</WebSharperTaskAssembly>
<WebSharperToolPath Condition=" '$(WebSharperToolPath)' == '' AND '$(OS)' == 'Windows_NT' ">$(Root)/build/$(Configuration)/FSharp/net6.0/wsfsc.exe</WebSharperToolPath>
<WebSharperToolPath Condition=" '$(WebSharperToolPath)' == '' AND '$(OS)' == 'Windows_NT' ">$(Root)/build/$(Configuration)/FSharp/net6.0/wsfsc.exe</WebSharperToolPath>
<WebSharperToolPath Condition=" '$(WebSharperToolPath)' == '' AND '$(OS)' != 'Windows_NT' ">$(Root)/build/$(Configuration)/FSharp/net6.0/wsfsc.sh</WebSharperToolPath>
<WebSharperSourceMap>True</WebSharperSourceMap>
<WebSharperConfigFile Condition=" '$(WebSharperConfigFile)' == '' AND Exists('$(MSBuildProjectDirectory)/wsconfig.$(MSBuildProjectName).json') ">$(MSBuildProjectDirectory)/wsconfig.$(MSBuildProjectName).json</WebSharperConfigFile>
<WebSharperConfigFile Condition=" '$(WebSharperConfigFile)' == '' AND Exists('$(MSBuildProjectDirectory)/wsconfig.json') ">$(MSBuildProjectDirectory)/wsconfig.json</WebSharperConfigFile>
Expand Down
4 changes: 3 additions & 1 deletion src/compiler/WebSharper.Compiler.FSharp/Compile.fs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ let Compile (config : WsConfig) (warnSettings: WarnSettings) (logger: LoggerBase
config.CompilerArgs
|> Array.map (fun s ->
s.Replace(@"net6.0\.NETCoreApp,Version=v6.0.AssemblyAttributes.fs",
@"netstandard2.0\.NETStandard,Version=v2.0.AssemblyAttributes.fs")
@"netstandard2.0\.NETStandard,Version=v2.0.AssemblyAttributes.fs"
).Replace(@"net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.fs",
@"netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs")
)
File.WriteAllLines(mainProxiesFile, fixedArgs)
MakeDummyDll config.AssemblyFile thisName
Expand Down

0 comments on commit f0d134d

Please sign in to comment.