File tree 4 files changed +28
-12
lines changed
4 files changed +28
-12
lines changed Original file line number Diff line number Diff line change 1
1
# ---------------------------------#
2
2
# Build Image #
3
3
# ---------------------------------#
4
- image : Visual Studio 2017
4
+ image : Visual Studio 2022
5
5
6
6
# ---------------------------------#
7
- # Build Script #
7
+ # Install .NET #
8
8
# ---------------------------------#
9
9
install :
10
- # Update to latest NuGet version since we require 5.3.0 for embedded icon
11
- - ps : nuget update -self
10
+ - ps : $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
11
+ - ps : mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
12
+ - ps : Invoke-WebRequest -Uri "https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
13
+ - ps : ' & "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 2.1.818 -InstallDir $env:DOTNET_INSTALL_DIR'
14
+ - ps : ' & "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 3.1.414 -InstallDir $env:DOTNET_INSTALL_DIR'
15
+ - ps : ' & "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 5.0.402 -InstallDir $env:DOTNET_INSTALL_DIR'
16
+ - ps : ' & "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 6.0.100 -InstallDir $env:DOTNET_INSTALL_DIR'
17
+ - ps : $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
18
+ - ps : dotnet --info
12
19
20
+ # ---------------------------------#
21
+ # Build Script #
22
+ # ---------------------------------#
13
23
build_script :
14
24
- ps : .\build.ps1 -Target AppVeyor
15
25
Original file line number Diff line number Diff line change 18
18
</metadata >
19
19
<files >
20
20
<file src =" ..\..\..\..\nuspec\nuget\icon.png" target =" " />
21
- <file src =" netstandard2.0\Cake.Npm.dll" target =" lib\netstandard2.0" />
22
- <file src =" netstandard2.0\Cake.Npm.pdb" target =" lib\netstandard2.0" />
23
- <file src =" netstandard2.0\Cake.Npm.xml" target =" lib\netstandard2.0" />
21
+ <file src =" netcoreapp3.1\Cake.Npm.dll" target =" lib\netcoreapp3.1" />
22
+ <file src =" netcoreapp3.1\Cake.Npm.pdb" target =" lib\netcoreapp3.1" />
23
+ <file src =" netcoreapp3.1\Cake.Npm.xml" target =" lib\netcoreapp3.1" />
24
+ <file src =" net5.0\Cake.Npm.dll" target =" lib\net5.0" />
25
+ <file src =" net5.0\Cake.Npm.pdb" target =" lib\net5.0" />
26
+ <file src =" net5.0\Cake.Npm.xml" target =" lib\net5.0" />
27
+ <file src =" net6.0\Cake.Npm.dll" target =" lib\net6.0" />
28
+ <file src =" net6.0\Cake.Npm.pdb" target =" lib\net6.0" />
29
+ <file src =" net6.0\Cake.Npm.xml" target =" lib\net6.0" />
24
30
</files >
25
31
</package >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp2.0</ TargetFramework >
4
+ <TargetFrameworks >netcoreapp3.1;net5.0;net6.0</ TargetFrameworks >
5
5
<GenerateAssemblyVersionAttribute >false</GenerateAssemblyVersionAttribute >
6
6
<GenerateAssemblyFileVersionAttribute >false</GenerateAssemblyFileVersionAttribute >
7
7
<GenerateAssemblyInformationalVersionAttribute >false</GenerateAssemblyInformationalVersionAttribute >
10
10
</PropertyGroup >
11
11
12
12
<ItemGroup >
13
- <PackageReference Include =" Cake.Core" Version =" 1 .0.0" />
14
- <PackageReference Include =" Cake.Testing" Version =" 1 .0.0" />
13
+ <PackageReference Include =" Cake.Core" Version =" 2 .0.0" />
14
+ <PackageReference Include =" Cake.Testing" Version =" 2 .0.0" />
15
15
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.0.1" />
16
16
<PackageReference Include =" Shouldly" Version =" 3.0.2" />
17
17
<PackageReference Include =" xunit" Version =" 2.4.1" />
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netstandard2.0</ TargetFramework >
4
+ <TargetFrameworks >netcoreapp3.1;net5.0;net6.0</ TargetFrameworks >
5
5
<AssemblyName >Cake.Npm</AssemblyName >
6
6
<RootNamespace >Cake.Npm</RootNamespace >
7
7
<GenerateAssemblyVersionAttribute >false</GenerateAssemblyVersionAttribute >
21
21
</PropertyGroup >
22
22
23
23
<ItemGroup >
24
- <PackageReference Include =" Cake.Core" Version =" 1 .0.0" PrivateAssets =" All" />
24
+ <PackageReference Include =" Cake.Core" Version =" 2 .0.0" PrivateAssets =" All" />
25
25
</ItemGroup >
26
26
</Project >
You can’t perform that action at this time.
0 commit comments