Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Where is the `.fsproj` project file documented?

+3
−0

More specifically: Is there a dedicated docs page listing "properties" that are idiosyncratic to F# .fsproj project files?

Why am I asking?

Started learning F# a couple of days ago, but just now starting to realize that I will also have to learn the .NET ecosystem as well:

Came across the Signatures page in the F# documentation, so I wanted to try out generating an .fsi signature file. Had (and will have) some hurdles with creating a toy project on the terminal, but once I figured it out, I ran into this same issue: How to generate F# signature file (without Visual Studio)?

The answer had the solution, but no links. It did mention the --sig compiler option, and the F# Compiler options page does mention at the very top that:

This article describes compiler command-line options for the F# compiler. The command dotnet build invokes the F# compiler on F# project files. F# project files are noted with the .fsproj extension.

The compilation environment can also be controlled by setting the project properties. For projects targeting .NET Core, the "Other flags" property, <OtherFlags>...</OtherFlags> in .fsproj, is used for specifying extra command-line options.

At this point I started wondering: I would probably want to tweak my projects later on, and the central .fsproj project files seem to be the best place to do so. Where is it documented? It's XML so there has to be a schema too, etc. Spoiler: found the MSBuild Project File Schema Reference after a while.)

Sifting through search results (while having no prior .NET experience whatsoever), I learned that the .fsproj file "is an MSBuild script", and MSBuild is used by every .NET language and framework. (I found the ASP.NET Core's Understanding the Project File docs page way better than the any of the MSBuild articles...)

Long story short, I do need to go through the MSBuild docs at one point, but it would be nice to know if there is a dedicated .fsproj project file page.


Another example from the Document your code with XML comments article in the F# docs:

You can generate the XML file at compile time by doing one of the following:

  • You can add a GenerateDocumentationFile element to the <PropertyGroup> section of your .fsproj project file, which generates an XML file in the project directory with the same root filename as the assembly. For example:

    <GenerateDocumentationFile>true</GenerateDocumentationFile>
    

For more information, see GenerateDocumentationFile property.

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

1 answer

+2
−0

No, there is no single page.

Simple answer - different project requires specific properties.

For example, building a mobile app you'd be interested in whether NativeAot is enabled or not. More specific, building an Android app you can specify AndroidPackageFormats, AndroidLinkTool, etc. Those properties don't exist (or rather doesn't make any sense for console app).

Also while dotnet ecosystem is grows new and new properties are added. For example, UseMauiEssentials. Attempt to enumerate everything at once just adds a headache while learning.

So though I agree it's confusing and definitely can be improved single page won't help.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

Works for me (1 comment)

Sign up to answer this question »