diff --git a/README.md b/README.md index 583f3b72..5fa2a145 100644 --- a/README.md +++ b/README.md @@ -111,3 +111,22 @@ dotnet ./src/WebJobs.Script.WebHost/bin/Debug/netcoreapp2.1/Microsoft.Azure.WebJ > Note: Remember to remove `"AzureWebJobsScriptRoot"` environment variable after you have finished debugging, because it will also influence the `func` CLI tool. + +### Packaging + +To package the PowerShell Language Worker as a nupkg, do the following: + +* `cd azure-functions-powershell-worker` +* `dotnet publish` +* `cd package` +* `dotnet pack` + +That will place a `Microsoft.Azure.Functions.PowerShellWorker.*.nupkg` in: + +`azure-functions-powershell-worker/package/bin/Debug` + +It pulls the contents of the publish folder in: + +`azure-functions-powershell-worker/src/bin/Debug/netcoreapp2.1/publish` + +if you specify a different Configuration or TargetFramework that will be honored. diff --git a/package/Microsoft.Azure.Functions.PowerShellWorker.Package.csproj b/package/Microsoft.Azure.Functions.PowerShellWorker.Package.csproj new file mode 100644 index 00000000..3527e813 --- /dev/null +++ b/package/Microsoft.Azure.Functions.PowerShellWorker.Package.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + true + false + true + NU5100;NU5123 + + Microsoft.Azure.Functions.PowerShellWorker.nuspec + configuration=$(Configuration);targetFramework=$(TargetFramework) + + diff --git a/package/Microsoft.Azure.Functions.PowerShellWorker.nuspec b/package/Microsoft.Azure.Functions.PowerShellWorker.nuspec new file mode 100644 index 00000000..a4461327 --- /dev/null +++ b/package/Microsoft.Azure.Functions.PowerShellWorker.nuspec @@ -0,0 +1,30 @@ + + + + + Microsoft.Azure.Functions.PowerShellWorker + 0.1.0 + Azure Function PowerShell Language Worker + Microsoft + Microsoft + false + https://github.com/Azure/azure-functions-powershell-worker/blob/dev/LICENSE + https://github.com/Azure/azure-functions-powershell-worker + https://github.com/PowerShell/PowerShell/blob/master/assets/Powershell_black_64.png?raw=true + The Azure Function PowerShell Language Worker allows users to write Azure Function Apps using PowerShell. It leverages the PowerShell Core SDK. + # 0.1.0 + + Initial Release + © Microsoft Corporation. All rights reserved. + azure,functions,powershell,worker + + + + + + + + diff --git a/src/Microsoft.Azure.Functions.PowerShellWorker.Package.props b/src/Microsoft.Azure.Functions.PowerShellWorker.Package.props deleted file mode 100644 index 8e2e6741..00000000 --- a/src/Microsoft.Azure.Functions.PowerShellWorker.Package.props +++ /dev/null @@ -1,25 +0,0 @@ - - - - 0.1.0 - Microsoft.Azure.Functions.PowerShellWorker - Microsoft - Microsoft - Microsoft Corporation - The Azure Function PowerShell Language Worker allows users to write Azure Function Apps using PowerShell. It leverages the PowerShell Core SDK. - Azure Function PowerShell Language Worker - © Microsoft Corporation. All rights reserved. - https://github.com/Azure/azure-functions-powershell-worker/blob/dev/LICENSE - https://github.com/Azure/azure-functions-powershell-worker - https://github.com/PowerShell/PowerShell/blob/master/assets/Powershell_64.png - azure,functions,powershell,worker - - # 0.1.0 - - Initial Release - - - diff --git a/src/Microsoft.Azure.Functions.PowerShellWorker.csproj b/src/Microsoft.Azure.Functions.PowerShellWorker.csproj index a017c0df..851623f8 100644 --- a/src/Microsoft.Azure.Functions.PowerShellWorker.csproj +++ b/src/Microsoft.Azure.Functions.PowerShellWorker.csproj @@ -3,17 +3,16 @@ Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information. --> - Exe netcoreapp2.1 Azure Function PowerShell Language Worker + Microsoft.Azure.Functions.PowerShellWorker + Latest true false true - true - true true en-US @@ -35,5 +34,4 @@ Licensed under the MIT license. See LICENSE file in the project root for full li PreserveNewest -