dotnet-websharper / core

WebSharper - Full-stack, functional, reactive web apps and microservices in F# and C#
https://websharper.com
Apache License 2.0
593 stars 52 forks source link

WebSharper compiler issue for referenced project #1331

Closed ingted closed 1 year ago

ingted commented 1 year ago

Hi,

I have a WebSharper project B reference another WebSharper project A. A is fine to build, the dll and js files are successfully generated. And when I try to build project B, it fails with:

Severity    Code    Description Project File    Line    Suppression State
Error   WS9001  Error merging WebSharper metadata: UnionError  { Assembly = "B"  FullName = "WebSharper.Legacy.Html+Client+IHtmlProvider" }   MdcFsClient70   G:\the path\ WEBSHARPERTASK 1   

if I reference to the project (A.fsproj).

But if I reference a published A (A.nupkg), it is fine without the error.

ingted commented 1 year ago

Seems like conditional compilation with stuff in fsproj caused this. Sorry for invalid bug report.