-
Notifications
You must be signed in to change notification settings - Fork 252
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
PackageReference support in FSharp projects #7743
Comments
When I check in VS2017(15.9.6), all F# projects are .Net Core and .Net Standard, so all of them support PackageReference. Not sure which version of VS do you use and what kind of project do you create? |
@heng-liu is correct, F# has full support for PackageReference provided you are using .NET SDK-style projects. |
@cartermp / @heng-liu - Thanks for your reply, however, when I manage NuGet Packages in Visual Studio Professional 2017 (Latest v15.9.5) F# projects ignore the "Default Package Management" setting of "PackageReference" and creates/adds to Packages.config file. This is contrary to C# projects which honours the setting and adds a PackageReference to the project file. |
Updated to Visual Studio Professional v15.9.6 and same - packages.config is created/updated for F# projects, ignoring the "Default Package Management" setting of "PackageReference" |
@le-agould Are you using .NET SDK-style projects? If you're not, then it will still use packages.config. F# support for PackageReference is with .NET SDK-style projects only. |
@cartermp - Hi Phillip - The solution is a C# .NET Framework v4.6 class library with NUnit based unit tests written in F#. Not sure what you mean by ".NET SDK-style projects only." |
@le-agould .NET SDK-style means a project type that uses the .NET SDK. You can see an example if you create a new .NET Core project, or use I suspect your NUnit tests are using the non-.NET SDK style projects based on what you are saying. The resolution to this is to create a new project (perhaps with |
@heng-liu - For your information... |
Bump. Please fix this. |
Hi,
Could you give some indication as to when support for PackageReference project directive will include F Sharp projects - Thanks...
The text was updated successfully, but these errors were encountered: