You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please report any issues you find with .NET 7 RC2, either responding to this issue, creating a new issue or creating a new issue in one of the following repos:
If there are any issues with this release we will track them here and check issues off as they're resolved. See the linked issues for details on progress and resolution details.
F# / C# interop fails when upgrading to the RC2.
To reproduce, create a solution with two – F# Library and C# Console projects. Reference the F# project from the C# one. Add at least two types in the Library.fs file (two single case discriminated unions for simplicity…) and access THE FIRST ONE from the C# project. It will throw: ” Program.cs(1, 24): [CS0117] ‘Test.A’ does not contain a definition for ‘A'”
F# / C# interop fails when upgrading to the RC2. To reproduce, create a solution with two – F# Library and C# Console projects. Reference the F# project from the C# one. Add at least two types in the Library.fs file (two single case discriminated unions for simplicity…) and access THE FIRST ONE from the C# project. It will throw: ” Program.cs(1, 24): [CS0117] ‘Test.A’ does not contain a definition for ‘A'”
(ofyi) I built dotnet7 RC2 amd64 today on Ubuntu (tarball creation included), and I got a different number for the version :
ubuntu@dotnet-jammy:~$ dotnet --info
.NET SDK:
Version: 7.0.100-rc.2.22517.1
Commit: 0a5360315a
Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /usr/lib/dotnet/dotnet7-7.0.100-rc.2.22477.23/sdk/7.0.100-rc.2.22517.1/
I checked into the debian folder to see if that number was harcoded (It's strange to me that it could happen, but just double-checking), and it is not.
I took a quick look at the F# binary produced by the RC2 SDK and it seems fine. At the same time I don't think we changed anything in C# import that would intersect with this.
For the F# type type A = A previously the F# compiler emitted a type with a static property A and a get_A() method. With RC2 SDK, the type includes a get_A() method but no property.
Activity
gdar91 commentedon Oct 11, 2022
F# / C# interop fails when upgrading to the RC2.
To reproduce, create a solution with two – F# Library and C# Console projects. Reference the F# project from the C# one. Add at least two types in the Library.fs file (two single case discriminated unions for simplicity…) and access THE FIRST ONE from the C# project. It will throw: ” Program.cs(1, 24): [CS0117] ‘Test.A’ does not contain a definition for ‘A'”
gdar91 commentedon Oct 11, 2022
https://github.com/gdar91/Rc2FsCs
gortok commentedon Oct 16, 2022
For .NET 7 RC 2 release you mention CVE-2022-38013, but for .NET 6 and .NET Core 3.1 release (3.1.30 and 6.0.10), you keep the exact same release text but reference an newer CVE, CVE-2022-41032.
Should the .NET 7 RC2 release notes also reference CVE '41032?
dcwhittaker commentedon Oct 17, 2022
@gortok yes you are absolutely right - making those changes now. Thanks for the flag!
leecow commentedon Oct 17, 2022
@KevinRansom or @jaredpar - do you know who should have a look at the F# to C# interop issue reported above (#7865 (comment))?
mirespace commentedon Oct 17, 2022
Hi team,
(ofyi) I built dotnet7 RC2 amd64 today on Ubuntu (tarball creation included), and I got a different number for the version :
I checked into the debian folder to see if that number was harcoded (It's strange to me that it could happen, but just double-checking), and it is not.
jaredpar commentedon Oct 17, 2022
I can repro @gdar91 issue.
I took a quick look at the F# binary produced by the RC2 SDK and it seems fine. At the same time I don't think we changed anything in C# import that would intersect with this.
@cston PTAL.
cston commentedon Oct 18, 2022
Regarding the issue reported by @gdar91 in #7865 (comment):
For the F# type
type A = Apreviously the F# compiler emitted a type with a static propertyAand aget_A()method. With RC2 SDK, the type includes aget_A()method but no property.KevinRansom commentedon Oct 19, 2022
Opened an issue in F#: dotnet/fsharp#14147
vzarytovskii commentedon Oct 19, 2022
Reported earlier: dotnet/fsharp#14088
Fix has been backported to 17.4, the workaround is to disable generating reference assemblies for F# project:
dcwhittaker commentedon Nov 8, 2022
Closed in favor of #7939