tags:

views:

102

answers:

1

c:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(0,0): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

I am getting this Error Mesage when I build my MVC application..

Do I need to give any additionalrefercepath in TFS.proj file?

<ItemGroup>
    <!--  ADDITIONAL REFERENCE PATH
     The list of additional reference paths to use while resolving references. For example:

         <AdditionalReferencePath Include="C:\MyFolder\" />
         <AdditionalReferencePath Include="C:\MyFolder2\" />
    -->
  </ItemGroup>

Basically its saying some .dll file is missing?

thanks

A: 

Is MVC installed on the machine the build server is on?

ryan.rousseau
Yes its on.....
kumar
You can check c:\Program Files\Microsoft ASP.NET\ to see if MVC and the DLL is there. You should be able to add the folder containing the ddl as an AdditionalReferencePath or move the dll to C:\Windows\assembly and see if that works.
ryan.rousseau