locked
CI/CD Pipeline throws error - 'Unity' could not be found (are you missing a using directive or an assembly reference? RRS feed

  • Question

  • User-163012697 posted

    Hi All,

    I have configured a CI/CD pipeline in Azure Devops and works fine till now. However, since few days my build are getting failed which throws error as below:

    Error CS0246: The type or namespace name 'Unity' could not be found (are you missing a using directive or an assembly reference? 

    I am creating an enterprise application and I am using n-tier architecture where I have following projects:

    1. WebForms App
    2. DataModel
    3. Business Entities
    4. Business Services
    5. Resolver

    Though, I verified locally I am able to build and project runs successfully but unfortunately in CI/CD pipeline it throws error in Resolver project as Unity package is missing. How can I get rid of this?

    I am using Unity as a Dependency Resolver.

    Thanks.

    Saturday, May 9, 2020 2:32 PM

All replies