Closed panesofglass closed 6 years ago
Actually this project (like most WebSharper extensions) uses IF.Build: the project is defined in build.fsx
. The *.sln
and *.fsproj
files are provided for convenience.
To build the project, you need to run build.cmd
(or build.sh
on Mac / Linux). This downloads the NuGet packages, builds the project and generates the build/net*/*.proj
files. After you've done this once, you can use VS or XS as usual.
That's what I did, but I didn't have everything I needed on either Windows or Mac. I tried both and ran the respective build.*
files before opening each time.
Did the build.* succeed when you ran them?
@Tarmil, only on Windows. I can't remember the error on Mac.
Here's the error from build.sh
on Mac. FYI, this happens regardless of whether or not I have the Xamarin installation on my path.
Ryans-MBP:websharper.owin ryan$ ./build.sh
Package "IntelliFactory.Build" is already installed.
Cannot open assembly '/usr/lib/mono/4.0/fsi.exe': No such file or directory.
Also, the .fsproj files do not include the dependencies or NuGet packages, so I cannot build in VS or Xamarin Studio after a fresh clone.
@Tarmil, the problem appears to be a missing build
folder:
<Import Project="../build/net45/$(Name).proj" />
OK I see, the issue is that build.sh
makes wrong assumptions about the location of fsi.exe
, and therefore the build script cannot be run. If you have F# in your path, can you try replacing mono $FSharpHome/fsi.exe
in the last line with fsharpi
? This should allow you to run build.sh
correctly. Once it has finished, the build
folder and its contents will be generated, and the fsproj
files should be usable.
I get an error when trying to open the solution in VS2013. The
*.proj
files inbuild/net45/
are missing. If I comment out theImport
declaration in each project, I can open the projects, but the build breaks within Visual Studio. Can you please provide thebuild/net45/*.proj
files?