So I have installed an Excel Data Reader in VS's NuGet package manager. After installation everything works fine and my code run's smoothly. After I have finished coding for the night I save my work and then commit my changes to sourcetree.
The next day, I open up my project again and at the top of the form the part where I state what I'm using (I don't know what they are called I'm only a beginner, but I'll put an example of what I mean below)
using Excel;using System;
etc. etc.
There is a red line under Excel and it says:
A 'using namespace' directive can only be applied to namespaces; Excel is not a namespace. Consider using a 'using static' directive instead.
And then further down the code when I use methods from the package it says
The type or namespace name 'IExcelDataReader' could not be found (are you missing a using directive or an assembly reference?
Or
The name 'ExcelReaderFactory' does not exist in the current context
I have tried uninstalling and reinstalling the package and using the static directive but none of it works, even though the same code was working the night before, it's just when I save it to sourcetree this happens. How do I fix it?