File tree Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 231
231
<ItemGroup >
232
232
<None Include =" Source.def" />
233
233
</ItemGroup >
234
+ <ItemGroup >
235
+ <Content Include =" aspnetcore_schema.xml" >
236
+ <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
237
+ </Content >
238
+ </ItemGroup >
234
239
<Import Project =" $(VCTargetsPath)\Microsoft.Cpp.targets" />
235
240
<ImportGroup Label =" ExtensionTargets" >
236
241
</ImportGroup >
You can’t perform that action at this time.
0 commit comments