Ionide.ProjInfo 0.68.0

dotnet add package Ionide.ProjInfo --version 0.68.0                
NuGet\Install-Package Ionide.ProjInfo -Version 0.68.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ionide.ProjInfo" Version="0.68.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ionide.ProjInfo --version 0.68.0                
#r "nuget: Ionide.ProjInfo, 0.68.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Ionide.ProjInfo as a Cake Addin
#addin nuget:?package=Ionide.ProjInfo&version=0.68.0

// Install Ionide.ProjInfo as a Cake Tool
#tool nuget:?package=Ionide.ProjInfo&version=0.68.0                

Ionide.Proj-Info

This project loads some MSBuild specific assemblies at runtime so that you can use an existing MSBuild installation instead of (incorrectly) bundling it yourself. Somewhat similar to how MSBuildLocator loads the correct assemblies. Because of this you need to add a direct dependency on Microsoft.Build.Framework and NuGet.Frameworks but keep excluded them at runtime.

<PackageReference Include="Microsoft.Build.Framework" Version="17.2.0" ExcludeAssets="runtime" PrivateAssets="all" />
<PackageReference Include="NuGet.Frameworks" Version="6.2.1" ExcludeAssets="runtime" PrivateAssets="all" />
<PackageReference Include="Ionide.ProjInfo" Version="some_version" />

Next, you first need to initialize the MsBuild integration.

open Ionide.ProjInfo

let projectDirectory: DirectoryInfo = yourProjectOrSolutionFolder
let toolsPath = Init.init projectDirectory None

With the toolsPath you can create a loader

let defaultLoader: IWorkspaceLoader = WorkspaceLoader.Create(toolsPath, [])
// or
let graphLoader: IWorkspaceLoader = WorkspaceLoaderViaProjectGraph.Create(toolsPath, [])

Using the IWorkspaceLoader you can load projects or solutions. Events are being emitted while projects/solutions are loaded. You typically want to subscribe to this before you load anything.

let subscription: System.IDisposable = defaultLoader.Notifications.Subscribe(fun msg -> printfn "%A" msg)
let projectOptions = loader.LoadProjects([ yourFsProjPath ]) |> Seq.toArray

From here consider using Ionide.ProjInfo.FCS to map the projectOptions to F# Compiler ProjectOptions, or use the projectOptions directly to get information about the project.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Ionide.ProjInfo:

Package Downloads
FSharpLint.Core

API to programmatically run FSharpLint.

Ionide.ProjInfo.FCS

MSBuild evaluation, fsproj file loading, and project system for F# tooling

mFSharpLint.Core

API to programmatically run FSharpLint.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.68.0 1,146 11/19/2024
0.67.0 715 10/2/2024
0.66.1 154 9/2/2024
0.66.0 1,312 8/17/2024
0.65.0 2,828 5/15/2024
0.64.0 2,199 4/21/2024
0.63.0 10,744 2/6/2024
0.62.0 7,105 8/21/2023
0.62.0-nightly001 291 6/27/2023
0.61.3 11,143 4/1/2023
0.61.2 2,576 2/20/2023
0.61.1 569 12/9/2022
0.61.0 16,313 11/7/2022
0.60.3 823 10/20/2022
0.60.2 1,124 10/3/2022
0.60.1 858 9/10/2022
0.60.0 1,726 8/21/2022
0.59.2 1,917 8/5/2022
0.59.1 3,057 4/17/2022
0.59.0 783 4/16/2022
0.58.2 1,025 4/4/2022
0.58.1 809 4/3/2022
0.58.0 3,819 4/3/2022
0.57.2 874 3/20/2022
0.57.1 431 3/20/2022
0.57.0 440 3/20/2022
0.55.4 4,151 11/19/2021
0.55.3 965 11/19/2021
0.55.1 576 11/16/2021
0.55.0 802 11/5/2021
0.54.2 764 11/2/2021
0.54.1 719 10/17/2021
0.54.0 606 8/12/2021
0.53.1 20,259 6/23/2021
0.53.0 850 6/22/2021
0.52.0 2,133 4/16/2021
0.51.0 2,062 3/16/2021
0.50.0 705 3/13/2021
0.49.0 837 3/3/2021
0.48.0 738 2/11/2021
0.46.0 1,147 1/11/2021
0.45.2 1,133 12/22/2020
0.45.1 672 12/22/2020
0.45.0 900 12/19/2020

### Added

* * [Support for F# 9 and .NET 9](https://github.com/ionide/proj-info/pull/219)

### Removed

* * [Support for .NET 6 and 7 targets](https://github.com/ionide/proj-info/pull/219)