diff --git a/.vscode/launch.json b/.vscode/launch.json index 164038d..36df710 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,9 +10,9 @@ "request": "launch", "preLaunchTask": "build", // If you have changed target frameworks, make sure to update the program path. - "program": "${workspaceFolder}/Azaion.Api/bin/Debug/net10.0/Azaion.Api.dll", + "program": "${workspaceFolder}/Azaion.AdminApi/bin/Debug/net10.0/Azaion.AdminApi.dll", "args": [], - "cwd": "${workspaceFolder}/Azaion.Api", + "cwd": "${workspaceFolder}/Azaion.AdminApi", "stopAtEntry": false, // Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser "serverReadyAction": { diff --git a/.vscode/tasks.json b/.vscode/tasks.json index a4d08d2..bc600c6 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -7,7 +7,7 @@ "type": "process", "args": [ "build", - "${workspaceFolder}/Azaion.Api.sln", + "${workspaceFolder}/Azaion.AdminApi.sln", "/property:GenerateFullPaths=true", "/consoleloggerparameters:NoSummary;ForceNoAlign" ], @@ -19,7 +19,7 @@ "type": "process", "args": [ "publish", - "${workspaceFolder}/Azaion.Api.sln", + "${workspaceFolder}/Azaion.AdminApi.sln", "/property:GenerateFullPaths=true", "/consoleloggerparameters:NoSummary;ForceNoAlign" ], @@ -33,7 +33,7 @@ "watch", "run", "--project", - "${workspaceFolder}/Azaion.Api.sln" + "${workspaceFolder}/Azaion.AdminApi.sln" ], "problemMatcher": "$msCompile" } diff --git a/Azaion.Api.sln b/Azaion.AdminApi.sln similarity index 93% rename from Azaion.Api.sln rename to Azaion.AdminApi.sln index e90cdae..bcea3fe 100644 --- a/Azaion.Api.sln +++ b/Azaion.AdminApi.sln @@ -1,6 +1,6 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azaion.Api", "Azaion.Api\Azaion.Api.csproj", "{03A56CF2-A57F-4631-8454-C08B804B8903}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azaion.AdminApi", "Azaion.AdminApi\Azaion.AdminApi.csproj", "{03A56CF2-A57F-4631-8454-C08B804B8903}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azaion.Common", "Azaion.Common\Azaion.Common.csproj", "{E838FA94-B96D-4446-B5D6-6BC1A34436C1}" EndProject diff --git a/Azaion.Api/Azaion.Api.csproj b/Azaion.AdminApi/Azaion.AdminApi.csproj similarity index 100% rename from Azaion.Api/Azaion.Api.csproj rename to Azaion.AdminApi/Azaion.AdminApi.csproj diff --git a/Azaion.Api/BusinessExceptionHandler.cs b/Azaion.AdminApi/BusinessExceptionHandler.cs similarity index 100% rename from Azaion.Api/BusinessExceptionHandler.cs rename to Azaion.AdminApi/BusinessExceptionHandler.cs diff --git a/Azaion.Api/Program.cs b/Azaion.AdminApi/Program.cs similarity index 100% rename from Azaion.Api/Program.cs rename to Azaion.AdminApi/Program.cs diff --git a/Azaion.Api/Properties/launchSettings.json b/Azaion.AdminApi/Properties/launchSettings.json similarity index 100% rename from Azaion.Api/Properties/launchSettings.json rename to Azaion.AdminApi/Properties/launchSettings.json diff --git a/Azaion.Api/appsettings.Development.json b/Azaion.AdminApi/appsettings.Development.json similarity index 100% rename from Azaion.Api/appsettings.Development.json rename to Azaion.AdminApi/appsettings.Development.json diff --git a/Azaion.Api/appsettings.json b/Azaion.AdminApi/appsettings.json similarity index 100% rename from Azaion.Api/appsettings.json rename to Azaion.AdminApi/appsettings.json diff --git a/Dockerfile b/Dockerfile index 9374898..8b3e2da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,14 +9,14 @@ WORKDIR /app COPY . . RUN dotnet restore -WORKDIR "/app/Azaion.Api" -RUN dotnet build "Azaion.Api.csproj" -c Release -o /app/build +WORKDIR "/app/Azaion.AdminApi" +RUN dotnet build "Azaion.AdminApi.csproj" -c Release -o /app/build FROM build AS publish -RUN dotnet publish "Azaion.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "Azaion.AdminApi.csproj" -c Release -o /app/publish /p:UseAppHost=false # Build runtime FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "Azaion.Api.dll"] +ENTRYPOINT ["dotnet", "Azaion.AdminApi.dll"]