Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update net9.0 support #268

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/build-workload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ on:
push:
branches:
- main
- net7.0
- net8.0
- net9.0
paths:
- 'workload/**'
- '.github/workflows/**'
pull_request:
branches:
- main
- net7.0
- net9.0
paths:
- 'workload/**'
- '.github/workflows/**'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Storage.Queues" Version="12.8.0" />
<PackageReference Include="Azure.Storage.Queues" Version="12.11.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Storage.Queues" Version="12.8.0" />
<PackageReference Include="Azure.Storage.Queues" Version="12.11.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.0" />
Expand Down
7 changes: 6 additions & 1 deletion workload/Config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $(TMPDIR)/dotnet-version.config: $(TOP)/build/Versions.props
DOTNET_VERSION_BAND = $(firstword $(subst -, ,$(DOTNET_VERSION)))

IS_PRERELEASE=$(findstring -,$(DOTNET_VERSION))
IS_RTM=$(findstring -rtm,$(DOTNET_VERSION))
VERSIONS=$(shell echo $(DOTNET_VERSION) | tr "." "\n")
ifneq ($(IS_PRERELEASE),)
VERSIONS := $(shell echo $(VERSIONS) | tr "-" "\n")
Expand All @@ -32,7 +33,11 @@ ifeq ($(MAJOR),6)
DOTNET_VERSION_BAND := $(MAJOR).$(MINOR).$(BAND)
else
ifneq ($(IS_PRERELEASE),)
DOTNET_VERSION_BAND := $(MAJOR).$(MINOR).$(MICRO)-$(PRERELEASE_DOTNET).$(PRERELEASE_DOTNET_VERSION)
ifneq ($(IS_RTM),)
DOTNET_VERSION_BAND := $(MAJOR).$(MINOR).$(MICRO)-$(PRERELEASE_DOTNET)
else
DOTNET_VERSION_BAND := $(MAJOR).$(MINOR).$(MICRO)-$(PRERELEASE_DOTNET).$(PRERELEASE_DOTNET_VERSION)
endif
else
DOTNET_VERSION_BAND := $(MAJOR).$(MINOR).$(MICRO)
endif
Expand Down
8 changes: 4 additions & 4 deletions workload/build/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
example: -preview.3.100+sha12345
-->
<PropertyGroup>
<TizenWorkloadVersion>7.0.125</TizenWorkloadVersion>
<TizenWorkloadVersion>8.0.131</TizenWorkloadVersion>
</PropertyGroup>

<!--
Expand All @@ -26,14 +26,14 @@
This version is used to generate Samsung.Tizen.Ref package.
-->
<PropertyGroup>
<TizenFXVersion>11.0.0.18030</TizenFXVersion>
<TizenFXVersion>11.0.0.18033</TizenFXVersion>
</PropertyGroup>

<!--
Dotnet SDK versions for building the workload.
-->
<PropertyGroup>
<MicrosoftDotnetSdkInternalPackageVersion>9.0.100-alpha.1.23422.20</MicrosoftDotnetSdkInternalPackageVersion>
<MicrosoftDotNetBuildTasksFeedPackageVersion>8.0.0-beta.23307.1</MicrosoftDotNetBuildTasksFeedPackageVersion>
<MicrosoftDotnetSdkInternalPackageVersion>9.0.100-alpha.1.23617.1</MicrosoftDotnetSdkInternalPackageVersion>
<MicrosoftDotNetBuildTasksFeedPackageVersion>9.0.0-beta.23614.6</MicrosoftDotNetBuildTasksFeedPackageVersion>
</PropertyGroup>
</Project>
43 changes: 25 additions & 18 deletions workload/scripts/workload-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ $LatestVersionMap = @{
"$ManifestBaseName-8.0.100-preview.7" = "7.0.122";
"$ManifestBaseName-8.0.100-rc.1" = "7.0.124";
"$ManifestBaseName-8.0.100-rc.2" = "7.0.125";
"$ManifestBaseName-8.0.100-rtm" = "7.0.127";
"$ManifestBaseName-8.0.100" = "8.0.130";
"$ManifestBaseName-9.0.100-alpha.1" = "8.0.131";
}

function New-TemporaryDirectory {
Expand All @@ -70,29 +73,29 @@ function Ensure-Directory([string]$TestDir) {
}

function Get-LatestVersion([string]$Id) {
$attempts=3
$sleepInSeconds=3
do
{
try
{
$Response = Invoke-WebRequest -Uri https://api.nuget.org/v3-flatcontainer/$Id/index.json -UseBasicParsing | ConvertFrom-Json
return $Response.versions | Select-Object -Last 1
}
catch {
Write-Host "Id: $Id"
Write-Host "An exception was caught: $($_.Exception.Message)"
}

$attempts--
if ($attempts -gt 0) { Start-Sleep $sleepInSeconds }
} while ($attempts -gt 0)

if ($LatestVersionMap.ContainsKey($Id))
{
Write-Host "Return cached latest version."
return $LatestVersionMap.$Id
} else {
$attempts=3
$sleepInSeconds=3
do
{
try
{
$Response = Invoke-WebRequest -Uri https://api.nuget.org/v3-flatcontainer/$Id/index.json -UseBasicParsing | ConvertFrom-Json
return $Response.versions | Select-Object -Last 1
}
catch {
Write-Host "Id: $Id"
Write-Host "An exception was caught: $($_.Exception.Message)"
}

$attempts--
if ($attempts -gt 0) { Start-Sleep $sleepInSeconds }
} while ($attempts -gt 0)

Write-Error "Wrong Id: $Id"
}
}
Expand Down Expand Up @@ -162,6 +165,10 @@ function Install-TizenWorkload([string]$DotnetVersion)
$DotnetTargetVersionBand = $DotnetVersionBand + $SplitVersion[2].SubString(3) + $VersionSplitSymbol + $($SplitVersion[3])
$ManifestName = "$ManifestBaseName-$DotnetTargetVersionBand"
}
elseif ($DotnetVersion.Contains("-rtm") -and ($SplitVersion.Count -ge 3)) {
$DotnetTargetVersionBand = $DotnetVersionBand + $SplitVersion[2].SubString(3)
$ManifestName = "$ManifestBaseName-$DotnetTargetVersionBand"
}
else {
$DotnetTargetVersionBand = $DotnetVersionBand
}
Expand Down
3 changes: 3 additions & 0 deletions workload/scripts/workload-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ LatestVersionMap=(
"$MANIFEST_BASE_NAME-8.0.100-preview.7=7.0.122"
"$MANIFEST_BASE_NAME-8.0.100-rc.1=7.0.124"
"$MANIFEST_BASE_NAME-8.0.100-rc.2=7.0.125"
"$MANIFEST_BASE_NAME-8.0.100-rtm=7.0.127"
"$MANIFEST_BASE_NAME-8.0.100=8.0.130"
"$MANIFEST_BASE_NAME-9.0.100-alpha.1=8.0.131"
)

while [ $# -ne 0 ]; do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<FileList TargetFrameworkIdentifier=".NETCoreApp" TargetFrameworkVersion="7.0" FrameworkName="Microsoft.NETCore.App" Name=".NET Runtime">
<FileList TargetFrameworkIdentifier=".NETCoreApp" TargetFrameworkVersion="9.0" FrameworkName="Microsoft.NETCore.App" Name=".NET Runtime">
</FileList>
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Copyright (c) Samsung All rights reserved.
<PropertyGroup>
<AssetTargetFallback></AssetTargetFallback>
<PackageTargetFallback>
net9.0-tizen8.0;
net9.0-tizen7.0;
net8.0-tizen8.0;
net8.0-tizen7.0;
net7.0-tizen8.0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ Copyright (c) Samsung All rights reserved.
<SupportedAPILevel Include="v9.0" MappedAPIVersion="6.5"/>
<SupportedAPILevel Include="v10.0" MappedAPIVersion="7.0"/>
<SupportedAPILevel Include="v11.0" MappedAPIVersion="8.0"/>
<SupportedAPILevel Include="v12.0" MappedAPIVersion="9.0"/>
</ItemGroup>

<ItemGroup>
<TizenSdkSupportedTargetPlatformVersion Include="6.5" />
<TizenSdkSupportedTargetPlatformVersion Include="7.0" />
<TizenSdkSupportedTargetPlatformVersion Include="8.0" />
<TizenSdkSupportedTargetPlatformVersion Include="9.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ Copyright (c) Samsung All rights reserved.
RuntimePackRuntimeIdentifiers="tizen"
RuntimePackLabels="Tizen"
/>
<KnownRuntimePack Include="Microsoft.NETCore.App"
TargetFramework="net9.0"
RuntimeFrameworkName="Microsoft.NETCore.App"
LatestRuntimeFrameworkVersion="**FromWorkload**"
RuntimePackNamePatterns="Samsung.NETCore.App.Runtime.**RID**"
RuntimePackRuntimeIdentifiers="tizen"
RuntimePackLabels="Tizen"
/>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@
{
"choice": "net8.0",
"description": "target framework version is net8.0-tizen"
},
{
"choice": "net9.0",
"description": "target framework version is net9.0-tizen"
}
],
"replaces": "net8.0",
"defaultValue": "net8.0"
"replaces": "net9.0",
"defaultValue": "net9.0"
}
},
"defaultName": "TizenApp1"
Expand Down
Loading