I have a problem with deploying the project to Azure DevOps because of the ExternalData.
On my local machine, VS can build the project and tests work fine.
But, when I try to build the project with the command dotnet build as it does on AzureDevops, it fails.
Error that I get:
Generation error: Message: Unable to load Excel file from pathToProject\Features\GetCompany.xlsx': Could not load file or assembly 'ExcelDataReader, Version=184.108.40.206, Culture=neutral, PublicKeyToken=93517dbe6a4012fa'. The system cannot find the file specified.
The same happens with CSV file, only it says CSVHelper instead of ExcelDataReader.
I tried to install ExcelDataReader and nothing changed.
I tried to manually copy ExcelDataReader.dll to my bin folder and then add it's dependency and still nothing changed.
Can you please help?
This is a vital part of our tests, to be able to use Excel or CSV files for test data.
Please sign in to leave a comment.