Abd@SDET@ML
sql server is not deployed due to MSBuild issue
If anyone is using .net aspire 9.0, can they help in fixing this issue ?
https://github.com/dotnet/aspire/discussions/7638
5 replies
API Swagger URL is not loading at all through .NET aspire 9.0
I've added Aspire 9.0 project to spin API swagger and SQL Server container.
I'm able to spin SQL Server container, but not API Swagger URL.
I've added project references of both API and database projects to the app host project.
App host project > Program.cs file contains this code:
var builder = DistributedApplication.CreateBuilder(args);
//Database
var sqlServer = builder.AddSqlServer("sql").AddDatabase("db");
builder.AddSqlProject("sqlproject").WithDacpac("O.WP.Database.dacpac").WithReference(sqlServer);
//Api
builder.AddProject<Projects.O_WP_PIT_ACT_API>("apiservice").WithReference(sqlServer);
builder.Build().Run();
27 replies