tag:help.appveyor.com,2012-11-13:/discussions/problems/803-test-runner-uses-server-specific-assemblies-not-project-specific-assembliesAppVeyor: Discussion 2018-10-19T08:16:45Ztag:help.appveyor.com,2012-11-13:Comment/346844322014-09-23T07:44:07Z2014-09-23T07:44:07ZTest runner uses server specific assemblies, not project specific assemblies<div><p>Hi,</p>
<p>Currently I'm trying to let my unit tests pass in AppVeyor but
I'm stuck building the testproject in AppVeyor: <a href=
"https://ci.appveyor.com/project/TomKamphuis/website">https://ci.appveyor.com/project/TomKamphuis/website</a>.
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).</p>
<p>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?</p>
<p>Any help is appreciated!</p>
<p>Regards,<br>
Tom</p></div>Tom Kamphuistag:help.appveyor.com,2012-11-13:Comment/346844322014-09-23T16:55:57Z2014-09-23T16:58:06ZTest runner uses server specific assemblies, not project specific assemblies<div><p>Hi Tom,</p>
<p>I see some issues in your <code>appveyor.yml</code>. Based on my
guess of what you are trying to achieve it could like this:</p>
<pre>
<code>configuration: Release
# restore NuGet packages before running MS Build
before_build:
- nuget restore
# package Web Application project for Web Deploy
build:
verbosity: minimal</code>
</pre>
<p>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
<code>TomKamphuisOnSpaAndAngular.Web</code> into WAP then you are
good to go.</p>
<p>In the meantime I'll check if packaging websites is something
that could be easily added as a standard option.</p>
<p>Let me know if you have any questions.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/346844322014-09-24T10:18:32Z2014-09-24T10:18:32ZTest runner uses server specific assemblies, not project specific assemblies<div><p>Great, thanks Feodor!<br>
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.<br>
Thanks again and I'm looking forward to a standard option for
packaging websites!<br>
Cheers,Tom</p></div>Tom Kamphuis