F# and OpenSilver v3.0
An update to the previous series of posts.
Having updated to the OpenSilver3.0 .vsix
, the process of porting the standard astroclock test app from 2.1 to a newly minted 3.0 base solution was
- Add a
global.json
to keep the dotnet 9.0 pv SDK from being selected by default - Copy the appliction source and resource files from the 2.1 project
- Add the extra files to the project - in this case,
Computation.fs
andtextured_paper.png
- Adjust the app namespace in the browser and simulator projects
- And that's it.
The process was entirely transparent from the app and user experience point of view.
Only the one niggle - an obsolete code warning in the generated browser project persists from previous releases
Severity Code Description Project File Line Suppression State Details Warning (active) CS0618 'WebAssemblyJSRuntime.InvokeUnmarshalled<T0, TResult>(string, T0)' is obsolete: 'This method is obsolete. Use JSImportAttribute instead.' astroclock.opensilver3._0.Browser D:\Github\astroclock\astroclock.opensilver3.0\astroclock.opensilver3.0\astroclock.opensilver3._0.Browser\Interop\UnmarshalledJavaScriptExecutionHandler.cs 19
Now when life quietens down, I shall have to port my other work-in-progress project, that has been languishing for several months now, from 2.1 to 3.0 as well.
No comments :
Post a Comment