Little tool to make sure VS2012 Fsharp projects are build.

halcwb's Avatar

halcwb

09 Dec, 2014 05:54 PM

Building VS2012 fsharp projects resulted in an 'MSB4057: The target “Build” does not exist in the project.' error. However, this could be resolved by editing the project xml file (see: http://nikosbaxevanis.com/blog/2013/10/04/how-to-configure-msbuild-to-locate-the-f-number-build-targets/).
For large solutions, with a lot of fsharp projects this is a pain in the .. Therefore, I have a little command line tool that will do this for all fsharp projects it can find starting from a supplied root factory, i.e. fixfsrpoj.exe "/PATH".
The project can be found on GitHub, called fixfsproj (https://github.com/halcwb/fixfsproj).

  1. Support Staff 1 Posted by Feodor Fitsner on 09 Dec, 2014 06:15 PM

    Feodor Fitsner's Avatar

    That's great, thanks. I'm moving it to KB section.

  2. 2 Posted by halcwb on 09 Dec, 2014 07:18 PM

    halcwb's Avatar

    Only, it there is one big caveat, it now builds OK on appveyor, but not on my local machine. I can build the projects in VS, but, using the Fake build script, it fails on my own local machine! So, be careful, I am not done with this yet!!

  3. 3 Posted by halcwb on 10 Dec, 2014 12:00 AM

    halcwb's Avatar

    Actually, this is very frustrating, I tried everything. Either I can run the build script on my machine, but then it fails in appveyor, or, I get it to run on appveyor, but then I cannot run the script locally. The only solution I have is to switch all the fsproj files to a 'appveyor version' before build.

  4. 4 Posted by halcwb on 10 Dec, 2014 07:12 AM

    halcwb's Avatar

    Finally got it all together. I have a before_build script that triggers the fixfsproj tool. This only runs at appveyor, so I can use my regular setup and build on my local machine. This seems finally to work.

  5. Support Staff 5 Posted by Feodor Fitsner on 10 Dec, 2014 06:25 PM

    Feodor Fitsner's Avatar

    Cool, thanks!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

18 Aug, 2018 12:13 AM
17 Aug, 2018 09:45 PM
17 Aug, 2018 06:02 PM
17 Aug, 2018 04:26 PM
17 Aug, 2018 04:04 PM