Сборка кода Visual Studio с помощью MsBuildC++

Программы на C++. Форум разработчиков
Ответить
Anonymous
 Сборка кода Visual Studio с помощью MsBuild

Сообщение Anonymous »

Я пытаюсь использовать код Visual Studio для создания проекта C++.

Я создал файл Task.json для автоматической сборки.

Код: Выделить всё

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "msbuild",
"args": [
// Ask msbuild to generate full paths for file names.
"/property:GenerateFullPaths=true",
"/t:build"
],
"group": "build",
"presentation": {
// Reveal the output only if unrecognized errors occur.
"reveal": "silent"
},
// Use the standard MS compiler pattern to detect errors, warnings and infos
"problemMatcher": "$msCompile"
}
]
}
Выдается следующее исключение.

Код: Выделить всё

MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
The terminal process terminated with exit code: 1
Поскольку задача сборки основана на MSBuild. Для сборки MSBuild требовался файл .vcxproj.

Есть ли какая-либо команда, которая может создать .vcxproj с помощью nuget или msbuild.

Подробнее здесь: https://stackoverflow.com/questions/473 ... th-msbuild
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C++»