Skip to content
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

FSharp.Formatting package contains MSBuild assemblies #714

Closed
rainersigwald opened this issue Oct 29, 2021 · 2 comments
Closed

FSharp.Formatting package contains MSBuild assemblies #714

rainersigwald opened this issue Oct 29, 2021 · 2 comments

Comments

@rainersigwald
Copy link

While helping investigate test failures in ionide/FsAutoComplete#825, I noticed that FSharp.Formatting contains several MSBuild assemblies:

  • Microsoft.Build.Framework.dll
  • Microsoft.Build.Tasks.Core.dll
  • Microsoft.Build.Utilities.Core.dll
  • Microsoft.NET.StringTools.dll

That caused some surprising behavior, since MSBuild assemblies need to be located from Visual Studio or a .NET SDK rather than redistributed with an application, because of their entanglement with targets and tasks that are part of the SDK. MSBuildLocator docs have some details.

Can those files be elided from the package?

@baronfel
Copy link
Collaborator

They seem to be packaged as content in the project file here, which seems odd to me. Since this project is the library package, I'm not sure it should have msbuild refs directly, instead relying on its package dependencies to bring those in if required.

The msbuild refs might be required by the dotnet tool via the proj-info reference, but that's an entirely different scenario.

In any case, for that PR we'll likely drop the dependency, as it was powering one rarely-used feature, until this is resolved.

@nhirschey
Copy link
Collaborator

Closed with #715

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants