Skip to content

Commit 5d6b3e6

Browse files
authored
Merge pull request #58 from CycloneDX/dotnet6
2 parents c644fb2 + 743b7af commit 5d6b3e6

36 files changed

+40
-31
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
timeout-minutes: 30
1616
steps:
1717
- uses: actions/[email protected]
18+
- uses: actions/[email protected]
19+
with:
20+
dotnet-version: '6.0'
1821

1922
- name: Build
2023
run: dotnet build /WarnAsError

.github/workflows/release.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,20 @@ jobs:
2929
timeout-minutes: 30
3030
steps:
3131
- uses: actions/[email protected]
32+
- uses: actions/[email protected]
33+
with:
34+
dotnet-version: '6.0'
3235

3336
# Build and package everything
3437
- name: Package release
3538
id: package_release
3639
run: |
3740
VERSION=`cat semver.txt`
3841
echo "##[set-output name=version;]$VERSION"
39-
dotnet publish --configuration Release /p:Version=$VERSION --output ./gh-pages CycloneDX.WebTool/CycloneDX.WebTool.csproj
42+
dotnet publish --configuration Release /p:Version=$VERSION --output ./gh-pages src/CycloneDX.WebTool/CycloneDX.WebTool.csproj
4043
cd gh-pages/wwwroot
41-
zip -r ../../CycloneDX.WebTools.zip ./
42-
tar -zcvf ../../CycloneDX.WebTools.tar.gz ./
44+
zip -r ../../CycloneDX.WebTool.zip ./
45+
tar -zcvf ../../CycloneDX.WebTool.tar.gz ./
4346
cd ../..
4447
4548
- name: Create github release and git tag for release
@@ -59,8 +62,8 @@ jobs:
5962
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6063
with:
6164
upload_url: ${{ steps.create_release.outputs.upload_url }}
62-
asset_path: CycloneDX.WebTools.zip
63-
asset_name: CycloneDX.WebTools.${{ steps.package_release.outputs.version }}.zip
65+
asset_path: CycloneDX.WebTool.zip
66+
asset_name: CycloneDX.WebTool.${{ steps.package_release.outputs.version }}.zip
6467
asset_content_type: application/zip
6568

6669
- name: Upload tar.gz package to github release
@@ -69,8 +72,8 @@ jobs:
6972
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7073
with:
7174
upload_url: ${{ steps.create_release.outputs.upload_url }}
72-
asset_path: CycloneDX.WebTools.tar.gz
73-
asset_name: CycloneDX.WebTools.${{ steps.package_release.outputs.version }}.tar.gz
75+
asset_path: CycloneDX.WebTool.tar.gz
76+
asset_name: CycloneDX.WebTool.${{ steps.package_release.outputs.version }}.tar.gz
7477
asset_content_type: application/gzip
7578

7679
- name: Update GitHub pages

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ Permission to modify and redistribute is granted under the terms of the Apache 2
4545
Pull requests are welcome. But please read the
4646
[CycloneDX contributing guidelines](https://github.com/CycloneDX/.github/blob/master/CONTRIBUTING.md) first.
4747

48-
To build and test the solution locally you should have .NET 5
48+
To build and test the solution locally you should have .NET 6
4949
installed. Standard commands like `dotnet build` and `dotnet test` work.

cyclonedx-web-tool.sln

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.30308.16
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CycloneDX.WebTool", "CycloneDX.WebTool\CycloneDX.WebTool.csproj", "{1C027F59-3888-4CFF-B0AF-88D15BE55971}"
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{23C80BB2-A808-4547-A9DA-2D695D372FBB}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CycloneDX.WebTool", "src\CycloneDX.WebTool\CycloneDX.WebTool.csproj", "{19DB1620-6888-4FA7-86CC-B6B1302A8CD4}"
79
EndProject
810
Global
911
GlobalSection(SolutionProperties) = preSolution
@@ -21,17 +23,20 @@ Global
2123
Release|x86 = Release|x86
2224
EndGlobalSection
2325
GlobalSection(ProjectConfigurationPlatforms) = postSolution
24-
{1C027F59-3888-4CFF-B0AF-88D15BE55971}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25-
{1C027F59-3888-4CFF-B0AF-88D15BE55971}.Debug|Any CPU.Build.0 = Debug|Any CPU
26-
{1C027F59-3888-4CFF-B0AF-88D15BE55971}.Debug|x64.ActiveCfg = Debug|Any CPU
27-
{1C027F59-3888-4CFF-B0AF-88D15BE55971}.Debug|x64.Build.0 = Debug|Any CPU
28-
{1C027F59-3888-4CFF-B0AF-88D15BE55971}.Debug|x86.ActiveCfg = Debug|Any CPU
29-
{1C027F59-3888-4CFF-B0AF-88D15BE55971}.Debug|x86.Build.0 = Debug|Any CPU
30-
{1C027F59-3888-4CFF-B0AF-88D15BE55971}.Release|Any CPU.ActiveCfg = Release|Any CPU
31-
{1C027F59-3888-4CFF-B0AF-88D15BE55971}.Release|Any CPU.Build.0 = Release|Any CPU
32-
{1C027F59-3888-4CFF-B0AF-88D15BE55971}.Release|x64.ActiveCfg = Release|Any CPU
33-
{1C027F59-3888-4CFF-B0AF-88D15BE55971}.Release|x64.Build.0 = Release|Any CPU
34-
{1C027F59-3888-4CFF-B0AF-88D15BE55971}.Release|x86.ActiveCfg = Release|Any CPU
35-
{1C027F59-3888-4CFF-B0AF-88D15BE55971}.Release|x86.Build.0 = Release|Any CPU
26+
{19DB1620-6888-4FA7-86CC-B6B1302A8CD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{19DB1620-6888-4FA7-86CC-B6B1302A8CD4}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{19DB1620-6888-4FA7-86CC-B6B1302A8CD4}.Debug|x64.ActiveCfg = Debug|Any CPU
29+
{19DB1620-6888-4FA7-86CC-B6B1302A8CD4}.Debug|x64.Build.0 = Debug|Any CPU
30+
{19DB1620-6888-4FA7-86CC-B6B1302A8CD4}.Debug|x86.ActiveCfg = Debug|Any CPU
31+
{19DB1620-6888-4FA7-86CC-B6B1302A8CD4}.Debug|x86.Build.0 = Debug|Any CPU
32+
{19DB1620-6888-4FA7-86CC-B6B1302A8CD4}.Release|Any CPU.ActiveCfg = Release|Any CPU
33+
{19DB1620-6888-4FA7-86CC-B6B1302A8CD4}.Release|Any CPU.Build.0 = Release|Any CPU
34+
{19DB1620-6888-4FA7-86CC-B6B1302A8CD4}.Release|x64.ActiveCfg = Release|Any CPU
35+
{19DB1620-6888-4FA7-86CC-B6B1302A8CD4}.Release|x64.Build.0 = Release|Any CPU
36+
{19DB1620-6888-4FA7-86CC-B6B1302A8CD4}.Release|x86.ActiveCfg = Release|Any CPU
37+
{19DB1620-6888-4FA7-86CC-B6B1302A8CD4}.Release|x86.Build.0 = Release|Any CPU
38+
EndGlobalSection
39+
GlobalSection(NestedProjects) = preSolution
40+
{19DB1620-6888-4FA7-86CC-B6B1302A8CD4} = {23C80BB2-A808-4547-A9DA-2D695D372FBB}
3641
EndGlobalSection
3742
EndGlobal

local-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
dotnet publish --configuration Release --output ./gh-pages CycloneDX.WebTool
2+
dotnet publish --configuration Release --output ./gh-pages src/CycloneDX.WebTool
File renamed without changes.

CycloneDX.WebTool/CycloneDX.WebTool.csproj renamed to src/CycloneDX.WebTool/CycloneDX.WebTool.csproj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
66
<PublishTrimmed>false</PublishTrimmed>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="CycloneDX.Core" Version="3.0.3" />
11-
<PackageReference Include="CycloneDX.Utils" Version="3.0.3" />
12-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.11" />
13-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.11" PrivateAssets="all" />
14-
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
10+
<PackageReference Include="CycloneDX.Utils" Version="4.0.0" />
11+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.1" />
12+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.1" PrivateAssets="all" />
1513
</ItemGroup>
1614

1715
<ItemGroup>
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)