runtime

Форк
0
/
devcontainer.json 
66 строк · 2.2 Кб
1
// For format details, see https://aka.ms/devcontainer.json.
2
{
3
	"name": "WASM singlethreaded development (prebuilt)",
4
	"build": {
5
		"dockerfile": "Dockerfile",
6
		"args": {
7
			// Update 'VARIANT' to pick a .NET Core version: 6.0, 7.0
8
			"VARIANT": "6.0-jammy"
9
		}
10
	},
11
	"hostRequirements": {
12
		"cpus": 4,
13
		"memory": "8gb",
14
		"storage": "40gb"
15
	},
16

17
	"features": {
18
		"ghcr.io/devcontainers/features/github-cli:1": {}
19
	},
20

21
	// Configure tool-specific properties.
22
	"customizations": {
23
		// Configure properties specific to VS Code.
24
		"vscode": {
25
			// Add the IDs of extensions you want installed when the container is created.
26
			"extensions": [
27
				"ms-dotnettools.csharp"
28
			],
29
			"settings": {
30
				// Loading projects on demand is better for larger codebases
31
				"omnisharp.enableMsBuildLoadProjectsOnDemand": true,
32
				"omnisharp.enableRoslynAnalyzers": true,
33
				"omnisharp.enableEditorConfigSupport": true,
34
				"omnisharp.enableAsyncCompletion": true,
35
				"omnisharp.testRunSettings": "${containerWorkspaceFolder}/artifacts/obj/vscode/.runsettings"
36
			}
37
		}
38
	},
39

40
	// Use 'onCreateCommand' to run pre-build commands inside the codespace
41
	"onCreateCommand": "${containerWorkspaceFolder}/.devcontainer/scripts/onCreateCommand.sh wasm",
42

43
	// Use 'postCreateCommand' to run commands after the container is created.
44
	"postCreateCommand": "${containerWorkspaceFolder}/.devcontainer/scripts/postCreateCommand.sh wasm",
45

46
	// Add the locally installed dotnet to the path to ensure that it is activated
47
	// This allows developers to just use 'dotnet build' on the command-line, and the local dotnet version will be used.
48
	// Add the global tools dir to the PATH so that globally installed tools will work
49
	"remoteEnv": {
50
		"PATH": "${containerWorkspaceFolder}/.dotnet:${containerWorkspaceFolder}/.dotnet-tools-global:${containerEnv:PATH}",
51
		"DOTNET_MULTILEVEL_LOOKUP": "0",
52
		// Path to provisioned Emscripten SDK, for rebuilding the wasm runtime
53
		"EMSDK_PATH": "${containerWorkspaceFolder}/src/mono/browser/emsdk",
54
	},
55

56
	// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
57
	"remoteUser": "vscode",
58

59
	// Forward mono samples port
60
	"forwardPorts": [8000],
61
	"portsAttributes": {
62
		"8000": {
63
			"label": "mono wasm samples (8000)",
64
		}
65
	}
66
}
67

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.