Skip to content

Commit 21f01a7

Browse files
committed
Mark AddCSharpApp as experimental
1 parent 6dbfe1d commit 21f01a7

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
3+
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
4+
5+
<PropertyGroup>
6+
<NoWarn>$(NoWarn);ASPIRECSHARPAPPS001</NoWarn>
7+
</PropertyGroup>
8+
9+
</Project>

playground/FileBasedApps/api.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#:sdk Microsoft.NET.Sdk.Web
44
#:package Microsoft.AspNetCore.OpenApi
5-
#:project ..\Playground.ServiceDefaults\Playground.ServiceDefaults.csproj
5+
#:project ../Playground.ServiceDefaults
66

77
using System.Text.Json.Serialization;
88

src/Aspire.Hosting/ProjectResourceBuilderExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#pragma warning disable ASPIREEXTENSION001
55
using System.Diagnostics;
6+
using System.Diagnostics.CodeAnalysis;
67
using Aspire.Hosting.ApplicationModel;
78
using Aspire.Hosting.Dashboard;
89
using Aspire.Hosting.Dcp.Model;
@@ -294,6 +295,7 @@ public static IResourceBuilder<ProjectResource> AddProject(this IDistributedAppl
294295
/// <param name="name"></param>
295296
/// <param name="path"></param>
296297
/// <returns></returns>
298+
[Experimental("ASPIRECSHARPAPPS001", UrlFormat = "https://aka.ms/aspire/diagnostics/{0}")]
297299
public static IResourceBuilder<ProjectResource> AddCSharpApp(this IDistributedApplicationBuilder builder, string name, string path)
298300
{
299301
ArgumentNullException.ThrowIfNull(builder);
@@ -311,6 +313,7 @@ public static IResourceBuilder<ProjectResource> AddCSharpApp(this IDistributedAp
311313
/// <param name="path"></param>
312314
/// <param name="configure"></param>
313315
/// <returns></returns>
316+
[Experimental("ASPIRECSHARPAPPS001", UrlFormat = "https://aka.ms/aspire/diagnostics/{0}")]
314317
public static IResourceBuilder<ProjectResource> AddCSharpApp(this IDistributedApplicationBuilder builder, [ResourceName] string name, string path, Action<ProjectResourceOptions> configure)
315318
{
316319
ArgumentNullException.ThrowIfNull(builder);

0 commit comments

Comments
 (0)