Добрый день! Пишу свой первый ci cd.
Портал проекта. Там есть библиотеки DevExpress. Nuget Restore их не вытаскивает.
На сервере, в gitRunner'е они есть. Но в проектную папку не копируются. Подскажите, как это сделать. Спасибо. Файл прикладываю. Прошу строго не судить, а наставить и укрепить)
error CS0246: The type or namespace name 'DevExpress' could not be found (are you missing a using directive or an assembly reference?)
[C:\CI_GitLab\GitLabRunner1\builds\BA6s9c1c\0\commercialprojects\CommertialProject01\webreports\Webreports.Services\Webreports.Services.csproj]
variables:
#
#Dev
#
PublishProfileDev: ".\\WebReports.DXwebUI\\Properties\\PublishProfiles\\dev.pubxml"
PublishPathDev: "\\dev-web01-test.prevedmedved.ru\\c$\\WebSites\\CommertialProject01\\WebReports"
stages:
- restore
- build
- test
- deploy
restore_job:
stage: restore
before_script:
- echo "Start restore..."
script:
- echo "Restoring..."
only:
- master
- stage
after_script:
- echo "Finish restore..."
build_job:
stage: build
before_script:
- echo "Start build..."
script:
- echo "Building..."
- "nuget restore"
- "dotnet restore"
- "dotnet build"
only:
- master
- stage
after_script:
- echo "Finish build..."
test_job:
stage: test
before_script:
- echo "Start tests..."
script:
- echo "Running tests..."
- "dotnet test"
only:
- master
- stage
after_script:
- echo "Finish tests..."
deploy_job:
stage: deploy
before_script:
- echo "Start deploying..."
script:
- echo "Deploying..."
- dotnet publish ".\\WebReports.DXwebUI\\WebReports.DXwebUI.csproj" -p PublishProfile=$PublishProfileDev -c Release --property:PublishDir="\\dev-web01-test.prevedmedved.ru\\c$\\WebSites\\CommertialProject01\\WebReports"
only:
- master
- stage
after_script:
- echo "Finish deploying..."
dependencies:
- restore_job
- build_job
- test_job