diff --git a/playground/python/Python.AppHost/Program.cs b/playground/python/Python.AppHost/Program.cs index ea51d159817..3449eba1b0a 100644 --- a/playground/python/Python.AppHost/Program.cs +++ b/playground/python/Python.AppHost/Program.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 ASPIREHOSTINGPYTHON001 // Test for experimental feature + var builder = DistributedApplication.CreateBuilder(args); builder.AddPythonApp("script-only", "../script_only", "main.py"); diff --git a/src/Aspire.Hosting.Python/AssemblyInfo.cs b/src/Aspire.Hosting.Python/AssemblyInfo.cs new file mode 100644 index 00000000000..d866cbca5db --- /dev/null +++ b/src/Aspire.Hosting.Python/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("ASPIREHOSTINGPYTHON001", UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}")] diff --git a/src/Aspire.Hosting.Python/Directory.Build.props b/src/Aspire.Hosting.Python/Directory.Build.props deleted file mode 100644 index 312f0916884..00000000000 --- a/src/Aspire.Hosting.Python/Directory.Build.props +++ /dev/null @@ -1,9 +0,0 @@ - - - - - true - - - - diff --git a/tests/Aspire.Hosting.Python.Tests/Aspire.Hosting.Python.Tests.csproj b/tests/Aspire.Hosting.Python.Tests/Aspire.Hosting.Python.Tests.csproj index 5ed2b6ca69f..669ac12ec32 100644 --- a/tests/Aspire.Hosting.Python.Tests/Aspire.Hosting.Python.Tests.csproj +++ b/tests/Aspire.Hosting.Python.Tests/Aspire.Hosting.Python.Tests.csproj @@ -2,6 +2,10 @@ $(DefaultTargetFramework) + + $(NoWarn); + ASPIREHOSTINGPYTHON001; +