Сборка msbuild проекта в папку в зависимости от условия
Всем доброго дня. Я столкнулся с ошибкой
"Models\DbUacAccessRights.cs(1,7): error CS0246: The type or namespace name 'MongoDB' could not be found (are you missing a using directive or an assembly reference?)"
Я ожидал, что флаг
"/p:OutDir="C:\Jenkins\workspace\Api\Api_Build_Master\%branch%\\" поможет мне собирать проект в папку в зависимости от ветки, в итоге я столкнулся с ошибкой выше.
Я гуглил другое решение проблемы, но в основном на английской версии stackoverflow писали, что не сталкивались с такого рода проблемой.
Вот полный список ошибок:
Models\DbUacAccessRights.cs(1,7): error CS0246: The type or namespace name 'MongoDB' could not be found (are you missing a using directive or an assembly reference?) [C:\Jenkins\workspace\Api\Api_DEV\API_Build_Master\Account\Smartway.Domain.UAC\Smartway.Domain.UAC.cspro] POUACManager.cs(7,7): error CS0246: The type or namespace name 'MongoDB' could not be found (are you missing a using directive or an assembly reference?) [C:\Jenkins\workspace\Api\Api_DEV\API_Build_Master\Account\Smartway.Domain.UAC\Smartway.Domain.UAC.cspro] Models\DbUacAccessRights.cs(8,6): error CS0246: The type or namespace name 'BsonIgnoreExtraElementsAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\Jenkins\workspace\Api\Api_DEV\API_Build_Master\Account\Smartway.Domain.UAC\Smartway.Domain.UAC.cspro] Models\DbUacAccessRights.cs(8,6): error CS0246: The type or namespace name 'BsonIgnoreExtraElements' could not be found (are you missing a using directive or an assembly reference?) [C:\Jenkins\workspace\Api\Api_DEV\API_Build_Master\Account\Smartway.Domain.UAC\Smartway.Domain.UAC.cspro] Models\DbUacAccessRights.cs(42,6): error CS0246: The type or namespace name 'BsonIgnoreExtraElementsAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\Jenkins\workspace\Api\Api_DEV\API_Build_Master\Account\Smartway.Domain.UAC\Smartway.Domain.UAC.cspro] Models\DbUacAccessRights.cs(42,6): error CS0246: The type or namespace name 'BsonIgnoreExtraElements' could not be found (are you missing a using directive or an assembly reference?) [C:\Jenkins\workspace\Api\Api_DEV\API_Build_Master\Account\Smartway.Domain.UAC\Smartway.Domain.UAC.cspro] POUACManager.cs(702,66): error CS0246: The type or namespace name 'FilterDefinition<>' could not be found (are you missing a using directive or an assembly reference?) [C:\Jenkins\workspace\Api\Api_DEV\API_Build_Master\Account\Smartway.Domain.UAC\Smartway.Domain.UAC.cspro]
Делаю всё в шаге msbuild jenkins.