Compare commits

..

3 Commits

Author SHA1 Message Date
a1161d794d 포트 80번으로 변경, Swagger 추가 2025-09-07 18:11:08 +09:00
48ca53a6c3 콘솔과 테스트에 라이브러리 의존성 추가 2025-09-04 23:11:06 +09:00
34f405c61a 솔루션 추가 2025-09-04 23:04:52 +09:00
5 changed files with 78 additions and 5 deletions

36
BrokerDog.sln Normal file
View File

@@ -0,0 +1,36 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.2.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrokerDogConsole", "BrokerDogConsole\BrokerDogConsole.csproj", "{32D007A5-E21C-C193-4BA2-5B8633FC6EDB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrokerDogLib", "BrokerDogLib\BrokerDogLib.csproj", "{54FD2CC5-E527-CE85-41E8-55EE07F0979B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrokerDogTest", "BrokerDogTest\BrokerDogTest.csproj", "{47734E39-FD90-02F6-ED8D-0DBECDC708DF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{32D007A5-E21C-C193-4BA2-5B8633FC6EDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{32D007A5-E21C-C193-4BA2-5B8633FC6EDB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32D007A5-E21C-C193-4BA2-5B8633FC6EDB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{32D007A5-E21C-C193-4BA2-5B8633FC6EDB}.Release|Any CPU.Build.0 = Release|Any CPU
{54FD2CC5-E527-CE85-41E8-55EE07F0979B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{54FD2CC5-E527-CE85-41E8-55EE07F0979B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{54FD2CC5-E527-CE85-41E8-55EE07F0979B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{54FD2CC5-E527-CE85-41E8-55EE07F0979B}.Release|Any CPU.Build.0 = Release|Any CPU
{47734E39-FD90-02F6-ED8D-0DBECDC708DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{47734E39-FD90-02F6-ED8D-0DBECDC708DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{47734E39-FD90-02F6-ED8D-0DBECDC708DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{47734E39-FD90-02F6-ED8D-0DBECDC708DF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {DF6DC818-7B7C-4C69-A86B-978D2A715012}
EndGlobalSection
EndGlobal

View File

@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
@@ -7,4 +7,12 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\BrokerDogLib\BrokerDogLib.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.4" />
</ItemGroup>
</Project> </Project>

View File

@@ -0,0 +1,12 @@
{
"profiles": {
"BrokerDogConsole": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:57728;http://localhost:57729"
}
}
}

View File

@@ -1,7 +1,20 @@
public class Program namespace BrokerDogConsole
{ {
public class Program
{
public static void Main(string[] args) public static void Main(string[] args)
{ {
Console.WriteLine("Hello, World!"); var builder = WebApplication.CreateBuilder(args);
builder.WebHost.UseUrls("http://localhost:80");
builder.Services.AddControllers();
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
var app = builder.Build();
app.UseSwagger();
app.UseSwaggerUI();
app.MapControllers();
app.Run();
}
} }
} }

View File

@@ -12,6 +12,10 @@
<PackageReference Include="MSTest" Version="3.6.4" /> <PackageReference Include="MSTest" Version="3.6.4" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\BrokerDogLib\BrokerDogLib.csproj" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" /> <Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
</ItemGroup> </ItemGroup>