Forum Discussion
Unable to build the application in AzureDevops
Unable to build my application in AzureDevops please help
Code Snip
trigger:
- master
pool:
vmImage: 'windows-2019'
variables:
solution: 'sample.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: 'sample.sln'
feedsToUse: 'select'
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="sample"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'Reference Error from Azure Devops:
2023-12-17T07:36:28.2707587Z Restoring NuGet packages... 2023-12-17T07:36:28.2708450Z To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'
. Error : Unable to find version '4.2.1' of package 'AutoMapper'.
Error : Unable to find version '1.0.0' of package 'CommonServiceLocation'.
Error : Unable to find version '5.0.2806' of package 'Devart.Data'.
Error : Unable to find version '7.22.2014' of package 'Devart.Data.PostgreSql'.
Error : Unable to find version '6.1.3' of package 'EntityFramework'.
Error : Unable to find version '2.0.5' of package 'log4net'.
Error : Unable to find version '3.9.1' of package 'LumenWorksCsvReader'.
please help what is wrong.
1 Reply
It indicated that proper version cannot be find but not package, please make sure the version download and access