The following works on my pc, but when I move to DEVOPs, it errors out.
I have Micrsosoft.Expression.Encoder Installed via nuget. It installs with the nuget installer step on DEVOPS.
The first step of my tests has the following
this.Scj = new ScreenCaptureJob();
and I get the following error:
object reference not set to an instance of an object.
I have the following settings set up in runsettings.
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector uri="datacollector://microsoft/VideoRecorder/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.DataCollection.VideoRecorder.VideoRecorderDataCollector, Microsoft.VisualStudio.TestTools.DataCollection.VideoRecorder, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Screen and Voice Recorder">
<!--Video data collector was introduced in Visual Studio 2017 version 15.5 -->
</DataCollector>
</DataCollectors>
Is there any other settings in DEVOPS that is needed to run these tests? I have run this on 2017 and 2019 locally. I have the settings as 'Latest', in DEVOPs.