Jump to content

Hello, I've been working on setting up an Azure DevOps pipeline this week, aiming to build C++ and C# Projects from the repository. Unfortunately, I haven't been able to accomplish this successfully yet, as my knowledge of pipelines is somewhat limited.

The crucial aspect is ensuring that the pipeline builds the projects in the same order as the Visual Studio Build Settings dictate. For clarity, here's an example of the desired build order:

  1. C++ Project
  2. C++ Project
  3. C# Project
  4. C++ Project ...

It's important to follow this order as the projects have dependencies on each other as the list progresses.

I'm hoping to find assistance from someone experienced in Azure DevOps pipelines to help me achieve this objective and attain a successful build on Pipelines.

 

Current YAML:

trigger:
- azure-pipelines-second

pool:
  vmImage: 'windows-latest'

variables:
  solution: '**/*.sln'
  buildPlatform: 'Any CPU'
  buildConfiguration: 'Release'

steps:
#Installments
- script: choco install netfx-4.8 # .NET Framework
- script: choco install windows-sdk-10-version-1903-all # Windows SDK
- task: NuGetToolInstaller@1

- task: NuGetCommand@2
  inputs:
    command: 'restore'
    restoreSolution: '**/*.sln'
    feedsToUse: 'config'
    nugetConfigPath: 'NuGet.config'

- task: MSBuild@1
  displayName: 'Build Proj01'
  inputs:
    solution: '$(solution)'
    platform: 'x86'
    # configuration: '$(buildConfiguration)'
    configuration: 'Release'
    msbuildArguments: '/t:Proj01 /restore'

 

Main Error from this:

##[error]MainSolution\MainProject.vcxproj(0,0): Error MSB4057: The target "Proj01" does not exist in the project.

 

Link to comment
https://linustechtips.com/topic/1520845-urgent-devops-pipelines-c-c-solution/
Share on other sites

Link to post
Share on other sites

39 minutes ago, SoftwareNinja said:
##[error]MainSolution\MainProject.vcxproj(0,0): Error MSB4057: The target "Proj01" does not exist in the project.

this one is pretty self explanatory, that target project is not found.  You can try to build your own app using msbuild on your own computer and pass the arguments you used there to your yaml file.

mY sYsTeM iS Not pErfoRmInG aS gOOd As I sAW oN yOuTuBe. WhA t IS a GoOd FaN CuRVe??!!? wHat aRe tEh GoOd OvERclok SeTTinGS FoR My CaRd??  HoW CaN I foRcE my GpU to uSe 1o0%? BuT WiLL i HaVE Bo0tllEnEcKs? RyZEN dOeS NoT peRfORm BetTer wItH HiGhER sPEED RaM!!dId i WiN teH SiLiCON LotTerrYyOu ShoUlD dEsHrOuD uR GPUmy SYstEm iS UNDerPerforMiNg iN WarzONEcan mY Pc Run WiNdOwS 11 ?woUld BaKInG MY GRaPHics card fIX it? MultimETeR TeSTiNG!! aMd'S GpU DrIvErS aRe as goOD aS NviDia's YOU SHoUlD oVERCloCk yOUR ramS To 5000C18! jellYfIn Client siDE TRanscoDinG

Link to post
Share on other sites

  • 2 weeks later...
On 7/21/2023 at 10:18 AM, Levent said:

this one is pretty self explanatory, that target project is not found.  You can try to build your own app using msbuild on your own computer and pass the arguments you used there to your yaml file.

Sorry on the delay. I get that but I have tried copying the built files to a directory then adding

AdditionalLibraryDirectories to the folder the built items are copied too but still cant locate the file even thought the console states it was copied.
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×