Browse Source

Init nuget server

master
Robin Thoni 9 years ago
parent
commit
35d3232ffd

+ 22
- 0
NuGet-3ie.sln View File

@@ -0,0 +1,22 @@
1
+
2
+Microsoft Visual Studio Solution File, Format Version 12.00
3
+# Visual Studio 2013
4
+VisualStudioVersion = 12.0.21005.1
5
+MinimumVisualStudioVersion = 10.0.40219.1
6
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NuGet-server", "NuGet-server\NuGet-server.csproj", "{23F13185-BFE0-435A-8772-36DA53DA5BDA}"
7
+EndProject
8
+Global
9
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
10
+		Debug|Any CPU = Debug|Any CPU
11
+		Release|Any CPU = Release|Any CPU
12
+	EndGlobalSection
13
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
14
+		{23F13185-BFE0-435A-8772-36DA53DA5BDA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15
+		{23F13185-BFE0-435A-8772-36DA53DA5BDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
16
+		{23F13185-BFE0-435A-8772-36DA53DA5BDA}.Release|Any CPU.ActiveCfg = Release|Any CPU
17
+		{23F13185-BFE0-435A-8772-36DA53DA5BDA}.Release|Any CPU.Build.0 = Release|Any CPU
18
+	EndGlobalSection
19
+	GlobalSection(SolutionProperties) = preSolution
20
+		HideSolutionNode = FALSE
21
+	EndGlobalSection
22
+EndGlobal

+ 15
- 0
NuGet-server/App_Readme/Elmah.txt View File

@@ -0,0 +1,15 @@
1
+A new HTTP handler has been configured in your application for consulting the
2
+error log and its feeds. It is reachable at elmah.axd under your application 
3
+root. If, for example, your application is deployed at http://www.example.com,
4
+the URL for ELMAH would be http://www.example.com/elmah.axd. You can, of
5
+course, change this path in your application's configuration file.
6
+
7
+ELMAH is also set up to be secure such that it can only be accessed locally.
8
+You can enable remote access but then it is paramount that you secure access
9
+to authorized users or/and roles only. This can be done using standard
10
+authorization rules and configuration already built into ASP.NET. For more
11
+information, see http://code.google.com/p/elmah/wiki/SecuringErrorLogPages on
12
+the project site.
13
+
14
+Please review the commented out authorization section under
15
+<location path="elmah.axd"> and make the appropriate changes.

+ 3
- 0
NuGet-server/DataServices/Packages.svc View File

@@ -0,0 +1,3 @@
1
+
2
+
3
+<%@ ServiceHost Language="C#" Factory="System.Data.Services.DataServiceHostFactory, System.Data.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Service="NuGet.Server.DataServices.Packages" %>

+ 31
- 0
NuGet-server/DataServices/Routes.cs View File

@@ -0,0 +1,31 @@
1
+using System.Data.Services;
2
+using System.ServiceModel.Activation;
3
+using System.Web.Routing;
4
+using Ninject;
5
+using NuGet.Server;
6
+using NuGet.Server.DataServices;
7
+using NuGet.Server.Infrastructure;
8
+using RouteMagic;
9
+
10
+[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(NuGet_server.NuGetRoutes), "Start")]
11
+
12
+namespace NuGet_server {
13
+    public static class NuGetRoutes {
14
+        public static void Start() {
15
+            MapRoutes(RouteTable.Routes);
16
+        }
17
+
18
+        private static void MapRoutes(RouteCollection routes) {
19
+            // The default route is http://{root}/nuget/Packages
20
+            var factory = new DataServiceHostFactory();
21
+            var serviceRoute = new ServiceRoute("nuget", factory, typeof(Packages));
22
+            serviceRoute.Defaults = new RouteValueDictionary { { "serviceType", "odata" } };
23
+            serviceRoute.Constraints = new RouteValueDictionary { { "serviceType", "odata" } };
24
+            routes.Add("nuget", serviceRoute);
25
+        }
26
+
27
+        private static PackageService CreatePackageService() {
28
+            return NinjectBootstrapper.Kernel.Get<PackageService>();
29
+        }
30
+    }
31
+}

+ 42
- 0
NuGet-server/Default.aspx View File

@@ -0,0 +1,42 @@
1
+<%@ Page Language="C#" %>
2
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+
4
+<html xmlns="http://www.w3.org/1999/xhtml">
5
+<head id="Head1" runat="server">
6
+    <title>3ie NuGet Private Repository</title>
7
+    <style>
8
+        body { font-family: Calibri; }
9
+    </style>
10
+</head>
11
+<body>
12
+    <div>
13
+        <h2>You are running NuGet.Server v<%= typeof(NuGet.Server.DataServices.Package).Assembly.GetName().Version %></h2>
14
+        <p>
15
+            Click <a href="<%= VirtualPathUtility.ToAbsolute("~/nuget/Packages") %>">here</a> to view your packages.
16
+        </p>
17
+        <fieldset style="width:800px">
18
+            <legend><strong>Repository URLs</strong></legend>
19
+            In the package manager settings, add the following URL to the list of 
20
+            Package Sources:
21
+            <blockquote>
22
+                <strong><%= Helpers.GetRepositoryUrl(Request.Url, Request.ApplicationPath) %></strong>
23
+            </blockquote>
24
+            <% if (String.IsNullOrEmpty(ConfigurationManager.AppSettings["apiKey"])) { %>
25
+            To enable pushing packages to this feed using the nuget command line tool (nuget.exe). Set the api key appSetting in web.config.
26
+            <% } %> 
27
+            <% else { %>
28
+            Use the command below to push packages to this feed using the nuget command line tool (nuget.exe).
29
+            <% } %>
30
+            <blockquote>
31
+                <strong>nuget push {package file} -s <%= Helpers.GetPushUrl(Request.Url, Request.ApplicationPath) %> {apikey}</strong>
32
+            </blockquote>            
33
+        </fieldset>
34
+
35
+        <% if (Request.IsLocal) { %>
36
+        <p style="font-size:1.1em">
37
+            To add packages to the feed put package files (.nupkg files) in the folder "<% = NuGet.Server.Infrastructure.PackageUtility.PackagePhysicalPath%>".
38
+        </p>
39
+        <% } %>
40
+    </div>
41
+</body>
42
+</html>

+ 142
- 0
NuGet-server/NuGet-server.csproj View File

@@ -0,0 +1,142 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4
+  <PropertyGroup>
5
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7
+    <ProductVersion>
8
+    </ProductVersion>
9
+    <SchemaVersion>2.0</SchemaVersion>
10
+    <ProjectGuid>{23F13185-BFE0-435A-8772-36DA53DA5BDA}</ProjectGuid>
11
+    <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
12
+    <OutputType>Library</OutputType>
13
+    <AppDesignerFolder>Properties</AppDesignerFolder>
14
+    <RootNamespace>NuGet_server</RootNamespace>
15
+    <AssemblyName>NuGet-server</AssemblyName>
16
+    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
17
+    <UseIISExpress>true</UseIISExpress>
18
+    <IISExpressSSLPort />
19
+    <IISExpressAnonymousAuthentication />
20
+    <IISExpressWindowsAuthentication />
21
+    <IISExpressUseClassicPipelineMode />
22
+  </PropertyGroup>
23
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
24
+    <DebugSymbols>true</DebugSymbols>
25
+    <DebugType>full</DebugType>
26
+    <Optimize>false</Optimize>
27
+    <OutputPath>bin\</OutputPath>
28
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
29
+    <ErrorReport>prompt</ErrorReport>
30
+    <WarningLevel>4</WarningLevel>
31
+  </PropertyGroup>
32
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
33
+    <DebugType>pdbonly</DebugType>
34
+    <Optimize>true</Optimize>
35
+    <OutputPath>bin\</OutputPath>
36
+    <DefineConstants>TRACE</DefineConstants>
37
+    <ErrorReport>prompt</ErrorReport>
38
+    <WarningLevel>4</WarningLevel>
39
+  </PropertyGroup>
40
+  <ItemGroup>
41
+    <Reference Include="Elmah">
42
+      <HintPath>..\packages\elmah.corelibrary.1.2.2\lib\Elmah.dll</HintPath>
43
+    </Reference>
44
+    <Reference Include="Microsoft.CSharp" />
45
+    <Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
46
+      <Private>True</Private>
47
+      <HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
48
+    </Reference>
49
+    <Reference Include="Microsoft.Web.XmlTransform">
50
+      <HintPath>..\packages\Microsoft.Web.Xdt.2.1.1\lib\net40\Microsoft.Web.XmlTransform.dll</HintPath>
51
+    </Reference>
52
+    <Reference Include="Ninject">
53
+      <HintPath>..\packages\Ninject.3.0.1.10\lib\net45-full\Ninject.dll</HintPath>
54
+    </Reference>
55
+    <Reference Include="NuGet.Core, Version=2.8.60318.667, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
56
+      <SpecificVersion>False</SpecificVersion>
57
+      <HintPath>..\packages\NuGet.Core.2.8.5\lib\net40-Client\NuGet.Core.dll</HintPath>
58
+    </Reference>
59
+    <Reference Include="NuGet.Server">
60
+      <HintPath>..\packages\NuGet.Server.2.8.5\lib\net40\NuGet.Server.dll</HintPath>
61
+    </Reference>
62
+    <Reference Include="RouteMagic">
63
+      <HintPath>..\packages\RouteMagic.1.2\lib\net40\RouteMagic.dll</HintPath>
64
+    </Reference>
65
+    <Reference Include="System.Data.Services" />
66
+    <Reference Include="System.ServiceModel" />
67
+    <Reference Include="System.ServiceModel.Activation" />
68
+    <Reference Include="System.ServiceModel.Web" />
69
+    <Reference Include="System.Web.DynamicData" />
70
+    <Reference Include="System.Web.Entity" />
71
+    <Reference Include="System.Web.ApplicationServices" />
72
+    <Reference Include="System.ComponentModel.DataAnnotations" />
73
+    <Reference Include="System" />
74
+    <Reference Include="System.Data" />
75
+    <Reference Include="System.Core" />
76
+    <Reference Include="System.Data.DataSetExtensions" />
77
+    <Reference Include="System.Web.Extensions" />
78
+    <Reference Include="System.Xml.Linq" />
79
+    <Reference Include="System.Drawing" />
80
+    <Reference Include="System.Web" />
81
+    <Reference Include="System.Xml" />
82
+    <Reference Include="System.Configuration" />
83
+    <Reference Include="System.Web.Services" />
84
+    <Reference Include="System.EnterpriseServices" />
85
+    <Reference Include="WebActivatorEx">
86
+      <HintPath>..\packages\WebActivatorEx.2.0.6\lib\net40\WebActivatorEx.dll</HintPath>
87
+    </Reference>
88
+  </ItemGroup>
89
+  <ItemGroup>
90
+    <Content Include="App_Readme\Elmah.txt" />
91
+    <Content Include="DataServices\Packages.svc" />
92
+    <Content Include="Default.aspx" />
93
+    <Content Include="favicon.ico" />
94
+    <Content Include="Packages\Readme.txt" />
95
+    <Content Include="Web.config" />
96
+  </ItemGroup>
97
+  <ItemGroup>
98
+    <Compile Include="DataServices\Routes.cs" />
99
+    <Compile Include="Properties\AssemblyInfo.cs" />
100
+  </ItemGroup>
101
+  <ItemGroup>
102
+    <Content Include="packages.config" />
103
+    <None Include="Web.Debug.config">
104
+      <DependentUpon>Web.config</DependentUpon>
105
+    </None>
106
+    <None Include="Web.Release.config">
107
+      <DependentUpon>Web.config</DependentUpon>
108
+    </None>
109
+  </ItemGroup>
110
+  <PropertyGroup>
111
+    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
112
+    <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
113
+  </PropertyGroup>
114
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
115
+  <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
116
+  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
117
+  <ProjectExtensions>
118
+    <VisualStudio>
119
+      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
120
+        <WebProjectProperties>
121
+          <UseIIS>True</UseIIS>
122
+          <AutoAssignPort>True</AutoAssignPort>
123
+          <DevelopmentServerPort>50021</DevelopmentServerPort>
124
+          <DevelopmentServerVPath>/</DevelopmentServerVPath>
125
+          <IISUrl>http://localhost:50021/</IISUrl>
126
+          <NTLMAuthentication>False</NTLMAuthentication>
127
+          <UseCustomServer>False</UseCustomServer>
128
+          <CustomServerUrl>
129
+          </CustomServerUrl>
130
+          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
131
+        </WebProjectProperties>
132
+      </FlavorProperties>
133
+    </VisualStudio>
134
+  </ProjectExtensions>
135
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
136
+       Other similar extension points exist, see Microsoft.Common.targets.
137
+  <Target Name="BeforeBuild">
138
+  </Target>
139
+  <Target Name="AfterBuild">
140
+  </Target>
141
+  -->
142
+</Project>

+ 35
- 0
NuGet-server/Properties/AssemblyInfo.cs View File

@@ -0,0 +1,35 @@
1
+using System.Reflection;
2
+using System.Runtime.CompilerServices;
3
+using System.Runtime.InteropServices;
4
+
5
+// General Information about an assembly is controlled through the following 
6
+// set of attributes. Change these attribute values to modify the information
7
+// associated with an assembly.
8
+[assembly: AssemblyTitle("NuGet_server")]
9
+[assembly: AssemblyDescription("")]
10
+[assembly: AssemblyConfiguration("")]
11
+[assembly: AssemblyCompany("")]
12
+[assembly: AssemblyProduct("NuGet_server")]
13
+[assembly: AssemblyCopyright("Copyright ©  2015")]
14
+[assembly: AssemblyTrademark("")]
15
+[assembly: AssemblyCulture("")]
16
+
17
+// Setting ComVisible to false makes the types in this assembly not visible 
18
+// to COM components.  If you need to access a type in this assembly from 
19
+// COM, set the ComVisible attribute to true on that type.
20
+[assembly: ComVisible(false)]
21
+
22
+// The following GUID is for the ID of the typelib if this project is exposed to COM
23
+[assembly: Guid("49d1f785-de2d-440f-86aa-ce548ae7141b")]
24
+
25
+// Version information for an assembly consists of the following four values:
26
+//
27
+//      Major Version
28
+//      Minor Version 
29
+//      Build Number
30
+//      Revision
31
+//
32
+// You can specify all the values or you can default the Revision and Build Numbers 
33
+// by using the '*' as shown below:
34
+[assembly: AssemblyVersion("1.0.0.0")]
35
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 30
- 0
NuGet-server/Web.Debug.config View File

@@ -0,0 +1,30 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+
3
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
4
+
5
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
6
+  <!--
7
+    In the example below, the "SetAttributes" transform will change the value of 
8
+    "connectionString" to use "ReleaseSQLServer" only when the "Match" locator 
9
+    finds an attribute "name" that has a value of "MyDB".
10
+    
11
+    <connectionStrings>
12
+      <add name="MyDB" 
13
+        connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" 
14
+        xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
15
+    </connectionStrings>
16
+  -->
17
+  <system.web>
18
+    <!--
19
+      In the example below, the "Replace" transform will replace the entire 
20
+      <customErrors> section of your web.config file.
21
+      Note that because there is only one customErrors section under the 
22
+      <system.web> node, there is no need to use the "xdt:Locator" attribute.
23
+      
24
+      <customErrors defaultRedirect="GenericError.htm"
25
+        mode="RemoteOnly" xdt:Transform="Replace">
26
+        <error statusCode="500" redirect="InternalError.htm"/>
27
+      </customErrors>
28
+    -->
29
+  </system.web>
30
+</configuration>

+ 31
- 0
NuGet-server/Web.Release.config View File

@@ -0,0 +1,31 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+
3
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
4
+
5
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
6
+  <!--
7
+    In the example below, the "SetAttributes" transform will change the value of 
8
+    "connectionString" to use "ReleaseSQLServer" only when the "Match" locator 
9
+    finds an attribute "name" that has a value of "MyDB".
10
+    
11
+    <connectionStrings>
12
+      <add name="MyDB" 
13
+        connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" 
14
+        xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
15
+    </connectionStrings>
16
+  -->
17
+  <system.web>
18
+    <compilation xdt:Transform="RemoveAttributes(debug)" />
19
+    <!--
20
+      In the example below, the "Replace" transform will replace the entire 
21
+      <customErrors> section of your web.config file.
22
+      Note that because there is only one customErrors section under the 
23
+      <system.web> node, there is no need to use the "xdt:Locator" attribute.
24
+      
25
+      <customErrors defaultRedirect="GenericError.htm"
26
+        mode="RemoteOnly" xdt:Transform="Replace">
27
+        <error statusCode="500" redirect="InternalError.htm"/>
28
+      </customErrors>
29
+    -->
30
+  </system.web>
31
+</configuration>

+ 97
- 0
NuGet-server/Web.config View File

@@ -0,0 +1,97 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+
3
+<!--
4
+  For more information on how to configure your ASP.NET application, please visit
5
+  http://go.microsoft.com/fwlink/?LinkId=169433
6
+  -->
7
+
8
+<configuration>
9
+  <configSections>
10
+    <sectionGroup name="elmah">
11
+      <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/>
12
+      <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah"/>
13
+      <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah"/>
14
+      <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/>
15
+    </sectionGroup>
16
+  </configSections>
17
+    <system.web>
18
+      <compilation debug="true" targetFramework="4.5"/>
19
+      <httpRuntime targetFramework="4.5" maxRequestLength="31457280"/>
20
+    <httpModules>
21
+      <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>
22
+      <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah"/>
23
+      <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/>
24
+    </httpModules></system.web>
25
+
26
+<system.webServer>
27
+    <validation validateIntegratedModeConfiguration="false"/>
28
+    <modules runAllManagedModulesForAllRequests="true">
29
+      <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler"/>
30
+      <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler"/>
31
+      <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler"/>
32
+    </modules>
33
+  <staticContent>
34
+      <mimeMap fileExtension=".nupkg" mimeType="application/zip"/>
35
+    </staticContent></system.webServer><elmah>
36
+    <!--
37
+        See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for 
38
+        more information on remote access and securing ELMAH.
39
+    -->
40
+    <security allowRemoteAccess="false"/>
41
+  <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data"/></elmah><location path="elmah.axd" inheritInChildApplications="false">
42
+    <system.web>
43
+      <httpHandlers>
44
+        <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/>
45
+      </httpHandlers>
46
+      <!-- 
47
+        See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for 
48
+        more information on using ASP.NET authorization securing ELMAH.
49
+
50
+      <authorization>
51
+        <allow roles="admin"/>
52
+        <deny users="*"/>  
53
+      </authorization>
54
+      -->  
55
+    </system.web>
56
+    <system.webServer>
57
+      <handlers>
58
+        <add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode"/>
59
+      </handlers>
60
+    </system.webServer>
61
+  </location><appSettings>
62
+    <!--
63
+            Determines if an Api Key is required to push\delete packages from the server. 
64
+    -->
65
+    <add key="requireApiKey" value="true"/>
66
+    <!-- 
67
+            Set the value here to allow people to push/delete packages from the server.
68
+            NOTE: This is a shared key (password) for all users.
69
+    -->
70
+    <add key="apiKey" value="Piko4242"/>
71
+    <!--
72
+            Change the path to the packages folder. Default is ~/Packages.
73
+            This can be a virtual or physical path.
74
+        -->
75
+    <add key="packagesPath" value=""/>
76
+    <!--
77
+            Set allowOverrideExistingPackageOnPush to false if attempts to upload a package that already exists
78
+            (same id and same version) should fail.
79
+    -->
80
+    <add key="allowOverrideExistingPackageOnPush" value="true"/>
81
+    <!--
82
+            Set enableDelisting to true to enable delist instead of delete as a result of a "nuget delete" command.
83
+            - delete: package is deleted from the repository's local filesystem.
84
+            - delist: 
85
+              - "nuget delete": the "hidden" file attribute of the corresponding nupkg on the repository local filesystem is turned on instead of deleting the file.
86
+              - "nuget list" skips delisted packages, i.e. those that have the hidden attribute set on their nupkg.
87
+              - "nuget install packageid -version version" command will succeed for both listed and delisted packages.
88
+                 e.g. delisted packages can still be downloaded by clients that explicitly specify their version.
89
+    -->
90
+    <add key="enableDelisting" value="false"/>
91
+    <!--
92
+      Set enableFrameworkFiltering to true to enable filtering packages by their supported frameworks during search.
93
+    -->
94
+    <add key="enableFrameworkFiltering" value="false"/>
95
+  </appSettings><system.serviceModel>
96
+    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
97
+  </system.serviceModel></configuration>

BIN
NuGet-server/favicon.ico View File


+ 12
- 0
NuGet-server/packages.config View File

@@ -0,0 +1,12 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<packages>
3
+  <package id="elmah" version="1.2.2" targetFramework="net45" />
4
+  <package id="elmah.corelibrary" version="1.2.2" targetFramework="net45" />
5
+  <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
6
+  <package id="Microsoft.Web.Xdt" version="2.1.1" targetFramework="net45" />
7
+  <package id="Ninject" version="3.0.1.10" targetFramework="net45" />
8
+  <package id="NuGet.Core" version="2.8.5" targetFramework="net45" />
9
+  <package id="NuGet.Server" version="2.8.5" targetFramework="net45" />
10
+  <package id="RouteMagic" version="1.2" targetFramework="net45" />
11
+  <package id="WebActivatorEx" version="2.0.6" targetFramework="net45" />
12
+</packages>

Loading…
Cancel
Save