diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1fff86e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# env file +.env diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8b88055 --- /dev/null +++ b/LICENSE @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2025 basic + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/docs/mac.md b/docs/mac.md new file mode 100644 index 0000000..aca9a99 --- /dev/null +++ b/docs/mac.md @@ -0,0 +1,55 @@ +# MacでVB関係を開発するには? + + +.NET SDK8(公式でMac対応)は対応しています。 +Mac側で開発可能なもの以下の通りです + +* ASP.NET Core Web API +* CLIツール / バッチ処理 +* gRPC / Workerサービス +* Docker前提のコンテナ用バックエンド + +MacでC#触ってみるなら方法 + +```sh +# .NET SDK インストール済みとして +dotnet new webapi -o sample-api +cd sample-api +dotnet run +``` + +## VB.NET(Visual Basic for .NET) + +**VB.NETならMacでも少しはできるが、限界が大きい。** + +コンソールアプリ: Mac上の`NET6 / .NET8`でビルド&実行可能 +WinForms / WPF(GUI): Windows専用によりMacでは動作不可 + +VS Code + .NET SDK なら VB のコンソールは作れる +ただし Microsoft は VB.NET を縮小しており、サポートも弱い + +### Dockerコンテナ(mcr.microsoft.com/dotnet/sdk:8.0) + +Dockerコンテナは存在する(1GBの重めの構成です) + +* C# / F# / VB.NET の コンパイラ一式 +* ビルドツール(MSBuild など) +* NuGet パッケージ管理 +* ランタイム +* 開発用にフル装備 + +## VB6 / VBS / VBA をMacで動かすには + +**それぞれをMacで動かすのは基本的には非推奨です** + +Mac / Linux には`.vbs`ファイルを実行できるネイティブ環境が無い +VBScript は Windows 専用技術です + +どうしてもMacでWindowsのスクリプトを記載したいのなら +PowerShell Core((Macで動く)でWindows管理するのが最適です + +VBAはMacでも使えるが、Windowsの完全互換ではない。 + +VB6やVB6アプリはMacでは動かない。 +VB6ランタイムが Windows の COM / ActiveX 技術に依存している +