Skip to content

Commit 929c3f0

Browse files
authored
Include auto-generated assembly metadata (#36)
Use a NuGet.Server.dll type for front page version Don't show the example push command if the API key has not been configured Fix NuGet/NuGetGallery#3656
1 parent 70fe801 commit 929c3f0

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/NuGet.Server.Core/NuGet.Server.Core.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
<Compile Include="Logging\LogLevel.cs" />
9494
<Compile Include="Logging\TraceLogger.cs" />
9595
<Compile Include="Properties\AssemblyInfo.cs" />
96+
<Compile Include="Properties\AssemblyInfo.*.cs" />
9697
<Compile Include="Strings.Designer.cs">
9798
<AutoGen>True</AutoGen>
9899
<DesignTime>True</DesignTime>

src/NuGet.Server.V2/NuGet.Server.V2.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
<Compile Include="OData\Serializers\CustomSerializerProvider.cs" />
102102
<Compile Include="OData\Serializers\NuGetEntityTypeSerializer.cs" />
103103
<Compile Include="Properties\AssemblyInfo.cs" />
104+
<Compile Include="Properties\AssemblyInfo.*.cs" />
104105
</ItemGroup>
105106
<ItemGroup>
106107
<None Include="app.config" />

src/NuGet.Server/Default.aspx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<%@ Page Language="C#" %>
22
<%@ Import Namespace="NuGet.Server" %>
3-
<%@ Import Namespace="NuGet.Server.Core.DataServices" %>
3+
<%@ Import Namespace="NuGet.Server.App_Start" %>
44
<%@ Import Namespace="NuGet.Server.Infrastructure" %>
55
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
66

@@ -13,7 +13,7 @@
1313
</head>
1414
<body>
1515
<div>
16-
<h2>You are running NuGet.Server v<%= typeof(ODataPackage).Assembly.GetName().Version %></h2>
16+
<h2>You are running NuGet.Server v<%= typeof(NuGetODataConfig).Assembly.GetName().Version %></h2>
1717
<p>
1818
Click <a href="<%= VirtualPathUtility.ToAbsolute("~/nuget/Packages") %>">here</a> to view your packages.
1919
</p>
@@ -25,13 +25,13 @@
2525
<strong><%= Helpers.GetRepositoryUrl(Request.Url, Request.ApplicationPath) %></strong>
2626
</blockquote>
2727
<% if (string.IsNullOrEmpty(ConfigurationManager.AppSettings["apiKey"])) { %>
28-
To enable pushing packages to this feed using the <a href="https://www.nuget.org/downloads">NuGet command line tool</a> (nuget.exe), set the api key appSetting in web.config.
28+
To enable pushing packages to this feed using the <a href="https://www.nuget.org/downloads">NuGet command line tool</a> (nuget.exe), set the <code>apiKey</code> appSetting in web.config.
2929
<% } else { %>
3030
Use the command below to push packages to this feed using the <a href="https://www.nuget.org/downloads">NuGet command line tool</a> (nuget.exe).
31-
<% } %>
3231
<blockquote>
3332
<strong>nuget.exe push {package file} {apikey} -Source <%= Helpers.GetPushUrl(Request.Url, Request.ApplicationPath) %></strong>
34-
</blockquote>
33+
</blockquote>
34+
<% } %>
3535
</fieldset>
3636

3737
<% if (Request.IsLocal) { %>

0 commit comments

Comments
 (0)