Skip to content

Commit ed41e86

Browse files
authored
Gallery Services Library (#7215)
* minimal changes to pull DeleteService. * Update test project o use new library. Expose more quietlog methods. * cshtml corrections for library. * Update Gallery Tools t reference services library. * Fix mvc referenc * Signing and versioning. * Fixing Namespacing. Added Comment to Interface. Revert some stuff back to internal. Expose to Test. * Clean up usings. Remove some leftover stuff. Revert support request stuff back into wierd namespace. * Move reference up a dependency. Fix tests. * Make entities strings internal. Don't build razor locally. * More namespace reverts. ServiceStrings -> ServicesStrings. * Put back a using. Fix reference to DeleteAccountStatus in UsersController. * CR header. Removed usings. * Fix DeleteAccountStatus references in tests.
1 parent efcfb6b commit ed41e86

126 files changed

Lines changed: 4424 additions & 232 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

NuGetGallery.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NuGet.Services.DatabaseMigr
3636
EndProject
3737
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NuGet.Services.DatabaseMigration.Facts", "tests\NuGet.Services.DatabaseMigration.Facts\NuGet.Services.DatabaseMigration.Facts.csproj", "{082357A1-682E-4CCC-8FCD-FA250204CDB6}"
3838
EndProject
39+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NuGetGallery.Services", "src\NuGetGallery.Services\NuGetGallery.Services.csproj", "{C7D5E850-33FA-4EC5-8D7F-B1C8DD5D48F9}"
40+
EndProject
3941
Global
4042
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4143
Debug|Any CPU = Debug|Any CPU
@@ -82,6 +84,10 @@ Global
8284
{082357A1-682E-4CCC-8FCD-FA250204CDB6}.Debug|Any CPU.Build.0 = Debug|Any CPU
8385
{082357A1-682E-4CCC-8FCD-FA250204CDB6}.Release|Any CPU.ActiveCfg = Release|Any CPU
8486
{082357A1-682E-4CCC-8FCD-FA250204CDB6}.Release|Any CPU.Build.0 = Release|Any CPU
87+
{C7D5E850-33FA-4EC5-8D7F-B1C8DD5D48F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
88+
{C7D5E850-33FA-4EC5-8D7F-B1C8DD5D48F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
89+
{C7D5E850-33FA-4EC5-8D7F-B1C8DD5D48F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
90+
{C7D5E850-33FA-4EC5-8D7F-B1C8DD5D48F9}.Release|Any CPU.Build.0 = Release|Any CPU
8591
EndGlobalSection
8692
GlobalSection(SolutionProperties) = preSolution
8793
HideSolutionNode = FALSE
@@ -97,6 +103,7 @@ Global
97103
{DCED7162-A24C-4579-96C8-544BFAF4C305} = {2204C510-A559-4ED7-9590-FDC09093575B}
98104
{F4C8C34F-72A9-4773-A315-8FA3F2D5CE4E} = {155100FF-524B-4CAF-93C6-A57478B3DBAD}
99105
{082357A1-682E-4CCC-8FCD-FA250204CDB6} = {39E54EC3-CBAA-453A-BE64-748FE1559A58}
106+
{C7D5E850-33FA-4EC5-8D7F-B1C8DD5D48F9} = {155100FF-524B-4CAF-93C6-A57478B3DBAD}
100107
EndGlobalSection
101108
GlobalSection(ExtensibilityGlobals) = postSolution
102109
SolutionGuid = {064A3BDE-5203-4AD6-A6C9-5CF08301EC8F}

build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Invoke-BuildStep 'Set version metadata in AssemblyInfo.cs' {
7979
$Paths = `
8080
(Join-Path $PSScriptRoot "src\NuGetGallery\Properties\AssemblyInfo.g.cs"), `
8181
(Join-Path $PSScriptRoot "src\NuGetGallery.Core\Properties\AssemblyInfo.g.cs"), `
82+
(Join-Path $PSScriptRoot "src\NuGetGallery.Services\Properties\AssemblyInfo.g.cs"), `
8283
(Join-Path $PSScriptRoot "src\NuGet.Services.Entities\Properties\AssemblyInfo.g.cs"), `
8384
(Join-Path $PSScriptRoot "src\NuGet.Services.DatabaseMigration\Properties\AssemblyInfo.g.cs"), `
8485
(Join-Path $PSScriptRoot "src\DatabaseMigrationTools\Properties\AssemblyInfo.g.cs")

src/DatabaseMigrationTools/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Reflection;
66
using System.Resources;
7-
using System.Runtime.CompilerServices;
87
using System.Runtime.InteropServices;
98

109
[assembly: AssemblyTitle("DatabaseMigrationTools")]

src/GalleryTools/GalleryTools.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
<Project>{097b2cdd-9623-4c34-93c2-d373d51f5b4e}</Project>
6868
<Name>NuGetGallery.Core</Name>
6969
</ProjectReference>
70+
<ProjectReference Include="..\NuGetGallery.Services\NuGetGallery.Services.csproj">
71+
<Project>{c7d5e850-33fa-4ec5-8d7f-b1c8dd5d48f9}</Project>
72+
<Name>NuGetGallery.Services</Name>
73+
</ProjectReference>
7074
<ProjectReference Include="..\NuGetGallery\NuGetGallery.csproj">
7175
<Project>{1dacf781-5cd0-4123-8bac-cd385d864be5}</Project>
7276
<Name>NuGetGallery</Name>

src/NuGet.Services.DatabaseMigration/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Reflection;
66
using System.Resources;
7-
using System.Runtime.CompilerServices;
87
using System.Runtime.InteropServices;
98

109
[assembly: AssemblyTitle("NuGet.Services.DatabaseMigration")]

src/NuGet.Services.Entities/Credential.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Collections.Generic;
66
using System.ComponentModel.DataAnnotations;
77
using System.ComponentModel.DataAnnotations.Schema;
8-
using System.Linq;
98

109
namespace NuGet.Services.Entities
1110
{

src/NuGet.Services.Entities/Package.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Collections.Generic;
66
using System.ComponentModel.DataAnnotations;
77
using System.ComponentModel.DataAnnotations.Schema;
8-
using System.Linq;
98

109
namespace NuGet.Services.Entities
1110
{

src/NuGetGallery.Core/Auditing/Obfuscation/Obfuscator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
using System;
54
using System.Text;
65
using System.Net;
76

src/NuGetGallery.Core/Completion.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33
using System;
4-
using System.Text;
54
using System.Threading.Tasks;
65

76
namespace NuGetGallery.Backend.Monitoring

src/NuGetGallery.Core/Entities/IDatabase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
using System.Data.Entity;
54
using System.Threading.Tasks;
65

76
namespace NuGetGallery

0 commit comments

Comments
 (0)