Sample ASP.NET Core 8.0 reference application, powered by Microsoft, demonstrating a layered application architecture with monolithic deployment model. Download the eBook PDF from docs folder.
MIT License
43
stars
6
forks
source link
Need better documentation and configuration around using Visual Studio's Multiple Startup Projects #36
In looking at the README, I see that you can configure Visual Studio to run multiple projects. However this isn't really well documented nor does it seem to work.
What projects should be running as part of the multiple projects?
Are there configuration changes we need to have locally in order for it to run properly?
When I run the app with Web and PublicApi with the configurations as-is, these are the errors I get:
As well as:
Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: TypeError: Failed to fetch
System.Net.Http.HttpRequestException: TypeError: Failed to fetch
---> TypeError: Failed to fetch
--- End of inner exception stack trace ---
at System.Net.Http.BrowserHttpInterop.<CancelationHelper>d__13`1[[System.Runtime.InteropServices.JavaScript.JSObject, System.Runtime.InteropServices.JavaScript, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext()
at System.Net.Http.BrowserHttpHandler.CallFetch(HttpRequestMessage request, CancellationToken cancellationToken, Nullable`1 allowAutoRedirect)
at System.Net.Http.BrowserHttpHandler.<SendAsync>g__Impl|53_0(HttpRequestMessage request, CancellationToken cancellationToken, Nullable`1 allowAutoRedirect)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at BlazorAdmin.Services.HttpService.<HttpGet>d__4`1[[BlazorShared.Models.PagedCatalogItemResponse, BlazorShared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext() in D:\code\NimblePros\eShopOnWeb\src\BlazorAdmin\Services\HttpService.cs:line 28
at BlazorAdmin.Services.CatalogItemService.List() in D:\code\NimblePros\eShopOnWeb\src\BlazorAdmin\Services\CatalogItemService.cs:line 85
at BlazorAdmin.Services.CachedCatalogItemServiceDecorator.List() in D:\code\NimblePros\eShopOnWeb\src\BlazorAdmin\Services\CachedCatalogItemServiceDecorator.cs:line 69
at BlazorAdmin.Pages.CatalogItemPage.List.OnAfterRenderAsync(Boolean firstRender) in D:\code\NimblePros\eShopOnWeb\src\BlazorAdmin\Pages\CatalogItemPage\List.razor.cs:line 33
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Goals
Make sure that the configuration works locally and doesn't break the other ways to run the solution (Docker, command line, etc.).
Make sure that the documentation (README) clearly shows how to run this code locally in Visual Studio as Multiple Startup Projects.
Problem
In looking at the README, I see that you can configure Visual Studio to run multiple projects. However this isn't really well documented nor does it seem to work.
I started working on it here: sadukie/testing-running-locally README updates, but this doesn't seem to work.
When I run the app with
Web
andPublicApi
with the configurations as-is, these are the errors I get:As well as:
Goals