Test runner uses server specific assemblies, not project specific assemblies

Tom Kamphuis's Avatar

Tom Kamphuis

23 Sep, 2014 07:44 AM


Currently I'm trying to let my unit tests pass in AppVeyor but I'm stuck building the testproject in AppVeyor: https://ci.appveyor.com/project/TomKamphuis/website. I'm using an assembly from Microsoft (System.Web) but I'm getting this error in your console: The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) (line 509).

I've set the included test project assemblies to be used in their specific version just like I did with the assemblies for the website project but this time it didn't work. I'm assuming that the build process uses the assembly versions already installed in the GAC. Is there a way to override that for the test project?

Any help is appreciated!


  1. Support Staff 1 Posted by Feodor Fitsner on 23 Sep, 2014 04:55 PM

    Feodor Fitsner's Avatar

    Hi Tom,

    I see some issues in your appveyor.yml. Based on my guess of what you are trying to achieve it could like this:

    configuration: Release
    # restore NuGet packages before running MS Build
      - nuget restore
    # package Web Application project for Web Deploy
      verbosity: minimal

    And also, AppVeyor doesn't currently support automatic packaging of "Website" projects - it could package "ASP.NET Web Application" (WAP) projects. If you can convert TomKamphuisOnSpaAndAngular.Web into WAP then you are good to go.

    In the meantime I'll check if packaging websites is something that could be easily added as a standard option.

    Let me know if you have any questions.

  2. 2 Posted by Tom Kamphuis on 24 Sep, 2014 10:18 AM

    Tom Kamphuis's Avatar

    Great, thanks Feodor!
    At some point I was under the impression that my unit tests broke the built since my project didn't build anymore after only changing some tests. Apparently the WAP option in the yaml file triggers than meets the eye.
    Thanks again and I'm looking forward to a standard option for packaging websites!

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:48 AM.

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

Keyboard shortcuts


? 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