Hi all,
We have an existing protocol which has unit tests. If the platform target of the unit test project is set to x86, running the tests in Visual Studio succeeds. If the platform target is set to x64 or Any CPU, running the tests in VS fails. In both scenarios, when I push the protocol solution to the CI/CD pipeline, it fails and gives the same exception as it gives in VS when the platform target is set to x64 or Any CPU. The error message is the one shown below.
Error message in VS
Error message in the CI/CD pipeline
How is it possible to fix such issues?
Hi Fenta,
You need to configure the Directory.Build.props file to have something like this
<Project>
<PropertyGroup>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
</Project>
This will indicate the pipeline to use x86 for the build instead of any