System.Web.Mvc not at current security version

mark's Avatar

mark

04 Jun, 2015 08:42 PM

C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Mvc, Version=3.0.0.1, 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.

Can you please install the security updates which have the X.X.X.1 versions?

  1. 1 Posted by mark on 04 Jun, 2015 08:47 PM

    mark's Avatar
  2. Support Staff 2 Posted by Feodor Fitsner on 04 Jun, 2015 09:08 PM

    Feodor Fitsner's Avatar

    Hi Mark,

    Application-specific dependencies like ASP.NET MVC are not pre-installed on build workers. They are supposed to be installed by NuGet before the build.

    Let me know if you have any questions.

    - Feodor

  3. 3 Posted by mark on 04 Jun, 2015 09:27 PM

    mark's Avatar

    so I did this locally

    Install-Package Microsoft.AspNet.Mvc -Version 3.0.50813.1 -Project Presentation.Mvc

    That didn't seem to help. How do I get Appveyor to pick that up?

  4. Support Staff 4 Posted by Feodor Fitsner on 04 Jun, 2015 10:26 PM

    Feodor Fitsner's Avatar

    On build tab of project settings add to "Before build script":

        nuget restore <your-solution.sln>

    Also make sure project references to those assemblies point to NuGet packages, not GAC.

    - Feodor

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac