Skip to content

Commit 02e3862

Browse files
committed
downgrade packages, target .net 5 , following cake plugin guidelines
1 parent caf3829 commit 02e3862

File tree

7 files changed

+73
-5
lines changed

7 files changed

+73
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,5 @@ Settings.config
220220
/caketools
221221
/.sonarqube
222222
/dotcover
223+
224+
.fake

.vscode/launch.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
8+
{
9+
"name": ".NET Core Launch (console)",
10+
"type": "coreclr",
11+
"request": "launch",
12+
"preLaunchTask": "build",
13+
"program": "${workspaceFolder}/demo/frosting/bin/Debug/netcoreapp3.1/Build.dll",
14+
"args": ["-s=/Users/administrator/Documents/GitHub/cake-dotnet-vulnerability-scanner/Cake.VulnerabilityScanner.sln"],
15+
"cwd": "${workspaceFolder}/demo/frosting",
16+
"console": "internalConsole",
17+
"stopAtEntry": false
18+
},
19+
{
20+
"name": ".NET Core Attach",
21+
"type": "coreclr",
22+
"request": "attach"
23+
}
24+
]
25+
}

.vscode/tasks.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/demo/frosting/Build.csproj",
11+
"/property:GenerateFullPaths=true",
12+
"/consoleloggerparameters:NoSummary"
13+
],
14+
"problemMatcher": "$msCompile"
15+
},
16+
{
17+
"label": "publish",
18+
"command": "dotnet",
19+
"type": "process",
20+
"args": [
21+
"publish",
22+
"${workspaceFolder}/demo/frosting/Build.csproj",
23+
"/property:GenerateFullPaths=true",
24+
"/consoleloggerparameters:NoSummary"
25+
],
26+
"problemMatcher": "$msCompile"
27+
},
28+
{
29+
"label": "watch",
30+
"command": "dotnet",
31+
"type": "process",
32+
"args": [
33+
"watch",
34+
"run",
35+
"--project",
36+
"${workspaceFolder}/demo/frosting/Build.csproj"
37+
],
38+
"problemMatcher": "$msCompile"
39+
}
40+
]
41+
}

build/Build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageReference Include="Cake.Frosting" Version="2.2.0" />
8+
<PackageReference Include="Cake.Frosting" Version="2.0.0" />
99
</ItemGroup>
1010
<ItemGroup>
1111
<EmbeddedResource Update="Properties\Resources.resx">

demo/frosting/Build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netcoreapp3.1</TargetFramework>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageReference Include="Cake.Frosting" Version="2.2.0" />
7+
<PackageReference Include="Cake.Frosting" Version="2.0.0" />
88
</ItemGroup>
99
<ItemGroup>
1010
<ProjectReference Include="..\..\src\Cake.VulnerabilityScanner\Cake.VulnerabilityScanner.csproj" />

src/Cake.VulnerabilityScanner/Cake.VulnerabilityScanner.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks>
4+
<TargetFrameworks>net6.0;netcoreapp3.1;net5.0</TargetFrameworks>
55
<NuspecProperties>ProjectUrl=$(projectUrl)</NuspecProperties>
66
<NuspecProperties>$(NuspecProperties);PackageProjectUrl=$(PackageProjectUrl)</NuspecProperties>
77
<NuspecProperties>$(NuspecProperties);authors=$(authors)</NuspecProperties>
@@ -26,7 +26,7 @@
2626
</ItemGroup>
2727

2828
<ItemGroup>
29-
<PackageReference Include="Cake.Core" Version="2.2.0" />
29+
<PackageReference Include="Cake.Core" Version="2.0.0" />
3030
<PackageReference Include="Buildalyzer" Version="4.1.3" />
3131
<PackageReference Include="Microsoft.Extensions.ApiDescription.Client" Version="6.0.1">
3232
<PrivateAssets>all</PrivateAssets>

tests/Cake.VulnerabilityScanner.Tests/Cake.VulnerabilityScanner.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Cake.Frosting" Version="2.2.0" />
11+
<PackageReference Include="Cake.Frosting" Version="2.0.0" />
1212
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
1313
<PackageReference Include="xunit" Version="2.4.1" />
1414
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">

0 commit comments

Comments
 (0)