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.
Any answer to this ? Is it still open ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.