56 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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.NETVisual 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 技術に依存している