Skip to content

Commit

Permalink
razorpageappプロジェクトの参照を追加
Browse files Browse the repository at this point in the history
AppHost.csprojにrazorpageappプロジェクトの参照を追加し、Program.csでビルダーにrazorpageappプロジェクトを組み込みました。これにより、razorpageappプロジェクトがアプリケーションの一部として機能します。
  • Loading branch information
tsubakimoto committed Aug 10, 2024
1 parent f184621 commit 971b17d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dotnet/net8.0/AppHost/AppHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@
<PackageReference Include="Aspire.Hosting.AppHost" Version="8.1.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\razorpageapp\razorpageapp.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion dotnet/net8.0/AppHost/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
var builder = DistributedApplication.CreateBuilder(args);

builder.AddProject<Projects.razorpageapp>("razorpageapp");
builder.Build().Run();

0 comments on commit 971b17d

Please sign in to comment.