visual-studio-2012f#

How can I set additional F# compiler flags when compiling with Visual Studio?


I am writing an F# library that targets the .NET Framework 3.5 with Visual Studio 2012. I would like to use the --standalone compiler flag so that the library contains all of the types needed to run by itself.

How can I set my F# project to compile with this flag with resorting to compiling with the command line?


Solution

  • You can add other compiler flags in the "Other flags" section of the project's properties.

    Screenshot of project properties