-
Notifications
You must be signed in to change notification settings - Fork 146
Error when compiling on console #626
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
Comments
@imetallica can you give it a try with Paket or forcing redirect in proj file. See if that thing works? |
I came across the same problem today. I was curios about the difference between dotnet-cli and Visual Studio. According to the logs, the F#-compiler (fsc) is called with the exact same parameters (resolved assemblies etc) in both cases, but while Visual Studio executes it using:
Both refer to the same version ("10.4.0 for F# 4.6") on my system. Long story short: I still have no idea, what is going on, but using |
@schauerte are you using Paket ? If yes then it is simple. You can just put force redirect near the name of package, in package dependency. You can refer the doc. If not then it is little difficult in .net core. It is doing based on some settings in proj file. I don't remember the current name of it. Search for redirect in dot net core project. If you can't find out then let me know. Will try to search for you. |
I'm having the same issue with dotnet cli. I'll see if I can make progress with one of the suggestions above |
Same issue, I'll try to use redirections to fix it. Will update on whether it works or not |
Having the same issue, using Paket. Builds fine in Visual Studio, but not using dotnet build (from fake). Tried |
I also have the same issue. Has anyone found a solution? |
No, I couldn't make it work. In the end I changed the project to
Typescript+Node.js. Anyone was able to fix it?
…On Thu, Aug 29, 2019, 16:25 Samuel ***@***.***> wrote:
I also have the same issue. Has anyone found a solution?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#626?email_source=notifications&email_token=AH3JCKC6PZO36VIGIRWOO6LQHA5FPA5CNFSM4H5FYEQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5P37NY#issuecomment-526368695>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH3JCKAUSCESOHR65FV2G6TQHA5FPANCNFSM4H5FYEQQ>
.
|
@kunjee17: No, I'm not using Paket. I wonder how Paket may be able change this and (after consulting the docs) came to the conclusion, that Paket is only able to emit binding redirects for PONs (plain old .NET projects - non core). I didn't invest a lot of time, since for now, we can live with the Can anyone please guide me to some other resources if I'd taken it wrong? |
@schauerte what would be the msbuild workaround? I never found a workaround for this issue |
@isthistechsupport since we are using Visual Studio, this issue hits us when we try to build on our ci-server. This works on Windows only and we have Visual Studio installed on the build server (which should not be required). |
@schauerte thanks. The workaround is good enough for me right now. |
@schauerte sadly I'm trying to deploy a docker build to heroku, I don't think I can use VS' msbuild for that. I'll look into it, but having to deploy msbuild on top of everything else is inconvenient to say the least. Regardless, thank you for the advice! |
I'm experiencing this issue as well using SQLProvider 1.1.71 and targeting .NET Core 3.0. Builds fine in VS, but crashes when running For reference, here is the error message in English:
Since I'm using Azure DevOps for |
Description
I'm trying to compile my project via
dotnet build
, but it cannot load theSystem.Data.SqlClient
assembly. Wierdly enough, it does compile on Visual Studio 2019 and Intellisense works as well.Repro steps
dotnet new console -lang F#
dotnet add package SQLProvider
Add this code:
And this is the
.fsproj
:dotnet build
Expected behavior
Load properly the assembly.
Actual behavior
Known workarounds
I've tried the recommended workarounds, such as, copying the DLL to the given destination dir, but without success.
Related information
The text was updated successfully, but these errors were encountered: