-
Notifications
You must be signed in to change notification settings - Fork 586
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
FAKE 5.0 DotNet.Restore not restoring properly #1848
Comments
I was going to collect more info and set up the FSharp.Formatting beta problem #1838 (comment), when I discovered this. |
Maybe we have different defaults and therefore we execute a different command? |
Default of what? dotnet restore? |
Yes maybe when switching to the new API a different command is executed (or different working directory..). |
OK, I'll try to track that down. This implies dotnet is installed more than once on my machine. A good example of why I like having relevant DLLs under Paket control, rather than installed apps. |
you cannot manage dotnet with paket. especially when paket switches to dotnetcore it would be a chicken and egg problem... I’ll try to look at this eventually but if you could find the difference / root cause it would help a lot (for example with procmon or the debugger) |
I know I can't manage dotnet from paket. I used to be able to manage FAKE from paket, but that is probably ending. |
no you can manage your fake version with paket if you really want. for example use dotnet-fake as shown above. In paket there is a pr for “reprotool” - we probably will support that as well once it’s released... |
As soon as I get my build script fully functioning on rc001 or later I will test this again. |
I have now implemented Legacy |
Ah I think you miss some parameters and are ignoring functions. restore is already returning unit. please look in intellisense or the api reference |
Yes, Overlooked args. and now I get this:
which I am pretty sure is the result of the restore not doing something. The "least surprising" thing for |
Well I'm pretty positive that |
Or maybe it is in fact a bug, but at least it should work like stated (I don't know what else this code should do) :/ |
I just verified |
I no longer reference legacy FAKE, but I'm still referencing 5.0 from Paket. |
@jackfoxy Can I just clone your repository on master to reproduce? |
@matthid I just now updated github with my latest in master https:/jackfoxy/FsRegEx |
@jackfoxy jackfoxy/FsRegEx#5 seems to work fine (ie dotnet-restore seems to work). |
Applied @matthid PR, thanks. It must be environmental on my side, somehow. If I comment Uncommenting that line results in
Am I on the wrong version of dotnet?
|
No idea, I have a similar version
|
Is there still something open here? |
Last I tried to use it, it still didn't work for me. |
Yes let me know if you found a way to reproduce... |
Description
FAKE.DotNet.DotNet.Restore id |>ignore does not properly restore.
Repro steps
Expected behavior
successful restore and build
Actual behavior
C:\Program Files\dotnet\sdk\2.1.104\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(327,5): error : Assets file 'E:\Temp\FsRegEx\src\FsRegEx\obj\project.assets.json' not f
ound. Run a NuGet package restore to generate this file. [E:\Temp\FsRegEx\src\FsRegEx\FsRegEx.fsproj]
Known workarounds
revert back to
DotNetCli.Restore id
The text was updated successfully, but these errors were encountered: