-
Notifications
You must be signed in to change notification settings - Fork 25
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
Support .NET Core #126
Support .NET Core #126
Conversation
… error on IsGenericType
… is 1 note: need to manually change version inside ./Unquote/project.json before build.bat
@enricosada this is great, thank you! Looking forward to digging in. |
I'll check appveyor failure. Btw @stephen-swensen any issue, feel free to ping me or #dotnetcore fsharp.org slack channel |
sry, locally i have an error with portable profile with msbuild (maybe i need something installed, dunno)
so when fixing f# 3 conditionals (instead of f# 4), i didnt see the error. i always tried locally with |
@enricosada I'm not all up-to-date on .NET Core / Standard so excuse my ignorance, but according to Don's comment at fsprojects/.github#10 (comment) , PCL 259 can be referenced from a .NET Core / Standard project... Unquote supports PCL 259 so I am wondering what the point of additionally supporting .NET Core / Standard is (may be totally misunderstanding everything)? |
@stephen-swensen sry for late reply, i was in vacation :P you can import the pcl, but there are some issue currently. I think there is an issue because unquote is referencing If create a console app, add the import of pcl, the app restore and build correctly, but at runtime:
Also imports doesnt work using dotnet sdk tools (the tools section) but i dont think that an issue for unquote, because is used in tests. Last, |
if you need i can gist you the code with imported pcl of unquote 3.1.2, if you think can be useful to fix that error |
@enricosada yes that would be helpful. Wondering if we can just massage Unquote's PCL build so that it is sufficient for use by other projects without creating another profile. |
in theory, pcl 259 is anyway the example https://gist.github.com/enricosada/a639815605b32840fa3423235c9dfbe9
i know is another profile, but the netstandard is the way forward for multitargeting, and improve the pcl (for example library author can choose the minimal api surface, fsharp.core should lower netstandard1.6 to 1.3 i think) so newer or different platform can be supported (pcl restrict the platform to a subset) if you want to try a new pcl nuget package:
and
|
This also adds conditional includes to workaround issues with Unquote on .NET Core. (See SwensenSoftware/unquote#126)
Note that I have posted up another conversion to .NET Core at https://github.com/neoeinstein/unquote/tree/netcore. I also have published it as a package on my personal MyGet feed here: https://www.myget.org/F/neoeinstein/api/v3/index.json |
Is there any update on this, now that .NET Core tooling is 1.0? Is there anything I could do to help and/or test? @neoeinstein I tried to install Unquote from your personal feed, but the package isn't listed there... :( |
@tlycken Hi - my update is this: i have been hesitant to consider .NET Core up until now because of the instability (e.g. JSON vs. MSBUILD project formats)... it looks like that is settling down and it is now on my radar for real. Not sure yet about time line, but I am thinking there will be a Unquote 4.0 release that targets .NET 45 and .NET Core (whatever) while deprecating PCL and .NET 40 builds... Any thoughts welcome, it's difficult to keep a solid grasp of the prominent .NET build profiles from year-to-year... (thanks, any nudge helps me, and I appreciate the offer for help!) |
@stephen-swensen I feel you - I sort-of gave up on keeping track of the tooling when they announced they were ditching There's a decent tutorial on microsoft.com that I found worked very well when following it exactly, but stumbled onto some subtleties when I tried to apply it to port a project of mine. I guess with some effort it shouldn't be a problem. Either way, I think that - and similar resources - is a good start for porting this library too. Since this PR uses the preview2 version of the tooling, we'd probably have to re-do some of the work here. Perhaps @enricosada is better posed to know which changes here can be re-used? |
@tlycken The version of |
@stephen-swensen @tlycken @neoeinstein i'll finish this, converting to fsproj. @stephen-swensen now tooling is stable and rtm. Tooling was ok in preview2 too, source code changes will be the same, but now is expected to stay stable for quite a bit. as a note, project.json (preview2) -> fsproj (1.0 rtm) tutorial is in the wiki https://github.com/dotnet/netcorecli-fsc/wiki/How-to-migrate-preview2-projects-to-1.0 |
Sry @neoeinstein didnt see your branch. |
Sorry another time @neoeinstein , seems i was a bit too optimistic about my free time for do this. |
Add .NET Core 1.0 RTM support (
netstandard1.6
) using .NET Core SDK preview2The build.bat now add netstandard to package,
if env varif .net core sdk is installed ( theUNQUOTE_NETCORE
is1
dotnet --info
return exit code 0)IMPORTANT change
version
insideUnquote/project.json
before of the build, so is the same number as built processHow to try it:
First restore
After that
this will build
Unquote
, and runUnquoteTests
testsSame for
VerifyNunit3Support
,VerifyXunit2Support
The
VerifyNonFrameworkSupport
is a console app, so instead