Closed intellifactory-bb closed 9 years ago
What happens when you start from a fresh checkout and (as the instructions suggest) run MSBuild in the root folder? If it does not build, can you post the build log with the error? It seems to build on my machine. Also, if you are just looking for the binaries, you can pull WebSharper 2.5.2-alpha from NuGet. Thanks. --Anton
Original comment by: IntelliFactory
I haven't given up on building yet :) I really appreciate that this project is open source, and I'd like to start contributing code back eventually.
I've tried MSBuild, it does pull in all the required files; however, when the time comes to load FSharp.Core.dll, it doesn't find the right version of the assembly. Error message attached.
#!
"C:\Users\Tiesto\Documents\Code\Autonomus\Autonomus\WebSharper\Build.proj" (default target) (1) ->
(Build target) ->
C:\Users\Tiesto\Documents\Code\Autonomus\Autonomus\WebSharper\Build.proj(17,5): error :
C:\Users\Tiesto\Documents\Code\Autonomus\Autonomus\WebSharper\Build.proj(17,5): error : Unhandled Exception: System.I
O.FileLoadException: Could not load file or assembly 'FSharp.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03
f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly refer
ence. (Exception from HRESULT: 0x80131040)
C:\Users\Tiesto\Documents\Code\Autonomus\Autonomus\WebSharper\Build.proj(17,5): error : File name: 'FSharp.Core, Vers
ion=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
C:\Users\Tiesto\Documents\Code\Autonomus\Autonomus\WebSharper\Build.proj(17,5): error : at Microsoft.FSharp.Compil
er.Interactive.Shell.main()
C:\Users\Tiesto\Documents\Code\Autonomus\Autonomus\WebSharper\Build.proj(17,5): error : at Microsoft.FSharp.Compil
er.Interactive.Shell.MainMain(String[] _arg6)
C:\Users\Tiesto\Documents\Code\Autonomus\Autonomus\WebSharper\Build.proj(17,5): error :
C:\Users\Tiesto\Documents\Code\Autonomus\Autonomus\WebSharper\Build.proj(17,5): error : WRN: Assembly binding logging
is turned OFF.
C:\Users\Tiesto\Documents\Code\Autonomus\Autonomus\WebSharper\Build.proj(17,5): error : To enable assembly bind failu
re logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
C:\Users\Tiesto\Documents\Code\Autonomus\Autonomus\WebSharper\Build.proj(17,5): error : Note: There is some performan
ce penalty associated with assembly bind failure logging.
C:\Users\Tiesto\Documents\Code\Autonomus\Autonomus\WebSharper\Build.proj(17,5): error : To turn this feature off, rem
ove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
C:\Users\Tiesto\Documents\Code\Autonomus\Autonomus\WebSharper\Build.proj(17,5): error :
C:\Users\Tiesto\Documents\Code\Autonomus\Autonomus\WebSharper\Build.proj(17,5): error MSB3073: The command ""packages
/FAKE.1.74.127.0/tools/Fake.exe" Build/Build.fsx" exited with code 1.
Original comment by: Carl Poulin
I have since discovered that the build only really works with the F# 3.0 compiler installed. To quickly install that, see, for example: http://stackoverflow.com/questions/12421873/is-there-a-way-to-install-f-3-0-without-visual-studio
My idea with 2.5 is to build against F# 3.0 runtime so that everything uses F# 2.3.0.0 and F# 4.3.0.0; this should in principle work on other systems. I am also switching to a matrix build (still need to commit that) so that the NuGet package gets two working copies of WebSharper, one cleanly built for 4.0 runtime with F# 4.3.0.0 and another for the 3.5 runtime with F# 2.3.0.0. I am still figuring out some details of the build, please bear with me.
Contributions would be awesome. Have you built anything with WebSharper? Our current weakest link is perhaps docs and tutorials, I would love to prominently feature any apps you've made - bonus points if they are open-source.
--Anton
Original comment by: Anton Tayanovskyy
It is only my opinion, so take it for what it's worth, but in my experience documentation (or lack thereof) was never a problem because the PDF document that you can download from the website is a very good introduction to the capabilities and limitations of Websharper, and any other question that I had was answered by looking at the source code.
I am currently building a MS-Access-like CRUD builder for the web. I have nothing but admiration for the open source community, but on the other hand commercial considerations trump ideological ones. I might release it under the AGPL or a similarly restricted license much like you did, so the code is there for everyone to seen tweak or inspire themselves from, but the product still maintains commercial viability.
Original comment by: Carl Poulin
Open or not, if you do not mind going on record about using WebSharper, we will happily mention your project - give us a link and a screenshot when there's something to show.
Original comment by: Anton Tayanovskyy
I have some good news - I finally have a working build of the WebSharper project on AppHarbor (which does not have F# 3.0 installed). Could you try now? Thanks.
Original comment by: Anton Tayanovskyy
I will try once I get home. By the way, thank you for maintaining an up-to-date GitHub repository! I'll be proposing my patches via pull requests on GitHub.
Original comment by: Carl Poulin
Well it builds on my work machine :) Thanks infinitely!
Original comment by: Carl Poulin
Great! Concerning contributions: patches on GitHub work great. We are def. open to accepting patches. I would suggest, if you are considering doing some changes that are not a one-liner, start a ticket here discussing them. This way we can talk about it and also make sure that two people are not working on the same thing. Thanks!
Original comment by: Anton Tayanovskyy
Fixed, thanks Anton :)
Original comment by: Carl Poulin
I'm trying to build WebSharper from source. Using the latest check-in (2.5.2 Alpha), I can't find a way to build. The Downloads page doesn't have the AjaxMin task, and Mono.Cecil doesn't seem to be getting pulled it either.
Please advise!