Skip to content

Commit 7faeea5

Browse files
Nugetize (#26)
* nugetize the worker * Assert.Equal to Assert.Single * Added PackageCopyToOutput * Add new line at end * added Product
1 parent 274e079 commit 7faeea5

File tree

3 files changed

+38
-10
lines changed

3 files changed

+38
-10
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!--
2+
Copyright (c) Microsoft. All rights reserved.
3+
Licensed under the MIT license. See LICENSE file in the project root for full license information.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<Version>0.1.0</Version>
8+
<PackageId>Azure.Functions.PowerShell.Worker</PackageId>
9+
<Authors>Microsoft</Authors>
10+
<Owners>Microsoft</Owners>
11+
<Company>Microsoft Corporation</Company>
12+
<Description>The Azure Function PowerShell Language Worker allows users to write Azure Function Apps using PowerShell. It leverages the PowerShell Core SDK.</Description>
13+
<Title>Azure Function PowerShell Language Worker</Title>
14+
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
15+
<PackageLicenseUrl>https://github.com/Azure/azure-functions-powershell-worker/blob/dev/LICENSE</PackageLicenseUrl>
16+
<PackageProjectUrl>https://github.com/Azure/azure-functions-powershell-worker</PackageProjectUrl>
17+
<PackageIconUrl>https://github.com/PowerShell/PowerShell/blob/master/assets/Powershell_64.png</PackageIconUrl>
18+
<PackageTags>azure,functions,powershell,worker</PackageTags>
19+
<PackageReleaseNotes>
20+
# 0.1.0
21+
22+
Initial Release
23+
</PackageReleaseNotes>
24+
</PropertyGroup>
25+
</Project>
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1+
<!--
2+
Copyright (c) Microsoft. All rights reserved.
3+
Licensed under the MIT license. See LICENSE file in the project root for full license information.
4+
-->
15
<Project Sdk="Microsoft.NET.Sdk">
2-
6+
<Import Project="Azure.Functions.PowerShell.Worker.Package.props" />
37
<PropertyGroup>
48
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp2.1</TargetFramework>
9+
<TargetFramework>netcoreapp2.1</TargetFramework>
610
<Product>Azure Function PowerShell Language Worker</Product>
7-
<Company>Microsoft Corporation</Company>
8-
<Copyright>(c) Microsoft Corporation. All rights reserved.</Copyright>
9-
1011
<LangVersion>Latest</LangVersion>
1112
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1213
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
1314
<GenerateDocumentationFile>true</GenerateDocumentationFile>
15+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
16+
<IncludeBuildOutput>true</IncludeBuildOutput>
1417
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
1518
<NeutralLanguage>en-US</NeutralLanguage>
1619
</PropertyGroup>
@@ -24,13 +27,13 @@
2427
</ItemGroup>
2528

2629
<ItemGroup>
27-
<None Include="worker.config.json">
30+
<Content Include="worker.config.json" PackageCopyToOutput="true">
2831
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
29-
</None>
30-
<None Include="Modules\**">
32+
</Content>
33+
<Content Include="Modules\**" PackageCopyToOutput="true">
3134
<Link>Modules\%(RecursiveDir)\%(FileName)%(Extension)</Link>
3235
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
33-
</None>
36+
</Content>
3437
</ItemGroup>
3538

3639
</Project>

test/Function/FunctionLoaderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public void TestFunctionLoaderGetInfo()
127127
Assert.Equal(directory, funcInfo.Directory);
128128
Assert.Equal(name, funcInfo.FunctionName);
129129
Assert.Equal(2, funcInfo.AllBindings.Count);
130-
Assert.Equal(1, funcInfo.OutBindings.Count);
130+
Assert.Single(funcInfo.OutputBindings);
131131
}
132132
}
133133
}

0 commit comments

Comments
 (0)