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

Azure DevOps missing Type or namespaces

$
0
0

Using a basic pipeline. It is failing due to missing types or namespaces. I have spent considerable time investigating. Not sure what I'm missing. I am receiving these type of errors:

  • Error BC30002: Type 'SnowflakeDbConnection' is not defined
  • Error CS0246: The type or namespace name 'RabbitMQ' could not be found (are you missing a using directive or an assembly reference

Note - I added nuget.config to directory .sln is in. nuget.config looks like:

<?xml version="1.0" encoding="utf-8"?><configuration><config><add key="repositoryPath" value=".\packages" /></config></configuration>

Pipeline yml:

trigger:- Developmentpool:  vmImage: 'windows-latest'variables:  solution: 'BackOffice.sln'  buildPlatform: 'Any CPU'  buildConfiguration: 'Release'steps:- task: NuGetToolInstaller@1- task: NuGetCommand@2  inputs:    restoreSolution: '$(solution)'    packagesdirectory: '.\packages'- task: VSBuild@1  inputs:    solution: '$(solution)'    platform: '$(buildPlatform)'    msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'    configuration: '$(buildConfiguration)'- task: VSTest@2  inputs:    platform: '$(buildPlatform)'    configuration: '$(buildConfiguration)'

Viewing all articles
Browse latest Browse all 3067

Trending Articles



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