Skip to content

winofsql/cs-con-form-open-file-dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

cs-con-form-open-file-dialog

コンソールで System.Windows.Forms を利用

参考

WPF/Windowsフォームに関する.NET 5の大きな変更

cs-con-form-open-file-dialog.csproj

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net5.0-windows</TargetFramework>
    <RootNamespace>cs_con_form_open_file_dialog</RootNamespace>
    <UseWindowsForms>true</UseWindowsForms>
    <DisableWinExeOutputInference>true</DisableWinExeOutputInference>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="System.Text.Encoding.CodePages" Version="5.0.0" />
  </ItemGroup>

</Project>

コンソール出力

<OutputType>Exe</OutputType>
<DisableWinExeOutputInference>true</DisableWinExeOutputInference>

System.Windows.Forms 利用

<TargetFramework>net5.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>

エントリポイント

[STAThread]
static void Main(string[] args)

About

.NET 5 : コンソールで System.Windows.Forms を利用

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages