Skip to content

Conversation

@xj-ms
Copy link
Contributor

@xj-ms xj-ms commented Nov 27, 2025

Simply removing this will allow plugins to support multiple different file extensions. WPA already has the support for it as WPA always processes FileDataSourceAttribute in an IEnumerable. Even in this repo we have tests for multiple extensions (TryGetFileExtensions_FileDataSources_ReturnsExtensions)

Simply updating `FileDataSourceAttribute` will allow plugins to support multiple different file extensions. WPA already has the support for it as WPA always processes `FileDataSourceAttribute` in an `IEnumerable`.
Even in this repo we have tests for multiple extensions (`TryGetFileExtensions_FileDataSources_ReturnsExtensions`)
@xj-ms xj-ms force-pushed the user/jing/file-data-source branch from cc446bb to 8a68d97 Compare November 27, 2025 01:47
@xj-ms xj-ms requested a review from Copilot December 1, 2025 23:54
Copilot finished reviewing on behalf of xj-ms December 1, 2025 23:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables the use of multiple FileDataSourceAttribute instances on a single processing source class, allowing plugins to support multiple file extensions. The change is minimal—flipping the AllowMultiple parameter from false to true—because the Windows Performance Analyzer (WPA) infrastructure already processes these attributes as an enumerable collection. The PR also includes test updates demonstrating the new capability, along with minor documentation improvements and dependency updates.

Key Changes:

  • Modified FileDataSourceAttribute to allow multiple instances per class (AllowMultiple = true)
  • Updated test class MultiDataSourceCds to demonstrate multiple file extensions using separate attribute instances
  • Corrected documentation spelling and updated .NET version guidance

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Microsoft.Performance.SDK/Processing/FileDataSourceAttribute.cs Changed AttributeUsage to allow multiple FileDataSourceAttribute instances on a single class
src/Microsoft.Performance.SDK.Runtime.Tests/ProcessingSourceReferenceTests.cs Updated test class to demonstrate multiple file extensions with two separate FileDataSource attributes; removed unused imports
src/SDK.sln Auto-updated Visual Studio version metadata (VS 17→18)
samples/SimpleDataSource/SampleAddIn.csproj Updated SDK package reference from version 1.0.14-rc1 to 1.4.7-preview2
samples/SimpleDataSource/README.md Fixed typo in documentation path ("documentaiton" → "documentation")
documentation/Using-the-SDK/Creating-your-plugin.md Updated .NET version guidance to reference .NET 8 and clarify WPA compatibility requirements

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xj-ms xj-ms merged commit a2d1fb4 into main Dec 2, 2025
11 checks passed
@xj-ms xj-ms deleted the user/jing/file-data-source branch December 2, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants