Skip to content

Commit a973231

Browse files
dfedermCopilot
andcommitted
Add ReferenceTrimmer and remove unused references
Add ReferenceTrimmer as a GlobalPackageReference to enable detection of unnecessary project, package, and assembly references during build. Remove all unused references identified by ReferenceTrimmer. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 91f7956 commit a973231

File tree

36 files changed

+11
-74
lines changed

36 files changed

+11
-74
lines changed

dotnet/Directory.Packages.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,7 @@
241241
<PackageVersion Include="NAudio" Version="2.2.1" />
242242
<PackageVersion Include="WebRtcVadSharp" Version="1.3.2" />
243243
</ItemGroup>
244+
<ItemGroup>
245+
<GlobalPackageReference Include="ReferenceTrimmer" Version="3.4.5" />
246+
</ItemGroup>
244247
</Project>

dotnet/samples/Concepts/Concepts.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,12 @@
7272
<ProjectReference Include="..\..\src\Connectors\Connectors.OpenAI\Connectors.OpenAI.csproj" />
7373
<ProjectReference Include="..\..\src\VectorData\AzureAISearch\AzureAISearch.csproj" />
7474
<ProjectReference Include="..\..\src\VectorData\CosmosMongoDB\CosmosMongoDB.csproj" />
75-
<ProjectReference Include="..\..\src\VectorData\Chroma\Chroma.csproj" />
7675
<ProjectReference Include="..\..\src\VectorData\InMemory\InMemory.csproj" />
77-
<ProjectReference Include="..\..\src\VectorData\MongoDB\MongoDB.csproj" />
7876
<ProjectReference Include="..\..\src\VectorData\Pinecone\Pinecone.csproj" />
7977
<ProjectReference Include="..\..\src\VectorData\PgVector\PgVector.csproj" />
8078
<ProjectReference Include="..\..\src\VectorData\Qdrant\Qdrant.csproj" />
8179
<ProjectReference Include="..\..\src\VectorData\Redis\Redis.csproj" />
8280
<ProjectReference Include="..\..\src\VectorData\SqliteVec\SqliteVec.csproj" />
83-
<ProjectReference Include="..\..\src\VectorData\Weaviate\Weaviate.csproj" />
8481
<ProjectReference Include="..\..\src\Experimental\Orchestration.Flow\Experimental.Orchestration.Flow.csproj" />
8582
<ProjectReference Include="..\..\src\Extensions\PromptTemplates.Handlebars\PromptTemplates.Handlebars.csproj" />
8683
<ProjectReference Include="..\..\src\Extensions\PromptTemplates.Liquid\PromptTemplates.Liquid.csproj" />

dotnet/samples/Demos/HomeAutomation/HomeAutomation.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
</ItemGroup>
1616

1717
<ItemGroup>
18-
<ProjectReference Include="..\..\..\src\Connectors\Connectors.AzureOpenAI\Connectors.AzureOpenAI.csproj" />
1918
<ProjectReference Include="..\..\..\src\Connectors\Connectors.OpenAI\Connectors.OpenAI.csproj" />
2019
<ProjectReference Include="..\..\..\src\SemanticKernel.Abstractions\SemanticKernel.Abstractions.csproj" />
2120
</ItemGroup>

dotnet/samples/Demos/TelemetryWithAppInsights/TelemetryWithAppInsights.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
<ProjectReference Include="..\..\..\src\Connectors\Connectors.HuggingFace\Connectors.HuggingFace.csproj" />
2727
<ProjectReference Include="..\..\..\src\SemanticKernel.Core\SemanticKernel.Core.csproj" />
2828
<ProjectReference Include="..\..\..\src\Agents\Core\Agents.Core.csproj" />
29-
<ProjectReference Include="..\..\..\src\Plugins\Plugins.Core\Plugins.Core.csproj" />
30-
<ProjectReference Include="..\..\..\src\Plugins\Plugins.Web\Plugins.Web.csproj" />
31-
</ItemGroup>
29+
</ItemGroup>
3230

3331
</Project>

dotnet/samples/GettingStarted/GettingStarted.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
4747
<PackageReference Include="Microsoft.Extensions.Logging" />
4848
<PackageReference Include="Microsoft.Extensions.Logging.Console" />
49-
<PackageReference Include="Microsoft.ML.Tokenizers" />
5049
<PackageReference Include="System.Numerics.Tensors" />
5150
</ItemGroup>
5251

dotnet/samples/GettingStartedWithProcesses/GettingStartedWithProcesses.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
</ItemGroup>
4545

4646
<ItemGroup>
47-
<ProjectReference Include="..\..\src\Agents\AzureAI\Agents.AzureAI.csproj" />
4847
<ProjectReference Include="..\..\src\Agents\Core\Agents.Core.csproj" />
4948
<ProjectReference Include="..\..\src\Agents\OpenAI\Agents.OpenAI.csproj" />
5049
<ProjectReference Include="..\..\src\Connectors\Connectors.AzureOpenAI\Connectors.AzureOpenAI.csproj" />

dotnet/samples/GettingStartedWithTextSearch/GettingStartedWithTextSearch.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
3434
<PackageReference Include="Microsoft.Extensions.Logging" />
3535
<PackageReference Include="Microsoft.Extensions.Logging.Console" />
36-
<PackageReference Include="Microsoft.ML.Tokenizers" />
3736
<PackageReference Include="System.Numerics.Tensors" />
3837
</ItemGroup>
3938

dotnet/samples/GettingStartedWithVectorStores/GettingStartedWithVectorStores.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
<ProjectReference Include="..\..\src\Connectors\Connectors.AzureOpenAI\Connectors.AzureOpenAI.csproj" />
4141
<ProjectReference Include="..\..\src\VectorData\AzureAISearch\AzureAISearch.csproj" />
4242
<ProjectReference Include="..\..\src\VectorData\InMemory\InMemory.csproj" />
43-
<ProjectReference Include="..\..\src\VectorData\Qdrant\Qdrant.csproj" />
4443
<ProjectReference Include="..\..\src\VectorData\Redis\Redis.csproj" />
4544
<ProjectReference Include="..\..\src\SemanticKernel.Abstractions\SemanticKernel.Abstractions.csproj" />
4645
<ProjectReference Include="..\..\src\SemanticKernel.Core\SemanticKernel.Core.csproj" />

dotnet/samples/LearnResources/LearnResources.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@
5757
<ProjectReference Include="..\..\src\Functions\Functions.Yaml\Functions.Yaml.csproj" />
5858
<ProjectReference Include="..\..\src\SemanticKernel.Abstractions\SemanticKernel.Abstractions.csproj" />
5959
<ProjectReference Include="..\..\src\Plugins\Plugins.Core\Plugins.Core.csproj" />
60-
<ProjectReference Include="..\..\src\Plugins\Plugins.Memory\Plugins.Memory.csproj" />
61-
<ProjectReference Include="..\..\src\Functions\Functions.OpenApi\Functions.OpenApi.csproj" />
6260
<ProjectReference Include="..\..\src\SemanticKernel.Core\SemanticKernel.Core.csproj" />
6361
</ItemGroup>
6462
<ItemGroup>

dotnet/src/Agents/Bedrock/Agents.Bedrock.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333

3434
<ItemGroup>
3535
<ProjectReference Include="..\Abstractions\Agents.Abstractions.csproj" />
36-
<ProjectReference Include="..\..\SemanticKernel.Core\SemanticKernel.Core.csproj" />
37-
</ItemGroup>
36+
</ItemGroup>
3837

3938
<ItemGroup>
4039
<PackageReference Include="AWSSDK.BedrockAgent" />

0 commit comments

Comments
 (0)