+
🗂️ Aspire Files Resource Demo
+
+
This is a simple HTML file that demonstrates the new Files resource in Aspire.Hosting.
+
+
+
📁 What is the Files Resource?
+
The Files resource is a lightweight primitive for representing and managing collections of files in Aspire applications. It's useful for:
+
+ - Configuration files
+ - Static content and assets
+ - Templates
+ - Documentation
+ - Any file-based resources your application needs
+
+
+
+
+
🛠️ How to Use
+
In your AppHost, you can add files resources like this:
+
builder.AddFiles("static-content").WithSource("content");
+
+
+
This file is located in the content/
directory and is referenced by the Files resource in the playground application.
+
+
+
\ No newline at end of file
diff --git a/src/Aspire.Hosting/ApplicationModel/FilesCallbackAnnotation.cs b/src/Aspire.Hosting/ApplicationModel/FilesCallbackAnnotation.cs
new file mode 100644
index 00000000000..113bf2d3841
--- /dev/null
+++ b/src/Aspire.Hosting/ApplicationModel/FilesCallbackAnnotation.cs
@@ -0,0 +1,28 @@
+// 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;
+
+namespace Aspire.Hosting.ApplicationModel;
+
+///