Telemetry Dependencies automatically added to Xamarin build in VS2019

Jonathan Cook 1 Reputation point
2021-12-13T14:50:45.643+00:00

We have found that when we build our code in Visual Studio 2019 some dll dependencies are added in a folder in the build called "TelemetryDependencies". Those dependencies are as follows:
Microsoft.VisualStudio.RemoteControl.dll
Microsoft.VisualStudio.Telemetry.dll
Microsoft.VisualStudio.Utilities.Internal.dll

These dependencies are not added when we build with Visual Studio 2017. We would like our builds to not have these dependencies. Can someone explain to me:

  1. Why are these dependencies added in only VS2019?
  2. How can we turn off whatever is adding this to the build?
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,295 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jonathan Cook 6 Reputation points
    2022-02-02T15:53:41.317+00:00

    After reading through some documentation I found that adding a file in the same folder as the solution called Directory.Build.props with theses contents disables the telemetry settings:

    <Project>
        <PropertyGroup>
            <AppxLogTelemetryFromSideloadingScript>false</AppxLogTelemetryFromSideloadingScript>
        </PropertyGroup>
    </Project>
    
    1 person found this answer helpful.
    0 comments No comments