Issue building ASP.NET MVC3 project
Hi there,
I'm attempting to build a VS2013 ASP.NET MVC3 project on AppVeyor, however I don't seem to get it working.
If I look at the build log the compilation errors all seem to do with a missing reference to System.Web.Mvc. However the solution contains a nuget package 'Microsoft.AspNet.Mvc 3.0.50813.1'. It seems that when building on AppVeyor that specific package doesn't get restored. When I look at the build log a lot of packages get restored but the MVC one does not.
I even tried setting a before build script to restore the packages, unfortunately without affect. What am I missing here?
In attachment you can find the build configuration and the generated build log.
Thanks,
Thomas
- appveyor.yml 228 Bytes
- log.txt 585 KB
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
Support Staff 1 Posted by Feodor Fitsner on Jul 08, 2016 @ 07:17 PM
Check your project references. Most probably it relies on ASP.NET MVC installed on your machines with assemblies in GAC (I recall that was the case for ASP.NET MVC 2 and 3). At least I don't see any ASP.NET MVC restoring during
nuget restore
. I guess you should modify your projects to use nuget packages (https://www.nuget.org/packages/Microsoft.AspNet.Mvc), not GAC.2 Posted by thomas on Jul 11, 2016 @ 06:34 AM
Thanks for the answer!
At first I also thought that was the problem but the solution actually uses the MVC package instead of the GAC: screenshot.
These are the properties of the System.Web.Mvc reference. I seems to reference the packages folder.
Support Staff 3 Posted by Feodor Fitsner on Jul 11, 2016 @ 04:54 PM
Looks like nuget command line not trying to restore those packages at all.
Do you have
packages
folder checked-in into your repository by chance? If yes, it shouldn't be there. You can addrd /s /q packages
before nuget restore command.Also, a quicker way to troubleshoot the issue is doing "clean clone" locally (clone from remote repository into new empty folder) and building from command line using the same commands as on AppVeyor.
4 Posted by thomas on Jul 12, 2016 @ 06:34 AM
Apparently the package folder was indeed checked-in to the repository. After removed it from the repository everything build fine.
Thanks for the help.
Ilya Finkelshteyn closed this discussion on Aug 25, 2018 @ 02:07 AM.