-
Notifications
You must be signed in to change notification settings - Fork 94
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
Cannot create a type provider without Paket? #314
Comments
totally agree also paket seems not supported as an extension on VS2019 currently. fsprojects/Paket.VisualStudio#176 |
If you do not want to use Paket, you can manually copy 2 files from this repo to your TP project: ProvidedTypes.fs and ProvidedTypes.fsi or even better, create solution from the template
|
Yes that's what i also did to fix manually yes (adding the 2 files manually), indeed. i believe because also these 2 files are referenced by paket
i also don't have them in the project folders (projects where generated via template) |
it should work for sure if you build it from command line
what happens when you just build from VS? VS does not restore dotnel tool? |
@sergey-tihon Is there no way to create a type provider without using Paket or the template (which also uses Paket)? Is copying |
@mettekou sorry, no idea. I never tried to do it with You may start from solution created by template, replace Keep in mind that latest template still support both framework, but current master already moved to .NET Standard exclusively. There is a chance that latest SDK is able to pack TP correctly without Paket, but I do not have a sample to share you. |
FWIW the repo is now set up to be able to publish the TPSDK as a standalone package (at least with #339), making paket no longer necessary for any sane creation and maintenance of a custom type provider. As per @dsyme's comment it appears we just have to follow through: #339 (comment) |
@cartermp do we still need to pack all transitive dependencies of design-time component inside TP nuget package in the folder near DT assembly? |
I would expect so, yeah |
@sergey-tihon I got my own type provider working without Paket using the following |
Closing this old discussion |
@dsyme As this discussion is closed, I assume it is now possible to create a type provider without Paket. However, I am struggling to do so for .NET 6, as per mettekou/FSharp.Data.Tdms#9. Adding the design-time assembly to the |
@mettekou I suspect the issue lies either in the F# compiler used for the .NET SDK or the F# compiler used in Visual Studio (they are different), and is unrelated to this. |
So there's this package: https://www.nuget.org/packages/FSharp.TypeProviders.StarterPack but it's been unlisted. Currently, there seems to be no way to create type providers by only using NuGet and not Paket. Why? Type Providers are a F# feature but seems that so much additional components are needed before it can be used.
The text was updated successfully, but these errors were encountered: