C #: время компиляции кода Visual Studio - PullRequest
0 голосов
/ 27 ноября 2018

У меня есть решение на C # (.net core v2.1), созданное на основе некоторых проектов.Компиляция занимает ~ 90 секунд.Это мой tasks.json:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "0.1.0",
    "command": "dotnet",
    "isShellCommand": true,
    "args": [],
    "tasks": [
        {
            "taskName": "build",
            "args": [ "${workspaceFolder}\\my.sln"],
            "isBuildCommand": true,
            "showOutput": "silent",
            "problemMatcher": "$msCompile"
        }
    ]
}

Это мой lunch.json:

{
   // Use IntelliSense to find out which attributes exist for C# debugging
   // Use hover for the description of the existing attributes
   // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
   "version": "0.2.0",
   "configurations": [
        {
            "name": "Test",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            "program": "${workspaceFolder}/Tests/Test/bin/Debug/netcoreapp2.1/Test.dll",
            "args": [],
            "cwd": "${workspaceFolder}/Tests/Test/",
            "console": "internalConsole",
            "stopAtEntry": false,
            "internalConsoleOptions": "openOnSessionStart"
        },
    ]
}

Я замечаю, что каждый раз, когда я строю проект ИЛИ запускаю текущую конфигурацию - он компилирует всепроект agian - agian, 90 секунд ожидания.

В предыдущие дни я делал это с Visual Studio (старым и старым) намного быстрее - он не компилировал все проекты, ЕСЛИ они не изменились.

Возможно ли это сделать с помощью кода Visual Studio?

...