Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I embed application manifest in F# application

How can I embed application manifest with my F# application? With C# projects it can be specified in projects properties but I haven't found any similar in F# project.

like image 500
Regent Avatar asked Dec 10 '25 10:12

Regent


1 Answers

With VS 2015 and F# 4 (I haven't tested earlier versions, but it probably also works in them) both the compiler and the MSBuild files directly support embedding a manifest in an exe, the option is just not surfaced on the GUI.

You can just add the manifest as a normal file and add the following to your project file:

  <PropertyGroup>
    <ApplicationManifest>app.manifest</ApplicationManifest>
  </PropertyGroup>

This adds the following parameter to the call to the compiler: --win32manifest:app.manifest

like image 123
Lukas Rieger Avatar answered Dec 13 '25 06:12

Lukas Rieger