Моя папка .vscode в настоящее время содержит:
- :
Код: Выделить всё
settings.jsonКод: Выделить всё
{ "files.exclude": { "**/.git": true, "**/.vs": true, "**/bin": true, "**/obj": true }, "editor.formatOnSave": true, "csharp.format.enable": true, "omnisharp.useGlobalMono": "never", "omnisharp.path": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\ManagedLanguages\\VBCSharp\\OmniSharp", "omnisharp.useModernNet": false } - :
Код: Выделить всё
launch.jsonКод: Выделить всё
{ "version": "0.2.0", "configurations": [ { "name": "Debug WPF App", "type": "clr", "request": "launch", "preLaunchTask": "build", "program": "${workspaceFolder}/bin/Debug/MinimalWpfApp.exe", "args": [], "cwd": "${workspaceFolder}", "console": "internalConsole", "stopAtEntry": false } ] } - :
Код: Выделить всё
tasks.jsonКод: Выделить всё
{ "version": "2.0.0", "tasks": [ { "label": "build", "type": "process", "command": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Common7\\IDE\\devenv.com", "args": [ "MinimalWpfApp.sln", "/Build", "Debug|x64" ], "problemMatcher": [ "$msCompile" ], "group": { "kind": "build", "isDefault": true } }, { "label": "clean", "type": "process", "command": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Common7\\IDE\\devenv.com", "args": [ "MinimalWpfApp.sln", "/Clean", "Debug|x64" ], "problemMatcher": [ "$msCompile" ] } ] }
Код: Выделить всё
[warning] The project file 'path\to\minimal-wpf-vs2019\MinimalWpfApp.csproj' is in unsupported format (for example, a traditional .NET Framework project). It need be converted to new SDK style to work in C# Dev Kit.
[error] Failed to load project 'path\to\minimal-wpf-vs2019\MinimalWpfApp.csproj'. One or more errors occurred. (This project is not supported in C# Dev Kit.)
[info] Project system initialization finished. 0 project(s) are loaded, and 1 failed to load.
Каковы канонические файлы конфигурации VS Code (
Код: Выделить всё
settings.jsonМне нужна конфигурация, которая:
- Использует компилятор Visual Studio 2019 (т. е. devenv.com) и инструменты исключительно.
- Избегает конфликтов с инструментами .NET Core/.NET 5+.
- Обеспечивает плавную разработку в VS Code (intellisense, отладка и т. д.).
- Поддерживает совместимость проекта с Visual Studio 2019 для членов моей команды.