Skip to content

Commit d245ded

Browse files
committed
Produce fake nupkg for testing
1 parent 9982e73 commit d245ded

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

makefile.shade

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
default BASE_DIR_LOCAL='${Directory.GetCurrentDirectory()}'
2+
default BUILD_DIR_LOCAL='${Path.Combine(BASE_DIR_LOCAL, "artifacts", "build")}'
3+
var VERSION='0.1'
4+
var FULL_VERSION='0.1'
5+
6+
use-standard-lifecycle
7+
k-standard-goals
8+
9+
#make-nupkg target='package'
10+
log info='Make nuget package containing ASP.NET Core Module'
11+
@{
12+
var nugetExePath = Environment.GetEnvironmentVariable("KOREBUILD_NUGET_EXE");
13+
if (string.IsNullOrEmpty(nugetExePath))
14+
{
15+
nugetExePath = Path.Combine(BASE_DIR_LOCAL, ".build", "nuget.exe");
16+
}
17+
18+
var nuspecPath = Path.Combine(BASE_DIR_LOCAL, "nuget", "AspNetCore.nuspec");
19+
ExecClr(nugetExePath, "pack " + nuspecPath + " -OutputDirectory " + BUILD_DIR_LOCAL + " -prop VERSION=1.0.0-" + BuildNumber);
20+
}

nuget/AspNetCore.nuspec

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0"?>
2+
<package>
3+
<metadata>
4+
<id>Microsoft.AspNetCore.AspNetCoreModule</id>
5+
<title>Microsoft ASP.NET Core Module</title>
6+
<version>$VERSION$</version>
7+
<authors>Microsoft</authors>
8+
<owners>Microsoft</owners>
9+
<licenseUrl>http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm</licenseUrl>
10+
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
11+
<projectUrl>http://www.asp.net/</projectUrl>
12+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
13+
<description>ASP.NET Core Module</description>
14+
<language>en-US</language>
15+
</metadata>
16+
<files>
17+
<file src="..\artifacts\build\AspNetCore\bin\**" target="ancm\" />
18+
</files>
19+
</package>

src/AspNetCore/AspNetCore.vcxproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,11 @@
231231
<ItemGroup>
232232
<None Include="Source.def" />
233233
</ItemGroup>
234+
<ItemGroup>
235+
<Content Include="aspnetcore_schema.xml">
236+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
237+
</Content>
238+
</ItemGroup>
234239
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
235240
<ImportGroup Label="ExtensionTargets">
236241
</ImportGroup>

0 commit comments

Comments
 (0)