I updated my project from .NET4 -> .NET461 and it builds without any errors on my local machine. However, when I push it and start team city build, then it crashes with the error from this question's topic. Team city machine is also equipped with .NET461. I can't install the Dependencies
namespace from nuget in any way because it should be built into System.Web.Http
module. How to fix it?
Asked
Active
Viewed 713 times
0

Marek M.
- 3,799
- 9
- 43
- 93
-
You can view [that problem](http://stackoverflow.com/questions/11071392/the-type-or-namespace-name-does-not-exist-in-the-namespace-system-web-mvc) Possibly dublicate of that. – ahmet Aug 18 '16 at 08:24
-
I did what the answer suggested and it didn't help. – Marek M. Aug 18 '16 at 08:29
-
What build runner are you using - MSBuild or Visual Studio? What versions are they set to - can you provide a screen shot? – Matt Aug 18 '16 at 09:31
1 Answers
0
Most likely the TargetFramework parameter in the packages.config
In Package Manager Console simply run:
Update-Package -Reinstall

gbesta
- 1
- 1