Closed safesparrow closed 1 year ago
Can you generate a binlog from dotnet build --no-dependencies
? This would help figure out what Targets/Properties you would want to set when cracking a project.
Actually I think this can be closed now that https://github.com/ionide/proj-info/pull/183 has been merged.
Describe the bug I want to use the ProjInfo library to generate fsc args from an .fsproj - so that I can then run type-checking/compilation tests using the results.
My problem is that
ProjectLoader.getProjectInfo
doesn't return all the command line args thatdotnet build --no-dependencies
uses when launchingfsc
.To Reproduce Steps to reproduce the behaviour:
FSharp.Compiler.ComponentTests.fsproj
in the F# compiler codebase. I've attached the code I'm using below.Expected behaviour Options/args that can be used to successfully compile the project - same ones that
dotnet build --no-dependencies
uses.Screenshots Screenshots showing MSBuild properties used by ProjInfo (right) and
dotnet build --no-dependencies
(left):And FSC task properties:
Code used to call ProjInfo
.fsproj
:Environment (please complete the following information):