Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<!-- TODO: Need to figure out we can automatically detect target framework here. This property
is specified to support dashboard path metadata generation on the inner loop. -->
<AspireDashboardDir>$(MSBuildThisFileDirectory)/artifacts/bin/Aspire.Dashboard/$(Configuration)/net8.0/</AspireDashboardDir>
<WatchAspireDir>$(MSBuildThisFileDirectory)/artifacts/bin/Microsoft.DotNet.HotReload.Watch.Aspire/$(Configuration)/net10.0/</WatchAspireDir>
</PropertyGroup>

</Project>
5 changes: 3 additions & 2 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
Expand Down Expand Up @@ -31,6 +31,7 @@
<!-- FluentUI is present on both public an internal dotnet feeds. Prefer public feed -->
<package pattern="Microsoft.FluentUI.AspNetCore.Components" />
<package pattern="Microsoft.FluentUI.AspNetCore.Components.Icons" />
<package pattern="Microsoft.CodeAnalysis.*" />
</packageSource>
<packageSource key="dotnet9">
<package pattern="*" />
Expand All @@ -39,7 +40,7 @@
<package pattern="*" />
</packageSource>
<packageSource key="dotnet-tools">
<package pattern="*" />
<package pattern="Microsoft.CodeAnalysis.*" />
</packageSource>
<packageSource key="dotnet-libraries">
<package pattern="Microsoft.DeveloperControlPlane*" />
Expand Down
2 changes: 2 additions & 0 deletions playground/mongo/Mongo.ApiService/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
var app = builder.Build();

app.MapDefaultEndpoints();
app.MapGet("/ping", () => "pong");
app.MapGet("/health-check", () => "healthy");
app.MapGet("/", async (IMongoClient mongoClient) =>
{
const string collectionName = "entries";
Expand Down
16 changes: 16 additions & 0 deletions src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,22 @@ namespace Projects%3B
</ItemGroup>
</Target>

<Target Name="SetWatchAspireDiscoveryAttributes" BeforeTargets="GetAssemblyAttributes" Condition=" '$(WatchAspireDir)' != '' ">
<PropertyGroup>
<WatchAspireDir>$([MSBuild]::EnsureTrailingSlash('$(WatchAspireDir)'))</WatchAspireDir>
<WatchAspirePath Condition=" '$(WatchAspirePath)' == '' ">$([MSBuild]::NormalizePath($(WatchAspireDir), 'Microsoft.DotNet.HotReload.Watch.Aspire'))</WatchAspirePath>
<WatchAspirePath Condition=" '$(OS)' == 'Windows_NT' and !$(WatchAspirePath.EndsWith('.exe')) ">$(WatchAspirePath).exe</WatchAspirePath>
<WatchAspirePath Condition=" '$(OS)' != 'Windows_NT' and !$(WatchAspirePath.EndsWith('.dll')) ">$(WatchAspirePath).dll</WatchAspirePath>
</PropertyGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadata">
<_Parameter1>watchaspirepath</_Parameter1>
<_Parameter2>$(WatchAspirePath)</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
</Target>

<Target Name="EmbedAppHostIntermediateOutputPath" BeforeTargets="GetAssemblyAttributes" Condition=" '$(IsAspireHost)' == 'true' ">
<ItemGroup>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
Expand Down
Loading