-
Notifications
You must be signed in to change notification settings - Fork 525
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
[Really Ready] dotnet sdk: disable implicitly adding system.valuetuple and fsharp.core #2528
Conversation
I don't think we need to do that. This is basically a thing that will happen later in build. We should not have this in paket.exe itself. |
Thats the big issue - if you dont' pass any FSharp.Core to the compiler, it will silently pick any random one. |
how? I think the targets file changes forbid that!? |
Please test it, maybe i missed something, but afaik it does not error out. |
If you have a repro? Can you please report that to visualfsharp? It should not implicitly add things when you explicitly set the flag, right? |
Will do |
can you please send a second PR that only sets the properties in the targets file? |
I don't think that is a good idea. When you do dotnet new and paket convert, the resulting project will be broken (and still compiling, so the user doesn't notice it). I would say let's wait for a response on that issue, maybe there is a compilerflag to disable the magic core reference? |
Great, locally I have the same three Edit: Cause:
It is picking up the global.json from the paket root folder. Probably a good idea to hardcode the cli version. |
It feels like this test needs to be reworked. It's not working on travis either, see here |
I need to test if it actually works (probably doesn't, I know myself =) ), and a few unit tests would also be nice, but from my side this is mostly finished. As it stands, it adds FSharp.Core on What do you think? |
e1281d7
to
cd4d874
Compare
what is the status? |
b656db7
to
bb317e7
Compare
Ready from my side. CI errors seem unrelated, but please verify. I've rebased it on master, which wiped the CI history, so here is a link to the previous CI result: https://ci.appveyor.com/project/SteffenForkmann/paket/build/0.0.1.9005 |
Maybe we can add long-path support for the test suite on appveyor (via App.Config). We don't really care about too long paths there. As the appveyor is green on master and our only check right now I think we need it to be green here as well. Or we wait for #2584? |
Kay, let me shorten the scenario names a bit ... |
warn when a sdk f# project does not contain a reference to fsharp.core
07c44f8
to
4a7f53f
Compare
@matthid green |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@@ -227,6 +227,22 @@ let createPackageRequirement sources (packageName, versionRange, restrictions) d | |||
TransitivePrereleases = false | |||
Graph = Set.empty } | |||
|
|||
let private isFSharpproject (projectFileName:string) = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isFSharpProject ?
Would be interesting to see WHAT is not cached. We had some problems with the bootstrapper in the past (where dotnet was calling the bootstrapper in magic mode).
This is when this error is actually reproducible. |
no idea - I think this may not actually be an issue with paket, because the build in my fork also failed with the same error. So it seems the AppVeyor Datacenter as a whole hit the limit. Anyway, now it is green again. |
thanks! |
disable implicitly adding system.valuetuple and fsharp.core
fail when a sdk f# project does not contain a reference to fsharp.core
context: dotnet/fsharp#3335 (comment)