Initial commit

This commit is contained in:
Smaug123
2024-06-07 18:31:16 +01:00
parent 5bb3642433
commit b1d65b33d8
29 changed files with 1393 additions and 0 deletions

17
Example/Example.fsproj Normal file
View File

@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<SelfContained>true</SelfContained>
</PropertyGroup>
<ItemGroup>
<Compile Include="Program.fs"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\WoofWare.DotnetRuntimeLocator\WoofWare.DotnetRuntimeLocator.csproj" />
</ItemGroup>
</Project>

21
Example/Program.fs Normal file
View File

@@ -0,0 +1,21 @@
namespace Example
open System
open WoofWare.DotnetRuntimeLocator
module Program =
[<EntryPoint>]
let main argv =
let info = DotnetEnvironmentInfo.Get ()
Console.WriteLine info
Console.WriteLine ("SDKs:")
for sdk in info.Sdks do
Console.WriteLine $"SDK: %O{sdk}"
Console.WriteLine ("Frameworks:")
for f in info.Frameworks do
Console.WriteLine $"Framework: %O{f}"
0