-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AOT target for Key Vault SDK (#38721)
* Add AOT target for Key Vault SDK Resolves #38500 * Rebase on main, resolve PR feedback
- Loading branch information
Showing
4 changed files
with
50 additions
and
0 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
23 changes: 23 additions & 0 deletions
23
sdk/keyvault/Azure.Security.KeyVault.Secrets/aot/Azure.Security.KeyVault.Secrets.Aot.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,23 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<PublishAot>true</PublishAot> | ||
<TrimmerSingleWarn>false</TrimmerSingleWarn> | ||
<IsClientLibrary>false</IsClientLibrary> | ||
<IsTestSupportProject>true</IsTestSupportProject> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<TrimmerRootAssembly Include="Azure.Security.KeyVault.Secrets" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="../../../core/Azure.Core/src/Azure.Core.csproj" /> | ||
<ProjectReference Include="../src/Azure.Security.KeyVault.Secrets.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Configuration" /> | ||
</ItemGroup> | ||
</Project> |
22 changes: 22 additions & 0 deletions
22
sdk/keyvault/Azure.Security.KeyVault.Secrets/aot/Directory.Build.targets
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,22 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks Condition="'$(TargetFramework)' != ''">$(TargetFramework)</TargetFrameworks> | ||
</PropertyGroup> | ||
|
||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., Directory.Build.targets))\Directory.Build.targets" | ||
Condition="'$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., Directory.Build.targets))' != ''" /> | ||
|
||
<!-- Canonicalize NoWarn: https://github.com/dotnet/runtime/issues/91965 --> | ||
<ItemGroup> | ||
<_NoWarn Include="$(NoWarn)" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<NoWarn>@(_NoWarn)</NoWarn> | ||
</PropertyGroup> | ||
|
||
<!-- Disable targets not necessary for samples --> | ||
<Target Name="ValidateTargetFrameworks" /> | ||
<Target Name="VerifyProjectReferencesReferences" /> | ||
|
||
</Project> |
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 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
System.Console.WriteLine("Hello, world!"); |