Skip to content
This repository was archived by the owner on Dec 26, 2025. It is now read-only.

Upgrade to .net6#157

Merged
chrissainty merged 11 commits intoBlazored:mainfrom
linkdotnet:main
Dec 7, 2021
Merged

Upgrade to .net6#157
chrissainty merged 11 commits intoBlazored:mainfrom
linkdotnet:main

Conversation

@linkdotnet
Copy link
Contributor

@linkdotnet linkdotnet commented Jul 28, 2021

Essentially upgrade to .net6. Once .net6 is stable we only have to change the version in Directory.Build.props.

Resolves #148

</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
<PackageReference Include="Microsoft.AspNetCore.Components" Version="$(DotNet5Version)" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Microsoft.AspNetCore.Components.Web has a dependency to this package so no need to extra reference it.

Copy link

@IbrahimHabibeh IbrahimHabibeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change all references to version 6.0.100-preview.6.21355.2 to be the latest 6.0.0-preview.7.21378.6

@linkdotnet
Copy link
Contributor Author

Change all references to version 6.0.100-preview.6.21355.2 to be the latest 6.0.0-preview.7.21378.6

Done.

@chrissainty
Copy link
Member

@linkdotnet - WOuld it be possible to update this to the RTM release and then we can look at getting it merged?

@linkdotnet
Copy link
Contributor Author

Hey @chrissainty thanks for updating the branch.
I changed the version to the latest RTM release

Comment on lines +54 to +57
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.100'

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm good catch.For the Preview version it was needed for sure because the autobuild of codeql does take the latest stable version. I'll check quickly

Copy link
Contributor Author

@linkdotnet linkdotnet Nov 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is needed @chrissainty
I removed it from one of my projects just to test see here

Also check the offical tracker: here

Currently they are only supporting .NET 5.
Only workaround is the global.json

Money quote

Running dotnet --info
  .NET SDK (reflecting any global.json):
   Version:   5.0.403
   Commit:    bf9d168ac2
  
  Runtime Environment:
   OS Name:     ubuntu
   OS Version:  20.04
   OS Platform: Linux
   RID:         ubuntu.20.04-x64
   Base Path:   /usr/share/dotnet/sdk/5.0.403/

@linkdotnet
Copy link
Contributor Author

Hey @chrissainty is there anything open for you?

Comment on lines 72 to 76
<Target Name="RemoveLoggingAnalyzer" BeforeTargets="CoreCompile">
<ItemGroup>
<Analyzer Remove="@(Analyzer)" Condition="%(FileName) == 'Microsoft.Extensions.Logging.Generators'" />
</ItemGroup>
</Target>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a TargetFramework check for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very valid point. Added the condition

Comment on lines 56 to 60
<Target Name="RemoveLoggingAnalyzer" BeforeTargets="CoreCompile">
<ItemGroup>
<Analyzer Remove="@(Analyzer)" Condition="%(FileName) == 'Microsoft.Extensions.Logging.Generators'" />
</ItemGroup>
</Target>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a TargetFramework check for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very valid point. Added the condition

@chrissainty chrissainty added the Maintenance General maintenance label Dec 7, 2021
@chrissainty chrissainty merged commit 2d51111 into Blazored:main Dec 7, 2021
@chrissainty
Copy link
Member

Thank you @linkdotnet for completing this PR. Apologies it took a while to get it merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Maintenance General maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for .NET 6

3 participants