diff --git a/Directory.Packages.props b/Directory.Packages.props index 66058d49354..8c2ea50095c 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -48,7 +48,7 @@ - + diff --git a/playground/AzureVirtualNetworkEndToEnd/AzureVirtualNetworkEndToEnd.AppHost/Program.cs b/playground/AzureVirtualNetworkEndToEnd/AzureVirtualNetworkEndToEnd.AppHost/Program.cs index 9994579d456..70f955c925c 100644 --- a/playground/AzureVirtualNetworkEndToEnd/AzureVirtualNetworkEndToEnd.AppHost/Program.cs +++ b/playground/AzureVirtualNetworkEndToEnd/AzureVirtualNetworkEndToEnd.AppHost/Program.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. #pragma warning disable AZPROVISION001 // Azure.Provisioning.Network is experimental +#pragma warning disable ASPIREAZURE003 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. using Aspire.Hosting.Azure; using Azure.Provisioning.Network; diff --git a/src/Aspire.Hosting.Azure.Network/Aspire.Hosting.Azure.Network.csproj b/src/Aspire.Hosting.Azure.Network/Aspire.Hosting.Azure.Network.csproj index 485c5baba74..dc9b9da99dc 100644 --- a/src/Aspire.Hosting.Azure.Network/Aspire.Hosting.Azure.Network.csproj +++ b/src/Aspire.Hosting.Azure.Network/Aspire.Hosting.Azure.Network.csproj @@ -6,7 +6,7 @@ aspire integration hosting azure network vnet virtual-network subnet nat-gateway public-ip cloud Azure Virtual Network resource types for Aspire. $(SharedDir)Azure_256x.png - true + true $(NoWarn);AZPROVISION001;ASPIREAZURE003 diff --git a/src/Aspire.Hosting.Azure.Network/AssemblyInfo.cs b/src/Aspire.Hosting.Azure.Network/AssemblyInfo.cs new file mode 100644 index 00000000000..84d0d6a2e7f --- /dev/null +++ b/src/Aspire.Hosting.Azure.Network/AssemblyInfo.cs @@ -0,0 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics.CodeAnalysis; + +[assembly: Experimental("ASPIREAZURE003", UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}")] diff --git a/src/Aspire.Hosting.Azure.Sql/AdminDeploymentScriptSubnetAnnotation.cs b/src/Aspire.Hosting.Azure.Sql/AdminDeploymentScriptSubnetAnnotation.cs index 7a603b0ae5a..3e5980e9f8a 100644 --- a/src/Aspire.Hosting.Azure.Sql/AdminDeploymentScriptSubnetAnnotation.cs +++ b/src/Aspire.Hosting.Azure.Sql/AdminDeploymentScriptSubnetAnnotation.cs @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics.CodeAnalysis; using Aspire.Hosting.ApplicationModel; using Aspire.Hosting.Azure; @@ -9,6 +10,7 @@ namespace Aspire.Hosting; /// /// Annotation that stores the ACI subnet reference for deployment script configuration. /// +[Experimental("ASPIREAZURE003")] internal sealed class AdminDeploymentScriptSubnetAnnotation(AzureSubnetResource subnet) : IResourceAnnotation { /// diff --git a/src/Aspire.Hosting.Azure.Sql/SubnetAddressAllocator.cs b/src/Aspire.Hosting.Azure.Sql/SubnetAddressAllocator.cs index cc9875fd006..1a3a10e8b7e 100644 --- a/src/Aspire.Hosting.Azure.Sql/SubnetAddressAllocator.cs +++ b/src/Aspire.Hosting.Azure.Sql/SubnetAddressAllocator.cs @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics.CodeAnalysis; using System.Net; using System.Net.Sockets; using Aspire.Hosting.Azure; @@ -10,6 +11,7 @@ namespace Aspire.Hosting; /// /// Allocates subnet address space within a virtual network. /// +[Experimental("ASPIREAZURE003")] internal static class SubnetAddressAllocator { /// diff --git a/tests/Aspire.Hosting.Azure.Tests/AzureDeployerTests.cs b/tests/Aspire.Hosting.Azure.Tests/AzureDeployerTests.cs index abc9e7e8736..3de799e807f 100644 --- a/tests/Aspire.Hosting.Azure.Tests/AzureDeployerTests.cs +++ b/tests/Aspire.Hosting.Azure.Tests/AzureDeployerTests.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. #pragma warning disable ASPIREAZURE001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. +#pragma warning disable ASPIREAZURE003 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. #pragma warning disable ASPIREPIPELINES002 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. #pragma warning disable ASPIREINTERACTION001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. #pragma warning disable ASPIREPIPELINES001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. diff --git a/tests/Aspire.Hosting.Azure.Tests/AzureNatGatewayExtensionsTests.cs b/tests/Aspire.Hosting.Azure.Tests/AzureNatGatewayExtensionsTests.cs index 723c0acd18a..c1e1040b487 100644 --- a/tests/Aspire.Hosting.Azure.Tests/AzureNatGatewayExtensionsTests.cs +++ b/tests/Aspire.Hosting.Azure.Tests/AzureNatGatewayExtensionsTests.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#pragma warning disable ASPIREAZURE003 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. + using Aspire.Hosting.Utils; namespace Aspire.Hosting.Azure.Tests; diff --git a/tests/Aspire.Hosting.Azure.Tests/AzurePrivateEndpointLockdownTests.cs b/tests/Aspire.Hosting.Azure.Tests/AzurePrivateEndpointLockdownTests.cs index 2dc611cc090..a478ea46ea8 100644 --- a/tests/Aspire.Hosting.Azure.Tests/AzurePrivateEndpointLockdownTests.cs +++ b/tests/Aspire.Hosting.Azure.Tests/AzurePrivateEndpointLockdownTests.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#pragma warning disable ASPIREAZURE003 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. + using Aspire.Hosting.Utils; namespace Aspire.Hosting.Azure.Tests; diff --git a/tests/Aspire.Hosting.Azure.Tests/AzureResourcePreparerTests.cs b/tests/Aspire.Hosting.Azure.Tests/AzureResourcePreparerTests.cs index e313350b98f..b549f7b144f 100644 --- a/tests/Aspire.Hosting.Azure.Tests/AzureResourcePreparerTests.cs +++ b/tests/Aspire.Hosting.Azure.Tests/AzureResourcePreparerTests.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#pragma warning disable ASPIREAZURE003 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. + using Aspire.Hosting.ApplicationModel; using Aspire.Hosting.Utils; using Azure.Provisioning.Storage; diff --git a/tests/Aspire.Hosting.Azure.Tests/AzureStoragePrivateEndpointLockdownTests.cs b/tests/Aspire.Hosting.Azure.Tests/AzureStoragePrivateEndpointLockdownTests.cs index 65bc24e123c..8aa2b45de0e 100644 --- a/tests/Aspire.Hosting.Azure.Tests/AzureStoragePrivateEndpointLockdownTests.cs +++ b/tests/Aspire.Hosting.Azure.Tests/AzureStoragePrivateEndpointLockdownTests.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#pragma warning disable ASPIREAZURE003 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. + using Aspire.Hosting.Utils; using Azure.Provisioning.Storage;