Skip to content

MSBuild setup manual is wrong #747

@xperiandri

Description

@xperiandri

Docs suggest:

<Target Name="FSharpLint" AfterTargets="BeforeBuild">
 <Exec
   Command="dotnet fsharplint -f msbuild lint --lint-config $(MSBuildThisFileDirectory)/fsharplint.json $(MSBuildProjectFullPath)"
   ConsoleToMsBuild="true"
   IgnoreExitCode="false"
 />
</Target>

but the Ionide.ProjInfo then it gathers project information and executes such targets for that:

ResolveAssemblyReferencesDesignTime
ResolveProjectReferencesDesignTime
ResolvePackageDependenciesDesignTime
FindReferenceAssembliesForReferences
_GenerateCompileDependencyCache
_ComputeNonExistentFileProperty
BeforeBuild
BeforeCompile
CoreCompile

which causes circular execution.
Trying to call linting in a command line, having such a target hangs my PC

@Numpsy, @TheAngryByrd do you know if it is possible to suppress Ionide.ProjInfo of executing any targets?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions