| File: Infrastructure\ResourceExtensions.cs | Web Access |
| Project: src\tests\Aspire.Playground.Tests\Aspire.Playground.Tests.csproj (Aspire.Playground.Tests) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Aspire.Hosting.ApplicationModel; namespace SamplesIntegrationTests.Infrastructure; internal static class ResourceExtensions { /// <summary> /// Gets the name of the <see cref="ProjectResource"/> based on the project file path. /// </summary> public static string GetName(this ProjectResource project) { var metadata = project.GetProjectMetadata(); return Path.GetFileNameWithoutExtension(metadata.ProjectPath); } }