-
Notifications
You must be signed in to change notification settings - Fork 301
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
Fable doesn't work when using links for Nuget cache #1490
Comments
Hmm, we're using dotnet SDK to resolve references so I don't know if we can do anything here. Is this maybe an issue of MSBuild or Dotnet.ProjInfo that cannot resolve file links? (cc @enricosada) Do normal .NET Core projects work? Also, could you please run Fable with |
Attached you'll find the output of For testing I just create a new dotnet project Standard .NET Solutions using NuGet compile fine in Visual Studio 2015. |
Thanks for the log @milbrandt 👍 So as expected the list of resolved files when parsing the .fsproj point to the .nuget cache in C: (like This is the tricky, I'm not sure how to solve it. Is there an easy way from .NET to ask the OS if a path is a symbolic link? |
Unfortunately, this doesn't seem to be implemented yet 😕 |
As a work around, maybe we could add a Fable CLI argument so you can set the .nuget cache path manually. |
@alfonsogarciacaro another option would be to disable the symlink resolution in node. The following seems to work for me:
It seems further testing reveals that |
Wow, nice one! Thanks a lot for checking this @matthid! @milbrandt Could you please add |
@alfonsogarciacaro The solution with |
Thanks a lot for confirming @milbrandt. Let's accept this as the solution and close the issue for now, but please reopen it if you still experience issues. I've edited the title and the description trying to make it easier for other people to find the solution if they face the same problem. |
Is there situations where |
@Nhowka I committed the changes to our company repo and for colleagues who didn't moved their Nuget cache everything still works. |
@Nhowka We cannot control Webpack defaults, although we could add the option here: https://github.com/fable-compiler/webpack-config-template |
Description
As drive C: is pretty full I relocated the directory
%USERPROFILE%\.nuget
to another drive and linked withmklink /J .nuget F:\.nuget
.With this link, our Fable project is failing to compile, see console output below. (Without the link, it compiles fine and is working.)
To check if NuGet is the issue, I tried in Visual Studio to compile one of the C# Projects using NuGet and that works fine.
Console Output
Expected: Compiles as if
.nuget
would be located in%USERPROFILE%
directly and not as a link.EDIT: Solution below
The text was updated successfully, but these errors were encountered: