Repo does not build under macOS via the command line
adamhill opened this issue · comments
Adam Hill commented
Tried to clone and build on the command line per instructions. Docker is running.
(macOS, Intel, .NET 8.0.204, Sonoma 14.4.1)
❯ git pull
Already up to date.
❯ dotnet restore eShop.Web.slnf
Determining projects to restore...
All projects are up-to-date for restore.
❯ dotnet run --project src/eShop.AppHost/eShop.AppHost.csproj
Building...
/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/Program.cs(22,47): error CS0234: The type or namespace name 'Identity_API' does not exist in the namespace 'Projects' (are you missing an assembly reference?) [/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/eShop.AppHost.csproj]
/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/Program.cs(28,45): error CS0234: The type or namespace name 'Basket_API' does not exist in the namespace 'Projects' (are you missing an assembly reference?) [/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/eShop.AppHost.csproj]
/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/Program.cs(33,46): error CS0234: The type or namespace name 'Catalog_API' does not exist in the namespace 'Projects' (are you missing an assembly reference?) [/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/eShop.AppHost.csproj]
/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/Program.cs(37,47): error CS0234: The type or namespace name 'Ordering_API' does not exist in the namespace 'Projects' (are you missing an assembly reference?) [/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/eShop.AppHost.csproj]
/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/Program.cs(42,29): error CS0234: The type or namespace name 'OrderProcessor' does not exist in the namespace 'Projects' (are you missing an assembly reference?) [/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/eShop.AppHost.csproj]
/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/Program.cs(46,29): error CS0234: The type or namespace name 'PaymentProcessor' does not exist in the namespace 'Projects' (are you missing an assembly reference?) [/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/eShop.AppHost.csproj]
/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/Program.cs(49,47): error CS0234: The type or namespace name 'Webhooks_API' does not exist in the namespace 'Projects' (are you missing an assembly reference?) [/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/eShop.AppHost.csproj]
/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/Program.cs(55,29): error CS0234: The type or namespace name 'Mobile_Bff_Shopping' does not exist in the namespace 'Projects' (are you missing an assembly reference?) [/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/eShop.AppHost.csproj]
/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/Program.cs(60,50): error CS0234: The type or namespace name 'WebhookClient' does not exist in the namespace 'Projects' (are you missing an assembly reference?) [/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/eShop.AppHost.csproj]
/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/Program.cs(64,42): error CS0234: The type or namespace name 'WebApp' does not exist in the namespace 'Projects' (are you missing an assembly reference?) [/Users/ahill/dev/dotnet/eShop/src/eShop.AppHost/eShop.AppHost.csproj]
The build failed. Fix the build errors and run again.
Can build and run an empty Aspire app. Default site opens in browser.
Couldn't find a project to run. Ensure a project exists in /Users/ahill/dev/dotnet/apireTest, or pass the path to the project using --project.
❯ dotnet run --project apireTest.AppHost/apireTest.AppHost.csproj
Building...
info: Aspire.Dashboard.DashboardWebApplication[0]
Now listening on: http://localhost:15054
info: Aspire.Dashboard.DashboardWebApplication[0]
OTLP server running at: http://localhost:16171
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
No XML encryptor configured. Key {ae4f76d1-029f-4584-bfc8-44fa812e1923} may be persisted to storage in unencrypted form.
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: /Users/ahill/dev/dotnet/apireTest/apireTest.AppHost```
<img width="2328" alt="image" src="https://github.com/dotnet/eShop/assets/188638/c3049cc1-bbf9-4430-b49c-e72aa54388c6">
James Montemagno commented
I have updated instructions in this PR: #353
If you are running preview 7 you will need to checkout aspire-preview7
branch