-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish the AotCompatibility.TestApp project as part of PR validation (…
…#5622) - Remove AI in Microsoft.Extensions.AI.AotCompatibility.TestApp so it can be used for all projects - Analyze all libraries except the ones that have current warnings - Publish the app from the AzDO pipeline - Clean up the AotCompatibility.TestApp - Remove unnecessary code in Program.cs by turning off ReferenceTrimmer - Make the project publishable without passing in a TFM by only targeting a single TFM - Fix part of Compliance.Redaction trimming issues by reenabling the Config Binder source generator.
- Loading branch information
Showing
6 changed files
with
43 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
...sions.AI.AotCompatibility.TestApp/Microsoft.Extensions.AI.AotCompatibility.TestApp.csproj
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
test/Libraries/Microsoft.Extensions.AI.AotCompatibility.TestApp/Program.cs
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
....Extensions.AotCompatibility.TestApp/Microsoft.Extensions.AotCompatibility.TestApp.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>$(LatestTargetFramework)</TargetFramework> | ||
<!-- clear TargetFrameworks because it is set in ..\Directory.Build.props --> | ||
<TargetFrameworks></TargetFrameworks> | ||
<PublishAot>true</PublishAot> | ||
<TrimmerSingleWarn>false</TrimmerSingleWarn> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<!-- Remove the ReferenceTrimmer analyzer. We explicitly want to reference every assembly so the AOT compiler sees it. --> | ||
<PackageReference Remove="ReferenceTrimmer" /> | ||
|
||
<LibraryProjects Include="$(RepoRoot)\src\Libraries\**\*.csproj" /> | ||
<!-- https://github.com/Azure/azure-sdk-for-net/issues/47069 --> | ||
<LibraryProjects Remove="$(RepoRoot)\src\Libraries\Microsoft.Extensions.AI.AzureAIInference\Microsoft.Extensions.AI.AzureAIInference.csproj" /> | ||
<!-- https://github.com/openai/openai-dotnet/issues/20 --> | ||
<LibraryProjects Remove="$(RepoRoot)\src\Libraries\Microsoft.Extensions.AI.OpenAI\Microsoft.Extensions.AI.OpenAI.csproj" /> | ||
<!-- https://github.com/dotnet/extensions/issues/5624 --> | ||
<LibraryProjects Remove="$(RepoRoot)\src\Libraries\Microsoft.Extensions.Caching.Hybrid\Microsoft.Extensions.Caching.Hybrid.csproj" /> | ||
<!-- https://github.com/dotnet/extensions/issues/5623 --> | ||
<LibraryProjects Remove="$(RepoRoot)\src\Libraries\Microsoft.Extensions.Compliance.Redaction\Microsoft.Extensions.Compliance.Redaction.csproj" /> | ||
<!-- https://github.com/dotnet/extensions/issues/5625 --> | ||
<LibraryProjects Remove="$(RepoRoot)\src\Libraries\Microsoft.Extensions.Http.Resilience\Microsoft.Extensions.Http.Resilience.csproj" /> | ||
|
||
<TrimmerRootAssembly Include="@(LibraryProjects->'%(FileName)')" /> | ||
<ProjectReference Include="@(LibraryProjects)" /> | ||
</ItemGroup> | ||
|
||
</Project> |
4 changes: 4 additions & 0 deletions
4
test/Libraries/Microsoft.Extensions.AotCompatibility.TestApp/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
System.Console.WriteLine("Success!"); |