Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
162 changes: 162 additions & 0 deletions ConsoleApp1/ConsoleApp1.fsproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>

<ItemGroup>
<Compile Include="Form1.fs" />
<Compile Include="Program.fs" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="FSharp.Core" Version="8.0.100-beta.23475.2" />
</ItemGroup>

<!--<ItemGroup>
<Reference Include="Accessibility.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\Accessibility.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualBasic.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\Microsoft.VisualBasic.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualBasic.Forms.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\Microsoft.VisualBasic.Forms.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Win32.Registry.AccessControl.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\Microsoft.Win32.Registry.AccessControl.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Win32.SystemEvents.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\Microsoft.Win32.SystemEvents.dll</HintPath>
</Reference>
<Reference Include="PresentationCore.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\PresentationCore.dll</HintPath>
</Reference>
<Reference Include="PresentationFramework.Aero.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\PresentationFramework.Aero.dll</HintPath>
</Reference>
<Reference Include="PresentationFramework.Aero2.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\PresentationFramework.Aero2.dll</HintPath>
</Reference>
<Reference Include="PresentationFramework.AeroLite.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\PresentationFramework.AeroLite.dll</HintPath>
</Reference>
<Reference Include="PresentationFramework.Classic.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\PresentationFramework.Classic.dll</HintPath>
</Reference>
<Reference Include="PresentationFramework.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\PresentationFramework.dll</HintPath>
</Reference>
<Reference Include="PresentationFramework.Luna.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\PresentationFramework.Luna.dll</HintPath>
</Reference>
<Reference Include="PresentationFramework.Royale.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\PresentationFramework.Royale.dll</HintPath>
</Reference>
<Reference Include="PresentationUI.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\PresentationUI.dll</HintPath>
</Reference>
<Reference Include="ReachFramework.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\ReachFramework.dll</HintPath>
</Reference>
<Reference Include="System.CodeDom.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.CodeDom.dll</HintPath>
</Reference>
<Reference Include="System.Configuration.ConfigurationManager.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Configuration.ConfigurationManager.dll</HintPath>
</Reference>
<Reference Include="System.Design.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Design.dll</HintPath>
</Reference>
<Reference Include="System.Diagnostics.EventLog.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Diagnostics.EventLog.dll</HintPath>
</Reference>
<Reference Include="System.Diagnostics.PerformanceCounter.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Diagnostics.PerformanceCounter.dll</HintPath>
</Reference>
<Reference Include="System.DirectoryServices.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.DirectoryServices.dll</HintPath>
</Reference>
<Reference Include="System.Drawing.Common.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Drawing.Common.dll</HintPath>
</Reference>
<Reference Include="System.Drawing.Design.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Drawing.Design.dll</HintPath>
</Reference>
<Reference Include="System.Drawing.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Drawing.dll</HintPath>
</Reference>
<Reference Include="System.IO.Packaging.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.IO.Packaging.dll</HintPath>
</Reference>
<Reference Include="System.Printing.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Printing.dll</HintPath>
</Reference>
<Reference Include="System.Resources.Extensions.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Resources.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Security.Cryptography.Pkcs.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Security.Cryptography.Pkcs.dll</HintPath>
</Reference>
<Reference Include="System.Security.Cryptography.ProtectedData.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Security.Cryptography.ProtectedData.dll</HintPath>
</Reference>
<Reference Include="System.Security.Cryptography.Xml.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Security.Cryptography.Xml.dll</HintPath>
</Reference>
<Reference Include="System.Security.Permissions.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Security.Permissions.dll</HintPath>
</Reference>
<Reference Include="System.Threading.AccessControl.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Threading.AccessControl.dll</HintPath>
</Reference>
<Reference Include="System.Windows.Controls.Ribbon.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Windows.Controls.Ribbon.dll</HintPath>
</Reference>
<Reference Include="System.Windows.Extensions.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Windows.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Windows.Forms.Design.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Windows.Forms.Design.dll</HintPath>
</Reference>
<Reference Include="System.Windows.Forms.Design.Editors.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Windows.Forms.Design.Editors.dll</HintPath>
</Reference>
<Reference Include="System.Windows.Forms.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Windows.Forms.dll</HintPath>
</Reference>
<Reference Include="System.Windows.Forms.Primitives.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Windows.Forms.Primitives.dll</HintPath>
</Reference>
<Reference Include="System.Windows.Input.Manipulations.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Windows.Input.Manipulations.dll</HintPath>
</Reference>
<Reference Include="System.Windows.Presentation.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Windows.Presentation.dll</HintPath>
</Reference>
<Reference Include="System.Xaml.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\System.Xaml.dll</HintPath>
</Reference>
<Reference Include="UIAutomationClient.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\UIAutomationClient.dll</HintPath>
</Reference>
<Reference Include="UIAutomationClientSideProviders.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\UIAutomationClientSideProviders.dll</HintPath>
</Reference>
<Reference Include="UIAutomationProvider.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\UIAutomationProvider.dll</HintPath>
</Reference>
<Reference Include="UIAutomationTypes.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\UIAutomationTypes.dll</HintPath>
</Reference>
<Reference Include="WindowsBase.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\WindowsBase.dll</HintPath>
</Reference>
<Reference Include="WindowsFormsIntegration.dll">
<HintPath>C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.13\ref\net7.0\WindowsFormsIntegration.dll</HintPath>
</Reference>
</ItemGroup>-->

</Project>
32 changes: 32 additions & 0 deletions ConsoleApp1/Form1.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
namespace WinFormsApp1

open System
open System.Windows.Forms


module Form1 =
type Form1 () =
inherit System.Windows.Forms.Form ()
member this.components : System.ComponentModel.IContainer = null
interface IDisposable with
override this.Dispose() =

if this.components <> null then
this.components.Dispose()
base.Dispose()


// #region Windows Form Designer generated code

// /// <summary>
// /// Required method for Designer support - do not modify
// /// the contents of this method with the code editor.
// /// </summary>
// private void InitializeComponent()
// {
// this.components = new System.ComponentModel.Container();
// this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
// this.ClientSize = new System.Drawing.Size(800, 450);
// this.Text = "Form1";
// }

23 changes: 23 additions & 0 deletions ConsoleApp1/Program.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
namespace WinFormsApp1
open System
open System.Windows.Forms

open Form1

module main =

type ApplicationConfiguration () =

static member Initialize() =
Application.EnableVisualStyles()
Application.SetCompatibleTextRenderingDefault(false)
Application.SetHighDpiMode(HighDpiMode.SystemAware)



[<STAThread>]
[<EntryPoint>]
let main argv =
let _ = ApplicationConfiguration.Initialize()
Application.Run(new Form1())
0
82 changes: 82 additions & 0 deletions ConsoleApp1/bin/Debug/net7.0-windows/ConsoleApp1.deps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v7.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v7.0": {
"ConsoleApp1/1.0.0": {
"dependencies": {
"FSharp.Core": "7.0.401"
},
"runtime": {
"ConsoleApp1.dll": {}
}
},
"FSharp.Core/7.0.401": {
"runtime": {
"lib/netstandard2.1/FSharp.Core.dll": {
"assemblyVersion": "7.0.0.0",
"fileVersion": "7.4.123.42509"
}
},
"resources": {
"lib/netstandard2.1/cs/FSharp.Core.resources.dll": {
"locale": "cs"
},
"lib/netstandard2.1/de/FSharp.Core.resources.dll": {
"locale": "de"
},
"lib/netstandard2.1/es/FSharp.Core.resources.dll": {
"locale": "es"
},
"lib/netstandard2.1/fr/FSharp.Core.resources.dll": {
"locale": "fr"
},
"lib/netstandard2.1/it/FSharp.Core.resources.dll": {
"locale": "it"
},
"lib/netstandard2.1/ja/FSharp.Core.resources.dll": {
"locale": "ja"
},
"lib/netstandard2.1/ko/FSharp.Core.resources.dll": {
"locale": "ko"
},
"lib/netstandard2.1/pl/FSharp.Core.resources.dll": {
"locale": "pl"
},
"lib/netstandard2.1/pt-BR/FSharp.Core.resources.dll": {
"locale": "pt-BR"
},
"lib/netstandard2.1/ru/FSharp.Core.resources.dll": {
"locale": "ru"
},
"lib/netstandard2.1/tr/FSharp.Core.resources.dll": {
"locale": "tr"
},
"lib/netstandard2.1/zh-Hans/FSharp.Core.resources.dll": {
"locale": "zh-Hans"
},
"lib/netstandard2.1/zh-Hant/FSharp.Core.resources.dll": {
"locale": "zh-Hant"
}
}
}
}
},
"libraries": {
"ConsoleApp1/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"FSharp.Core/7.0.401": {
"type": "package",
"serviceable": true,
"sha512": "sha512-ZL16YHLJnkosMooVXjvJH0vGf7O4RSNtCpA/qw6OAHYxPCYSZRc5pKFTpDeDLdSWpOJDaZlveKcn42F0UDo77A==",
"path": "fsharp.core/7.0.401",
"hashPath": "fsharp.core.7.0.401.nupkg.sha512"
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"runtimeOptions": {
"tfm": "net7.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "7.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "7.0.0"
}
]
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added ConsoleApp1/bin/Debug/net7.0/Accessibility.dll
Binary file not shown.
Loading