Visual Studio Online CI Nunit references not allowed during build

I am trying to get a solution for building a CI configuration using Visual Studio Online and a hosted build controller.

I created a folder in the root of my workspace with the necessary NUnit binaries in accordance with these recommendations .

I also mentioned these previous questions when users had problems trying to accomplish the same thing:

I have the package "NUnit Test adapter for VS2012 and VS2013" installed in all my test projects.

The error messages in my build log are as follows:

Tracking_works_when.cs (35): The type or name of the TestAttribute namespace could not be found (do you miss the using directive or assembly references?)

The TestAttribute type is one of several missing, including Test, TestFixture, and TestFixtureAttribute.

There is also the following warning:

C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Microsoft.Common.targets (1605): This link could not be resolved. Could not find assembly "nunit.framework, Version = 2.6.3.13283, Culture = neutral, PublicKeyToken = 96d09a1eb7f44a77, processorArchitecture = MSIL". Make sure the assembly exists on disk. If this link is required for your code, you may get compilation errors.

The same warning is repeated for "nunit.core.interfaces" and "nunit.core".

Question:

? NUnit , ?

+4

Source: https://habr.com/ru/post/1548333/


All Articles