mettekou/FSharp.Data.Tdms

Design-time component does not work in Visual Studio 2022

Closed this issue · 5 comments

I'm quite new to anything F# related, but i have been using this project in my C# projects.
When trying to use the nuget package in a solution, i can't compile anything. It's giving errors with the designtime portion.

When i clone the repo and remove all references to 'designtime' it seems to be working fine. not sure what it's supposed to do.

@BeatSkip The FSharp.Data.Tdms.DesignTime assembly is an F# type provider, which generates types from TDMS files at compile time. In order to figure out whether this is a duplicate of #9, please tell me which error you see and whether it only occurs in Visual Studio, or whether command line .NET SDK builds (dotnet build) or MSBuild builds also trigger it.

@mettekou ah, yeah i did see that issue indeed. I think it might be the same issue, i didn't see it as a reference to DesignTime and there's not really anything useful to go on other than stating a fact in that issue. I am indeed using Visual studio, i might have time later on to check if 'dotnet build' does work.

also, the specific error is:
image

while trying to compile the code:
image

seems not too hard to fix, but today has been the first time i've read F#. So i might not be the guy to fix it.

EDIT: (The tdmsFile in this code is an alias to FSharp.Data.Tdms. was hoping an alias would maybe fix it; spoiler, it didn't :P)

@BeatSkip #9 was indeed not meant to be read by others. Since no one else works on this library, I tend to use issues to remind myself what to work on. Anyway, your issue does not seem to be a duplicate of #9. As I hardly ever use this library from C#, I'll create a C# project to see whether I can reproduce your issue.

EDIT: I am able to reproduce your issue and will look into fixing it.

@BeatSkip Not fixed for Visual Studio by 04cc632.

@BeatSkip This issue is due to Visual Studio using the .NET Framework version of the tooling, as per dotnet/fsharp#12715 (comment). I cannot resolve it, because I cannot downgrade this project to .NET Standard 2.0, as I use methods only introduced in .NET Core 3.1 and later.

EDIT: Never mind, it does not affect C# projects, only F# projects. I will keep this issue open for F# projects only.