Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
16 changes: 16 additions & 0 deletions package/Microsoft.Azure.Functions.PowerShellWorker.Package.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!--
Copyright (c) Microsoft. All rights reserved.
Licensed under the MIT license. See LICENSE file in the project root for full license information.
-->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<NoBuild>true</NoBuild>
<IncludeBuildOutput>false</IncludeBuildOutput>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>NU5100;NU5123</NoWarn>

<NuspecFile>Microsoft.Azure.Functions.PowerShellWorker.nuspec</NuspecFile>
<NuspecProperties>configuration=$(Configuration);targetFramework=$(TargetFramework)</NuspecProperties>
</PropertyGroup>
</Project>
30 changes: 30 additions & 0 deletions package/Microsoft.Azure.Functions.PowerShellWorker.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) Microsoft. All rights reserved.
Licensed under the MIT license. See LICENSE file in the project root for full license information.
-->
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>Microsoft.Azure.Functions.PowerShellWorker</id>
<version>0.1.0</version>
<title>Azure Function PowerShell Language Worker</title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://github.com/Azure/azure-functions-powershell-worker/blob/dev/LICENSE</licenseUrl>
<projectUrl>https://github.com/Azure/azure-functions-powershell-worker</projectUrl>
<iconUrl>https://github.com/PowerShell/PowerShell/blob/master/assets/Powershell_black_64.png?raw=true</iconUrl>
<description>The Azure Function PowerShell Language Worker allows users to write Azure Function Apps using PowerShell. It leverages the PowerShell Core SDK.</description>
<releaseNotes># 0.1.0

Initial Release</releaseNotes>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<tags>azure,functions,powershell,worker</tags>
<contentFiles>
<files include="**\*" buildAction="None" copyToOutput="true" flatten="false"/>
</contentFiles>
</metadata>
<files>
<file src="..\src\bin\$configuration$\$targetFramework$\publish\**\*" target="contentFiles\any\any\workers\powershell" />
</files>
</package>
25 changes: 0 additions & 25 deletions src/Microsoft.Azure.Functions.PowerShellWorker.Package.props

This file was deleted.

6 changes: 2 additions & 4 deletions src/Microsoft.Azure.Functions.PowerShellWorker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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.
-->
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="Microsoft.Azure.Functions.PowerShellWorker.Package.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<Product>Azure Function PowerShell Language Worker</Product>
<AssemblyName>Microsoft.Azure.Functions.PowerShellWorker</AssemblyName>

<LangVersion>Latest</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeBuildOutput>true</IncludeBuildOutput>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<NeutralLanguage>en-US</NeutralLanguage>
</PropertyGroup>
Expand All @@ -35,5 +34,4 @@ Licensed under the MIT license. See LICENSE file in the project root for full li
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

</Project>