Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo build fails when tried to run Tests project visual studio

Sid Shrivastav
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 22, 2020

Hi there,

So, even after installing Visual Studio 2019 on the bamboo build server, we are still running into the Tests project in Visual Studio throwing exceptions when trying to deploy the solution to our development server. To recap, the solution now has a new Tests project which uses .net framework 4.7.2 while all the other projects in the solution use 4.0 .net framework. In order to make sure the tests project run, I had the build server team install SDK .net framework 4.7.2 on the bamboo build server which he did by installing the VS 2019 and bringing back the most recent SDK with the install. Now, when I try to run the build from bamboo including the Tests project, the build fails. I get the error below.

Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Roslyn
Core\Configuration\ConfigurationTests.cs(1,17): error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\bamboo-home\xml-data\build-dir\WA-BTSBOA-JOB1\Source\BOA.Tests\BOA.Tests.csproj]
Core\Configuration\ConfigurationTests.cs(2,7): error CS0246: The type or namespace name 'NUnit' could not be found (are you missing a using directive or an assembly reference?) [D:\bamboo-home\xml-data\build-dir\WA-BTSBOA-JOB1\Source\BOA.Tests\BOA.Tests.csproj]
Core\Configuration\ConfigurationTests.cs(7,6): error CS0246: The type or namespace name 'TestClassAttribute' could not be found (are you missing a using directive or an assembly reference?) [D:\bamboo-home\xml-data\build-dir\WA-BTSBOA-JOB1\Source\BOA.Tests\BOA.Tests.csproj]
Core\Configuration\ConfigurationTests.cs(7,6): error CS0246: The type or namespace name 'TestClass' could not be found (are you missing a using directive or an assembly reference?) [D:\bamboo-home\xml-data\build-dir\WA-BTSBOA-JOB1\Source\BOA.Tests\BOA.Tests.csproj]

When I exclude the Tests project, the build works just fine. What am I missing here? Sorry new to the bamboo.

1 answer

0 votes
Amit Barik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 14, 2021

Any answer to this ? Is it still open ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events