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

Feature/Controllers-Project #189

Merged
merged 4 commits into from Feb 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions BaGet.sln
Expand Up @@ -30,6 +30,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.editorconfig = .editorconfig
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BaGet.Controllers", "src\BaGet.Controllers\BaGet.Controllers.csproj", "{D68B56AC-98DD-4DA7-B4F8-1243538A8A5C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -72,6 +74,10 @@ Global
{D067D82E-D515-44D1-A832-C79F29418DFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D067D82E-D515-44D1-A832-C79F29418DFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D067D82E-D515-44D1-A832-C79F29418DFC}.Release|Any CPU.Build.0 = Release|Any CPU
{D68B56AC-98DD-4DA7-B4F8-1243538A8A5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D68B56AC-98DD-4DA7-B4F8-1243538A8A5C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D68B56AC-98DD-4DA7-B4F8-1243538A8A5C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D68B56AC-98DD-4DA7-B4F8-1243538A8A5C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -86,6 +92,7 @@ Global
{A2D23427-9278-4D52-B31F-759212252832} = {26A0B557-53FB-4B9A-94C4-BCCF1BDCB0CC}
{AC764A9A-9EAF-422B-9223-D3290C3CFD79} = {C237857D-AD8E-4C52-974F-6A8155BB0C18}
{D067D82E-D515-44D1-A832-C79F29418DFC} = {26A0B557-53FB-4B9A-94C4-BCCF1BDCB0CC}
{D68B56AC-98DD-4DA7-B4F8-1243538A8A5C} = {26A0B557-53FB-4B9A-94C4-BCCF1BDCB0CC}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1423C027-2C90-417F-8629-2A4CF107C055}
Expand Down
17 changes: 17 additions & 0 deletions src/BaGet.Controllers/BaGet.Controllers.csproj
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc" version="2.2.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\BaGet.Core\BaGet.Core.csproj" />
<ProjectReference Include="..\BaGet.AWS\BaGet.AWS.csproj" />
<ProjectReference Include="..\BaGet.Azure\BaGet.Azure.csproj" />
</ItemGroup>
</Project>

File renamed without changes.
1 change: 1 addition & 0 deletions src/BaGet/BaGet.csproj
Expand Up @@ -26,6 +26,7 @@
<ProjectReference Include="..\BaGet.Azure\BaGet.Azure.csproj" />
<ProjectReference Include="..\BaGet.Core\BaGet.Core.csproj" />
<ProjectReference Include="..\BaGet.Protocol\BaGet.Protocol.csproj" />
<ProjectReference Include="..\BaGet.Controllers\BaGet.Controllers.csproj" />
</ItemGroup>

<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') ">
Expand Down
1 change: 1 addition & 0 deletions src/BaGet/Extensions/ServiceCollectionExtensions.cs
Expand Up @@ -127,6 +127,7 @@ public static IServiceCollection ConfigureHttpServices(this IServiceCollection s
{
services
.AddMvc()
.AddApplicationPart(typeof(BaGet.Controllers.PackageController).Assembly)
.SetCompatibilityVersion(CompatibilityVersion.Version_2_2);

services.AddCors();
Expand Down