I am desperately looking out for a solution to my problem, my problem is with MSBuild continuous integration setup for my project which is designed using Visual Studio 2015.
Well I have not used all the new flavors out from VS 2015. Because my deployment server is configured with very old server OS i.e. Windows server 2003.
Hence the reason within VS 2015 I have designed my project to use .net framework 4.0 with ASP.NET MVC version 4 only. Which is only the version supported in Windows server 2003.
So, until the design time my application is compiling perfectly without throwing any reference error's.
When I am done writing MSBuild compilation setup and ran build using MSBuild.exe it is throwing below errors:
- CS0246: The type or namespace name 'HttpGet' could not be found (are you missing a using directive or an assembly reference?) [C:\Workspaces\myProject\myProject.Web\myProject.Web.csproj
- CS0246: The type or namespace name 'HttpGetAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\Workspaces\myProject\myProject.Web\myProject.Web.csproj
- CS0246: The type or namespace name 'HttpGet' could not be found (are you missing a using directive or an assembly reference?) [C:\Workspaces\myProject\myProject.Web\myProject.Web.csproj
- CS0246: The type or namespace name 'HttpGetAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\Workspaces\myProject\myProject.Web\myProject.Web.csproj
- CS0246: The type or namespace name 'HttpGet' could not be found (are you missing a using directive or an assembly reference?) [C:\Workspaces\myProject\myProject.Web\myProject.Web.csproj
Like these there are total 70 errors found while doing compilation using MSBuild command.
Please help me out how this issue can be fixed!
Thanks in advance
Vijay