Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3171

Unable to Create a Nuget package and Getting NU5012: Unable to find

$
0
0

I am unable to create a nuget package using below azure devops yml pipeline

Variables

  • buildPlatform: 'x86'
  • buildConfiguration: 'Debug'
- task: NuGetCommand@2  displayName: 'NuGet Pack'  inputs:  command: 'pack'  packagesToPack: '*.framework/Software/ServerComponents/*.Framework.VisualBasic/\*.Framework.VisualBasic.vbproj'  buildProperties: 'Configuration=$(buildConfiguration);Platform=$(buildPlatform)'  versioningScheme: 'byEnvVar'  versionEnvVar: 'BUILD_BUILDNUMBER'  outputDir: '$(Build.ArtifactStagingDirectory)'

Getting below error while trying with this configurations

##[debug]Processed: ##vso[task.issue type=error;]The nuget command failed with exit code(1) and error(Error NU5012: Unable to find 'C:\agent\workspace\1\s\*.framework\Software\ServerComponents\.Framework.VisualBasic\bin\x86\Configuration=Debug\**.Framework.VisualBasic.dll'. Make sure the project has been built.

Here My DDL

C:\\agent\\workspace\\1\\s\\*.framework\\Software\\ServerComponents\\.Framework.VisualBasic\\bin\\x86\\Configuration=Debug\\*\**.Framework.VisualBasic.dll instead of it should be locate C:\\agent\\workspace\\1\\s\\.framework\\Software\\ServerComponents\\.Framework.VisualBasic\\bin\\x86\\Debug\\*.Framework.VisualBasic.dll

How do we fix this this issue?


Viewing all articles
Browse latest Browse all 3171

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>