Skip to content
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

Move to .NET Standard #131

Closed
wants to merge 8 commits into from
Closed

Conversation

cartermp
Copy link

  • Update all build dependencies to be .NET Standard 2.0 only
  • Move to explicit TPDTC and TPRTC components
  • Adjust build to generate the right stuff for development
  • Get tests working (depends on some local state?)
  • Adjust CI
  • Move to .NET 5 preview SDK and then adjust all scripts to use preview FSI/packagereference

Comment on lines +12 to +16
<Target Name="MoveDesignTimeAssembliesToTypeProviderFolder" AfterTargets="AfterBuild">
<CreateItem Include="..\FSharp.Azure.StorageTypeProvider.DesignTime\bin\$(Configuration)\netstandard2.0\publish\*.dll;..\FSharp.Azure.StorageTypeProvider.DesignTime\bin\$(Configuration)\netstandard2.0\publish\*.pdb">
<Output TaskParameter="Include" ItemName="DesignTimeBinaries" />
</CreateItem>
<Copy SourceFiles="@(DesignTimeBinaries)" DestinationFolder="$(OutputPath)../typeproviders/fsharp41/netstandard2.0" />
Copy link
Author

Choose a reason for hiding this comment

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

This one is key, a real pain in the ass, and also something I intend on shipping in the TPSDK so that we don't utilize an MSBuild hack that it currently suggests

Comment on lines +122 to +123
// do ()
Copy link
Author

Choose a reason for hiding this comment

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

This should just be deleted

@cartermp cartermp requested a review from isaacabraham April 21, 2020 22:21
@cartermp
Copy link
Author

I'm also bad at paket so the way I futzed with dependencies and the paket.template file is probably not ideal

@isaacabraham
Copy link
Collaborator

@cartermp The move to design time / runtime assemblies is something which I understand was always the "right" way to go, so that's great to see :-) I'm still getting the error with tests not building locally, but this feels like a step in the right direction. I have a branch, get-stuff-working, which was basically hacked together and was as far as I ever got - again, this was as far as I got (project building, but not the tests).

How can I help move things forwards - what's the next step? And, would things be easier if we just targetted netcore rather than netstandard?

@cartermp
Copy link
Author

cartermp commented May 9, 2020

@isaacabraham I think the next step is to see if some of the testing can be improved. At least on my machine, the tests attempt to build, but the type provider itself fails to initialize due to missing some emulation stuff for Azure Storage that I don't appear to have. It's unclear to me if the emulator is still the right tool to use for testing or not.

Separately, properly testing all the F# scripts will, unfortunately, depend on .NET 5. So this will either have to wait until it releases in the fall, or this repo will need to build with a preview of .NET 5 until then.

@cartermp cartermp closed this Sep 17, 2022
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