|
4 | 4 | using Nuke.Common.IO; |
5 | 5 | using Nuke.Common.Tooling; |
6 | 6 | using Nuke.Common.Tools.DotNet; |
7 | | -using Nuke.Common.Tools.NuGet; |
8 | 7 | using static Nuke.Common.Tools.DotNet.DotNetTasks; |
9 | 8 | using static Helpers; |
10 | | -using static Nuke.Common.Tools.NuGet.NuGetTasks; |
11 | 9 |
|
12 | 10 | partial class Build |
13 | 11 | { |
@@ -68,14 +66,14 @@ partial class Build |
68 | 66 | .Produces(PackageDirectory / "*.snupkg") |
69 | 67 | .Executes(() => |
70 | 68 | { |
71 | | - var projFile = File.ReadAllText(EmptyServer12Proj); |
72 | | - File.WriteAllText(EmptyServer12Proj, projFile.Replace("14.0.0-preview.build.0", SemVersion)); |
73 | | - |
74 | | - projFile = File.ReadAllText(EmptyAzf12Proj); |
75 | | - File.WriteAllText(EmptyAzf12Proj, projFile.Replace("14.0.0-preview.build.0", SemVersion)); |
| 69 | + var projFile = File.ReadAllText(EmptyAzf12Proj); |
| 70 | + File.WriteAllText(EmptyAzf12Proj, projFile.Replace("0.0.0-placeholder", SemVersion)); |
76 | 71 |
|
77 | 72 | projFile = File.ReadAllText(Gateway13Proj); |
78 | | - File.WriteAllText(Gateway13Proj, projFile.Replace("14.0.0-preview.build.0", SemVersion)); |
| 73 | + File.WriteAllText(Gateway13Proj, projFile.Replace("0.0.0-placeholder", SemVersion)); |
| 74 | + |
| 75 | + projFile = File.ReadAllText(EmptyServer12Proj); |
| 76 | + File.WriteAllText(EmptyServer12Proj, projFile.Replace("0.0.0-placeholder", SemVersion)); |
79 | 77 |
|
80 | 78 | DotNetBuildSonarSolution( |
81 | 79 | PackSolutionFile, |
@@ -108,11 +106,11 @@ partial class Build |
108 | 106 | .SetAssemblyVersion(Version) |
109 | 107 | .SetVersion(SemVersion)); |
110 | 108 |
|
111 | | - NuGetPack(c => c |
112 | | - .SetVersion(SemVersion) |
113 | | - .SetOutputDirectory(PackageDirectory) |
| 109 | + DotNetPack(c => c |
| 110 | + .SetProject(TemplatesProj) |
114 | 111 | .SetConfiguration(Configuration) |
115 | | - .CombineWith(t => t.SetTargetPath(TemplatesNuSpec))); |
| 112 | + .SetOutputDirectory(PackageDirectory) |
| 113 | + .SetVersion(SemVersion)); |
116 | 114 | }); |
117 | 115 |
|
118 | 116 | Target Publish => _ => _ |
|
0 commit comments