@@ -34,7 +34,7 @@ let systemSqlProject = {|
3434 testProjectsSlnPath = makeRootPath " TestProjects.sln"
3535 testSlnPath = makeRootPath " Tests.sln"
3636 testProjectPath = makeRootPath " tests/SqlClient.Tests/SqlClient.Tests.fsproj"
37-
37+ nugetSpec = " nuget/SqlClient.nuspec "
3838|}
3939let microsoftSqlProject = {|
4040 runtime = " FSharp.Data.MicrosoftSqlClient"
@@ -43,6 +43,7 @@ let microsoftSqlProject = {|
4343 testProjectsSlnPath = makeRootPath " MicrosoftTestProjects.sln"
4444 testSlnPath = makeRootPath " MicrosoftTests.sln"
4545 testProjectPath = makeRootPath " tests/SqlClient.Tests/MicrosoftSqlClient.Tests.fsproj"
46+ nugetSpec = " nuget/MicrosoftSqlClient.nuspec"
4647|}
4748
4849let projects = [ systemSqlProject; microsoftSqlProject]
@@ -351,21 +352,22 @@ Target.create "NuGet" (fun _ ->
351352 let description = description.Replace( " \r " , " " ) .Replace( " \n " , " " ) .Replace( " " , " " )
352353 let nugetPath = " packages/build/NuGet.CommandLine/tools/NuGet.exe"
353354
354- Fake.DotNet.NuGet.NuGet.NuGet ( fun p ->
355- { p with
356- Authors = authors
357- Project = systemSqlProject.runtime
358- Summary = summary
359- Description = description
360- Version = version
361- ReleaseNotes = releaseNotes
362- Tags = tags
363- OutputPath = " nuget"
364- ToolPath = nugetPath
365- AccessKey = Fake.Core.Environment.environVarOrDefault " nugetkey" " "
366- Publish = Fake.Core.Environment.hasEnvironVar " nugetkey"
367- Dependencies = [] })
368- " nuget/SqlClient.nuspec"
355+ for entry in projects do
356+ Fake.DotNet.NuGet.NuGet.NuGet ( fun p ->
357+ { p with
358+ Authors = authors
359+ Project = entry.runtime
360+ Summary = summary
361+ Description = description
362+ Version = version
363+ ReleaseNotes = releaseNotes
364+ Tags = tags
365+ OutputPath = " nuget"
366+ ToolPath = nugetPath
367+ AccessKey = Fake.Core.Environment.environVarOrDefault " nugetkey" " "
368+ Publish = Fake.Core.Environment.hasEnvironVar " nugetkey"
369+ Dependencies = [] })
370+ entry.nugetSpec
369371)
370372
371373// --------------------------------------------------------------------------------------
0 commit comments