Skip to content

Build with the .NET 6 SDK#605

Closed
Numpsy wants to merge 2 commits into
fsprojects:masterfrom
Numpsy:rw/net_6_sdk
Closed

Build with the .NET 6 SDK#605
Numpsy wants to merge 2 commits into
fsprojects:masterfrom
Numpsy:rw/net_6_sdk

Conversation

@Numpsy
Copy link
Copy Markdown
Contributor

@Numpsy Numpsy commented Nov 1, 2023

refs #604

A basic start to update to something supported, and to handle a couple of compiler warnings that occur with newer SDK versions

Comment thread Directory.Build.props
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
<MSBuildTreatWarningsAsErrors>false</MSBuildTreatWarningsAsErrors>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

disabled this for now, as there are warnings about .NET 5 being unsupported

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

but isn't this PR upgrading from v5 to v6? then this warning should be gone in this PR

| _ -> checkExpr app None)
| _ -> Array.empty
| _ -> Array.empty
// | _ -> Array.empty
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The newer sdks have this warning here

FSharpLint\src\FSharpLint.Core\Rules\Conventions\RaiseWithTooManyArguments\FailwithBadUsage.fs(119,11): error FS0026: This rule will never be matched

(which cause a build failure due to WarningsAsErrors being enabled)

let f() =
let g() =
{(makeMatchSnippet (MaxComplexity+1)) |> indent 8}
{(makeMatchSnippet (MaxComplexity+1)) |> indent 8}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The newer SDKs have this warning here

FSharpLint\tests\FSharpLint.Core.Tests\Rules\Conventions\CyclomaticComplexity.fs(232,3): error FS0058: Possible incorrect indentation: this token is offside of context started at position (229:9). Try indenting this token further or using standard formatting conventions.

@Numpsy Numpsy mentioned this pull request Nov 1, 2023
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.x'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@Numpsy why not upgrade from v5 to v6 everywhere? (specifically, am wondering why you left 5.0.x in L15)

@Numpsy
Copy link
Copy Markdown
Contributor Author

Numpsy commented Nov 2, 2023

It was an attempt to do one thing at once, and show those two code changes which could be done separately if wanted.

Also it needs Paket to be updated as in #603 as the existing version doesn't understand the newer TFMs

@Numpsy
Copy link
Copy Markdown
Contributor Author

Numpsy commented Dec 6, 2023

I'll close this in favour of #606

@Numpsy Numpsy closed this Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants