Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Once installed .net 9 preview, wsfsc not working!! #1414

Open
ingted opened this issue Sep 4, 2024 · 2 comments
Open

Once installed .net 9 preview, wsfsc not working!! #1414

ingted opened this issue Sep 4, 2024 · 2 comments
Assignees

Comments

@ingted
Copy link

ingted commented Sep 4, 2024

The projects are not changed (targeting .net version/websharper lib references...) but not able to build after .net 9 preview installed.

In event viewer, application log:

Application: wsfsc.exe
CoreCLR Version: 9.0.24.40507
.NET Version: 9.0.0-preview.7.24405.7
Description: The process was terminated due to an unhandled exception.
Exception Info: System.PlatformNotSupportedException: BinaryFormatter serialization and deserialization have been removed. See https://aka.ms/binaryformatter for more information.
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph)
   at WebSharper.FSharp.NamedPipeClient.sendCompileCommand(String[] args)
   at WebSharper.FSharp.Program.main(String[] argv)

Error during build process for a websharper project:

C:\Users\anibal\.nuget\packages\websharper.fsharp\6.1.5.317\build\WebSharper.FSharp.targets(50,5): error MSB6006: "wsfsc.exe" exited with code -532462766. [G:\coldfar_py\sharftrade7\
FAkka.Server\FAkka.Server.fsproj]

My project is targeting .net 7 and it used to be able to build. (see. FAkka.Server)

global.json

{
  "sdk": {
    "version": "7.0.400"
  }
}
@granicz
Copy link
Member

granicz commented Sep 4, 2024

Related to #1411

@Jooseppi12
Copy link
Member

@ingted There should be a new version on nuget (6.1.7.476) out there to remove the usage of BinaryFormatter for WebSharper 6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants