mirror of
https://github.com/Smaug123/WoofWare.DotnetRuntimeLocator
synced 2025-10-05 07:18:40 +00:00
Initial commit
This commit is contained in:
17
Example/Example.fsproj
Normal file
17
Example/Example.fsproj
Normal 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
21
Example/Program.fs
Normal 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
|
Reference in New Issue
Block a user