Skip to content

Building with newwer versions of .NET (micro - tutorial) #19

@ghost

Description

I came across some problems while trying to create this project myself here is a solution

FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /app
COPY --from=build-env /app/out .
RUN sed -i 's/CipherString = DEFAULT@SECLEVEL=2/CipherString = DEFAULT@SECLEVEL=1/g' /etc/ssl/openssl.cnf
ENTRYPOINT ["dotnet", "UserService.dll"]

It is the first change more about it in dotnet/SqlClient#633
Second one is adding TrustServerCertificate=true; to your connection string aka "PlatformsConn" in this project

For now those are all the errors i have spotted i will post more if i find any.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions