Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
replace netcoreapp5.0 to net5.0 due to changes in .NET Core SDK v…
Browse files Browse the repository at this point in the history
…5.0.100-preview.2.20176.6
  • Loading branch information
halex2005 committed Apr 15, 2020
1 parent 8f33cdf commit eec5480
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 27 deletions.
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ jobs:
dist: bionic
mono: none
script:
- curl -L https://aka.ms/install-dotnet-preview -o install-dotnet-preview.sh
- "curl -H 'Cache-Control: no-cache' -L https://aka.ms/install-dotnet-preview -o install-dotnet-preview.sh"
- sudo bash install-dotnet-preview.sh

- dotnet new -i ./Content
- dotnet --info

- dotnet new nunit -n CSharpNetCore50 --framework netcoreapp5.0 -lang c#; dotnet test CSharpNetCore50
- dotnet new nunit -n FSharpNetCore50 --framework netcoreapp5.0 -lang f#; dotnet test FSharpNetCore50
- dotnet new nunit -n VBasicNetCore50 --framework netcoreapp5.0 -lang vb; dotnet test VBasicNetCore50
- dotnet new nunit -n CSharpNetCore50 --framework net5.0 -lang c#; dotnet test CSharpNetCore50
- dotnet new nunit -n FSharpNetCore50 --framework net5.0 -lang f#; dotnet test FSharpNetCore50
- dotnet new nunit -n VBasicNetCore50 --framework net5.0 -lang vb; dotnet test VBasicNetCore50

- name: '[ubuntu bionic] Support for Mono'
os: linux
Expand Down Expand Up @@ -198,13 +198,13 @@ jobs:
osx_image: xcode11.2
mono: none
script:
- wget --retry-connrefused --waitretry=1 -O /tmp/dotnet-sdk-5.0.100-osx-x64.pkg https://download.visualstudio.microsoft.com/download/pr/f262d833-69d3-4aa1-bac1-b32075bebed3/474be39cca68cd46d3dc2cc03188f217/dotnet-sdk-5.0.100-preview.1.20155.7-osx-x64.pkg
- wget --retry-connrefused --waitretry=1 -O /tmp/dotnet-sdk-5.0.100-osx-x64.pkg https://download.visualstudio.microsoft.com/download/pr/3ce4af4f-f5d5-406c-a065-2ecc9bcc5fd2/353affd22a0727b476998312738ac35f/dotnet-sdk-5.0.100-preview.2.20176.6-osx-x64.pkg
- sudo installer -pkg /tmp/dotnet-sdk-5.0.100-osx-x64.pkg -target /
- ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/

- dotnet new -i ./Content
- dotnet --info

- dotnet new nunit -n CSharpNetCore50 --framework netcoreapp5.0 -lang c#; dotnet test CSharpNetCore50
- dotnet new nunit -n FSharpNetCore50 --framework netcoreapp5.0 -lang f#; dotnet test FSharpNetCore50
- dotnet new nunit -n VBasicNetCore50 --framework netcoreapp5.0 -lang vb; dotnet test VBasicNetCore50
- dotnet new nunit -n CSharpNetCore50 --framework net5.0 -lang c#; dotnet test CSharpNetCore50
- dotnet new nunit -n FSharpNetCore50 --framework net5.0 -lang f#; dotnet test FSharpNetCore50
- dotnet new nunit -n VBasicNetCore50 --framework net5.0 -lang vb; dotnet test VBasicNetCore50
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"usageExamples": [
"-f net472",
"-f netcoreapp2.1",
"-f netcoreapp5.0"
"-f net5.0"
]
}
10 changes: 7 additions & 3 deletions Content/dotnet-new-nunit-csharp/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"description": "Target netcoreapp3.1"
},
{
"choice": "netcoreapp5.0",
"description": "Target netcoreapp5.0"
"choice": "net5.0",
"description": "Target net5.0"
},
{
"choice": "net35",
Expand Down Expand Up @@ -110,7 +110,7 @@
}
],
"replaces": "netcoreapp2.1",
"defaultValue": "netcoreapp5.0"
"defaultValue": "net5.0"
},
"DotNetFramework": {
"type": "computed",
Expand All @@ -132,6 +132,10 @@
"type": "computed",
"value": "(Framework >= \"netcoreapp2.1\" && Framework <= \"netcoreapp9\")"
},
"DotNetCoreGreaterOrEqualThan50": {
"type": "computed",
"value": "(Framework >= \"net5.0\" && Framework < \"net9.0\")"
},
"EnablePack": {
"type": "parameter",
"datatype": "bool",
Expand Down
2 changes: 2 additions & 0 deletions Content/dotnet-new-nunit-csharp/Company.TestProject1.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" Condition="$(DotNetCoreLessThan21)" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" Condition="$(DotNetCoreGreaterOrEqualThan21)" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" Condition="$(DotNetCoreGreaterOrEqualThan50)" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" Condition="$(DotNetFramework)" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" Condition="$(DotNetCoreLessThan20)"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" Condition="$(DotNetCoreGreaterOrEqualThan20)"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" Condition="$(DotNetCoreGreaterOrEqualThan50)"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" Condition="$(DotNetFramework)"/>
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"usageExamples": [
"-f net472",
"-f netcoreapp2.1",
"-f netcoreapp5.0"
"-f net5.0"
]
}
10 changes: 7 additions & 3 deletions Content/dotnet-new-nunit-fsharp/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"description": "Target netcoreapp3.1"
},
{
"choice": "netcoreapp5.0",
"description": "Target netcoreapp5.0"
"choice": "net5.0",
"description": "Target net5.0"
},
{
"choice": "net35",
Expand Down Expand Up @@ -110,7 +110,7 @@
}
],
"replaces": "netcoreapp2.1",
"defaultValue": "netcoreapp5.0"
"defaultValue": "net5.0"
},
"DotNetFramework": {
"type": "computed",
Expand All @@ -132,6 +132,10 @@
"type": "computed",
"value": "(Framework >= \"netcoreapp2.1\" && Framework <= \"netcoreapp9\")"
},
"DotNetCoreGreaterOrEqualThan50": {
"type": "computed",
"value": "(Framework >= \"net5.0\" && Framework < \"net9.0\")"
},
"EnablePack": {
"type": "parameter",
"datatype": "bool",
Expand Down
2 changes: 2 additions & 0 deletions Content/dotnet-new-nunit-fsharp/Company.TestProject1.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" Condition="$(DotNetCoreLessThan21)" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" Condition="$(DotNetCoreGreaterOrEqualThan21)" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" Condition="$(DotNetCoreGreaterOrEqualThan50)" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" Condition="$(DotNetFramework)" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" Condition="$(DotNetCoreLessThan20)"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" Condition="$(DotNetCoreGreaterOrEqualThan20)"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" Condition="$(DotNetCoreGreaterOrEqualThan50)"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" Condition="$(DotNetFramework)"/>
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"usageExamples": [
"-f net472",
"-f netcoreapp2.1",
"-f netcoreapp5.0"
"-f net5.0"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"description": "Target netcoreapp3.1"
},
{
"choice": "netcoreapp5.0",
"description": "Target netcoreapp5.0"
"choice": "net5.0",
"description": "Target net5.0"
},
{
"choice": "net35",
Expand Down Expand Up @@ -110,7 +110,7 @@
}
],
"replaces": "netcoreapp2.1",
"defaultValue": "netcoreapp5.0"
"defaultValue": "net5.0"
},
"DotNetFramework": {
"type": "computed",
Expand All @@ -132,6 +132,10 @@
"type": "computed",
"value": "(Framework >= \"netcoreapp2.1\" && Framework <= \"netcoreapp9\")"
},
"DotNetCoreGreaterOrEqualThan50": {
"type": "computed",
"value": "(Framework >= \"net5.0\" && Framework < \"net9.0\")"
},
"EnablePack": {
"type": "parameter",
"datatype": "bool",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" Condition="$(DotNetCoreLessThan21)" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" Condition="$(DotNetCoreGreaterOrEqualThan21)" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" Condition="$(DotNetCoreGreaterOrEqualThan50)" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" Condition="$(DotNetFramework)" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" Condition="$(DotNetCoreLessThan20)"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" Condition="$(DotNetCoreGreaterOrEqualThan20)"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" Condition="$(DotNetCoreGreaterOrEqualThan50)"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" Condition="$(DotNetFramework)"/>
</ItemGroup>

Expand Down
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ for:
- nuget pack nunit-template.nuspec

- appveyor DownloadFile https://dot.net/v1/dotnet-install.ps1
- powershell -NoProfile -NoLogo -ExecutionPolicy Unrestricted -Command ".\dotnet-install.ps1 --Version 5.0.100-preview.1.20155.7"
- powershell -NoProfile -NoLogo -ExecutionPolicy Unrestricted -Command ".\dotnet-install.ps1 --Version 5.0.100-preview.2.20176.6"

- '"%USERPROFILE%\\AppData\\Local\\Microsoft\\dotnet\\dotnet" new -i ./Content'
- '"%USERPROFILE%\\AppData\\Local\\Microsoft\\dotnet\\dotnet" --info'

- '"%USERPROFILE%\\AppData\\Local\\Microsoft\\dotnet\\dotnet" new nunit -n CSharpNetCore50 --framework netcoreapp5.0 -lang c#'
- '"%USERPROFILE%\\AppData\\Local\\Microsoft\\dotnet\\dotnet" new nunit -n FSharpNetCore50 --framework netcoreapp5.0 -lang f#'
- '"%USERPROFILE%\\AppData\\Local\\Microsoft\\dotnet\\dotnet" new nunit -n VBasicNetCore50 --framework netcoreapp5.0 -lang vb'
- '"%USERPROFILE%\\AppData\\Local\\Microsoft\\dotnet\\dotnet" new nunit -n CSharpNetCore50 --framework net5.0 -lang c#'
- '"%USERPROFILE%\\AppData\\Local\\Microsoft\\dotnet\\dotnet" new nunit -n FSharpNetCore50 --framework net5.0 -lang f#'
- '"%USERPROFILE%\\AppData\\Local\\Microsoft\\dotnet\\dotnet" new nunit -n VBasicNetCore50 --framework net5.0 -lang vb'

test_script:
- '"%USERPROFILE%\\AppData\\Local\\Microsoft\\dotnet\\dotnet" test CSharpNetCore50'
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
15 April 2020, v1.8.1
---------------------

- replace `netcoreapp5.0` to `net5.0` due to changes in 5.0.100-preview.2.20176.6 version of .NET Core SDK
(https://github.com/nunit/dotnet-new-nunit/issues/38)

26 March 2020, v1.8.0
---------------------

Expand Down
6 changes: 3 additions & 3 deletions nunit-template.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>NUnit3.DotNetNew.Template</id>
<title>NUnit 3 template for dotnet-new</title>
<version>1.8.0</version>
<version>1.8.1</version>
<description>Project and item templates containing basic NUnit 3 Test Project.</description>
<tags>NUnit dotnet</tags>
<authors>akharlov</authors>
Expand All @@ -19,8 +19,8 @@
- NUnit v3.12.0
- NUnit3TestAdapter v3.16.1
- Microsoft.NET.Test.Sdk v16.5.0
- add new `--framework` supported parameters: netcoreapp5.0
- update all project templates to default to netcoreapp5.0. Other frameworks can still be selected with the `--framework` command line option.
- add new `--framework` supported parameters: net5.0
- update all project templates to default to net5.0. Other frameworks can still be selected with the `--framework` command line option.
</releaseNotes>
</metadata>
<files>
Expand Down

0 comments on commit eec5480

Please sign in to comment.