.Net App has reference but is not being recognized in class

40 Views Asked by At

Image showing that System.Net is in references

This is an older .net app running 4.5.1 I added the System.Net reference. Closed/Restarted Visual Studio. Unloaded/Loaded project. Cleaned/Built/Rebuilt Project and Solution, but it still is missing the reference.

Unsure what to do next?

Added reference and removed reference to System.Net

csproj file:

<Reference Include="System.Net">
  <HintPath>..\..\..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Net.dll</HintPath>
</Reference>
0

There are 0 best solutions below