Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./startup.sh failing on WebApi .Net 5 #254

Closed
IsaacCalligeros opened this issue Feb 21, 2021 · 1 comment
Closed

./startup.sh failing on WebApi .Net 5 #254

IsaacCalligeros opened this issue Feb 21, 2021 · 1 comment
Assignees
Labels

Comments

@IsaacCalligeros
Copy link

Hi, I'm new to docker and trying to trying to run the solution with the commands listed in the readme. When running the startup.sh I get the below error. Not sure how the errors throwing since the WepApi docker file is targeting the 5.0 sdk. Any advice?

Step 5/6 : RUN dotnet restore "src/WebApi/WebApi.csproj"
---> Running in 8023c614b74b
Determining projects to restore...
Restored /src/src/Domain/Domain.csproj (in 14.45 sec).
Restored /src/src/Application/Application.csproj (in 14.45 sec).
Restored /src/src/Infrastructure/Infrastructure.csproj (in 35.78 sec).
Restored /src/src/WebApi/WebApi.csproj (in 35.89 sec).
Removing intermediate container 8023c614b74b
---> 845124d2d746
Step 6/6 : RUN dotnet build "src/WebApi/WebApi.csproj" --no-restore
---> Running in 8182e54e95bb
Microsoft (R) Build Engine version 16.7.2+b60ddb6f4 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

/usr/share/dotnet/sdk/3.1.406/Microsoft.Common.CurrentVersion.targets(1177,5): error MSB3971: The reference assemblies for ".NETFramework,Version=v5.0" were not found. You might be using an older .NET SDK to target .NET 5.0 or higher. Update Visual Studio and/or your .NET SDK. [/src/src/WebApi/WebApi.csproj]

Build FAILED.

/usr/share/dotnet/sdk/3.1.406/Microsoft.Common.CurrentVersion.targets(1177,5): error MSB3971: The reference assemblies for ".NETFramework,Version=v5.0" were not found. You might be using an older .NET SDK to target .NET 5.0 or higher. Update Visual Studio and/or your .NET SDK. [/src/src/WebApi/WebApi.csproj]
0 Warning(s)
1 Error(s)

@ivanpaulovich ivanpaulovich self-assigned this Feb 23, 2021
charithdesilva pushed a commit to charithdesilva/clean-architecture-manga that referenced this issue Mar 10, 2021
ivanpaulovich pushed a commit that referenced this issue Mar 15, 2021
Co-authored-by: charith-desilva <charith@insighture.com>
@ivanpaulovich
Copy link
Owner

Hey @IsaacCalligeros it has been a long time but I kindly ask you to check the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants