Open JaggerJo opened 4 years ago
@BenVillalobos let me know if you need further information.
@BenVillalobos is there anything new / did you have a chance to look at this ?
This is kind of a blocking issue for me, so if there is anything else I should try or look at please let me know.
@JaggerJo I'll be taking a look at this soon!
@BenVillalobos Great!
I noticed that the Permission denied exception gets thrown becauss ‘msbuild’ tries to execute ‘fsc.exe’ directly (instead via ‘’dotnet ...’).
Maybe an environment variable is missing - I’d somehow assume it has a correct default value..
Looking forward to your findings!
@JaggerJo Jumping back on this train, I'm having trouble repro'ing the issue. A whole lot of
C:\Program Files\dotnet\sdk\5.0.100-preview.7.20366.6\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(115,5): error MSB4018: The "AllowEmptyTelemetry" task failed unexpectedly.
C:\Program Files\dotnet\sdk\5.0.100-preview.7.20366.6\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(115,5): error MSB4018: System.TypeLoadException: Could not load type 'System.Environment' from assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
that I'm unfamiliar with.
While I get that sorted out, I'm fairly certain this is related to fsc
as you mentioned. Are you using MSBuildLocator here?
@JaggerJo Jumping back on this train, I'm having trouble repro'ing the issue. A whole lot of
C:\Program Files\dotnet\sdk\5.0.100-preview.7.20366.6\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(115,5): error MSB4018: The "AllowEmptyTelemetry" task failed unexpectedly. C:\Program Files\dotnet\sdk\5.0.100-preview.7.20366.6\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(115,5): error MSB4018: System.TypeLoadException: Could not load type 'System.Environment' from assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
that I'm unfamiliar with.
Hmm, that's strange. The error is also reproducible with any other SDK version I tried (3.1.200 for example).
While I get that sorted out, I'm fairly certain this is related to
fsc
as you mentioned. Are you using MSBuildLocator here ?
Basically, I've ported the parts I need to F# (Find SDK path, Set Env Variables and intercept assembly loading). Just to make sure I did not miss something important I just fetched MSBuildLocator and tried to build an F# Project with it. (failure)
By now I suspect I'm (and the sample projects) are missing some configuration (Environment?) variables that are only needed by F# related targets.
Steps to reproduce
BuildCoordinator.buildSolution(solutionPath: string)
method or hardcode a solution path in Program.mainExpected behavior
Solution is compiled without errors.
Actual behavior
Compilation fails with error.
Environment data
msbuild /version
output:OS info: macOS Catalina (10.15.05)
Additional info