Skip to content

Commit a2261fb

Browse files
authored
Move to .NET Core 2.1 SDK (#367)
1 parent a3811aa commit a2261fb

7 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ On macOS if you installed via `brew`
8484

8585
Copy the result of the `publish` directory into a `powershell` folder under `workers`:
8686
```powershell
87-
Copy-Item -Recurse -Force ./src/bin/Debug/netcoreapp2.2/publish/ "/usr/local/Cellar/azure-functions-core-tools/$(func --version)/workers/powershell"
87+
Copy-Item -Recurse -Force ./src/bin/Debug/netcoreapp2.1/publish/ "/usr/local/Cellar/azure-functions-core-tools/$(func --version)/workers/powershell"
8888
```
8989

9090
> NOTE: if the powershell folder already exists, you should delete it or debugging won't work.

azure-pipelines-1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ steps:
3434

3535
- pwsh: |
3636
$null = New-Item -Path ./E2ETestArtifacts -ItemType Directory -Force
37-
Compress-Archive -Path ./src/bin/Release/netcoreapp2.2/publish/* -DestinationPath ./E2ETestArtifacts/powershellworker.zip -Verbose
37+
Compress-Archive -Path ./src/bin/Release/netcoreapp2.1/publish/* -DestinationPath ./E2ETestArtifacts/powershellworker.zip -Verbose
3838
Compress-Archive -Path ./test/E2E/TestFunctionApp/* -DestinationPath ./E2ETestArtifacts/e2etestspowershell.zip -Verbose
3939
displayName: 'Create test app zip file'
4040

package/Microsoft.Azure.Functions.PowerShellWorker.Package.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Licensed under the MIT license. See LICENSE file in the project root for full li
55
<Project Sdk="Microsoft.NET.Sdk">
66
<Import Project="..\PowerShellWorker.Common.props" />
77
<PropertyGroup>
8-
<TargetFramework>netcoreapp2.2</TargetFramework>
8+
<TargetFramework>netcoreapp2.1</TargetFramework>
99
<NoBuild>true</NoBuild>
1010
<IncludeBuildOutput>false</IncludeBuildOutput>
1111
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

src/Microsoft.Azure.Functions.PowerShellWorker.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Licensed under the MIT license. See LICENSE file in the project root for full li
66
<Import Project="..\PowerShellWorker.Common.props" />
77
<PropertyGroup>
88
<OutputType>Exe</OutputType>
9-
<TargetFramework>netcoreapp2.2</TargetFramework>
9+
<TargetFramework>netcoreapp2.1</TargetFramework>
1010
<TieredCompilation>true</TieredCompilation>
1111
<Product>Azure Function PowerShell Language Worker</Product>
1212
<AssemblyName>Microsoft.Azure.Functions.PowerShellWorker</AssemblyName>

test/E2E/Start-E2ETest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Write-Host "Copying azure-functions-powershell-worker to Functions Host workers
4141

4242
$configuration = if ($env:CONFIGURATION) { $env:CONFIGURATION } else { 'Debug' }
4343
Remove-Item -Recurse -Force -Path "$FUNC_CLI_DIRECTORY/workers/powershell"
44-
Copy-Item -Recurse -Force "$PSScriptRoot/../../src/bin/$configuration/netcoreapp2.2/publish/" "$FUNC_CLI_DIRECTORY/workers/powershell"
44+
Copy-Item -Recurse -Force "$PSScriptRoot/../../src/bin/$configuration/netcoreapp2.1/publish/" "$FUNC_CLI_DIRECTORY/workers/powershell"
4545

4646
Write-Host "Staring Functions Host..."
4747

test/Unit/Microsoft.Azure.Functions.PowerShellWorker.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="..\..\PowerShellWorker.Common.props" />
33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.2</TargetFramework>
4+
<TargetFramework>netcoreapp2.1</TargetFramework>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

tools/helper.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function Install-Dotnet {
4949
[CmdletBinding()]
5050
param(
5151
[string]$Channel = 'release',
52-
[string]$Version = '2.2.102'
52+
[string]$Version = '2.1.401'
5353
)
5454

5555
try {

0 commit comments

Comments
 (0)