{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/FSharpLint/issues/149","labels_url":"https://api.github.com/repos/fsprojects/FSharpLint/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/FSharpLint/issues/149/comments","events_url":"https://api.github.com/repos/fsprojects/FSharpLint/issues/149/events","html_url":"https://github.com/fsprojects/FSharpLint/issues/149","id":124486913,"number":149,"title":"Build fails when F# v3.1 or v3.0 is not installed","user":{"login":"mexx","id":378088,"avatar_url":"https://avatars.githubusercontent.com/u/378088?v=3","gravatar_id":"","url":"https://api.github.com/users/mexx","html_url":"https://github.com/mexx","followers_url":"https://api.github.com/users/mexx/followers","following_url":"https://api.github.com/users/mexx/following{/other_user}","gists_url":"https://api.github.com/users/mexx/gists{/gist_id}","starred_url":"https://api.github.com/users/mexx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mexx/subscriptions","organizations_url":"https://api.github.com/users/mexx/orgs","repos_url":"https://api.github.com/users/mexx/repos","events_url":"https://api.github.com/users/mexx/events{/privacy}","received_events_url":"https://api.github.com/users/mexx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-31T16:52:26Z","updated_at":"2016-01-01T18:05:37Z","closed_at":null,"body":"On my machine I only have F# 4.0 and 4.1 installed.\r\nThe build fails for all F# projects:\r\n\r\n```\r\nStatus:           Failure\r\n---------------------------------------------------------------------\r\n  1) Building D:\\Dev\\OpenSource\\FSharpLint\\FSharpLint.sln failed with exitcode 1.\r\n  2) MSB4057: D:\\Dev\\OpenSource\\FSharpLint\\src\\FSharpLint.Console\\FSharpLint.Console.fsproj(0,0): The target \"Rebuild\" does not exist in the project.\r\n  3) MSB4057: D:\\Dev\\OpenSource\\FSharpLint\\tests\\FSharpLint.Rules.Tests\\FSharpLint.Rules.Tests.fsproj(0,0): The target \"Rebuild\" does not exist in the project.\r\n  4) MSB4057: D:\\Dev\\OpenSource\\FSharpLint\\src\\FSharpLint.Application\\FSharpLint.Application.fsproj(0,0): The target \"Rebuild\" does not exist in the project.\r\n  5) MSB4057: D:\\Dev\\OpenSource\\FSharpLint\\src\\FSharpLint.Rules\\FSharpLint.Rules.fsproj(0,0): The target \"Rebuild\" does not exist in the project.\r\n  6) MSB4057: D:\\Dev\\OpenSource\\FSharpLint\\src\\FSharpLint.Framework\\FSharpLint.Framework.fsproj(0,0): The target \"Rebuild\" does not exist in the project.\r\n  7) MSB4057: D:\\Dev\\OpenSource\\FSharpLint\\tests\\FSharpLint.Framework.Tests\\FSharpLint.Framework.Tests.fsproj(0,0): The target \"Rebuild\" does not exist in the project.\r\n  8) MSB4057: D:\\Dev\\OpenSource\\FSharpLint\\tests\\FSharpLint.FunctionalTest\\FSharpLint.FunctionalTest.fsproj(0,0): The target \"Rebuild\" does not exist in the project.\r\n  9) MSB4057: D:\\Dev\\OpenSource\\FSharpLint\\src\\FSharpLint.MSBuildIntegration\\FSharpLint.MSBuildIntegration.fsproj(0,0): The target \"Rebuild\" does not exist in the project.\r\n 10) MSB4057: D:\\Dev\\OpenSource\\FSharpLint\\tests\\FSharpLint.FunctionalTest.TestedProject\\FSharpLint.FunctionalTest.TestedProject.fsproj(0,0): The target \"Rebuild\" does not exist in the project.\r\n 11) MSB4057: D:\\Dev\\OpenSource\\FSharpLint\\src\\FSharpLint.FAKE\\FSharpLint.FAKE.fsproj(0,0): The target \"Rebuild\" does not exist in the project.\r\n---------------------------------------------------------------------\r\n```"},"comment":{"url":"https://api.github.com/repos/fsprojects/FSharpLint/issues/comments/168323037","html_url":"https://github.com/fsprojects/FSharpLint/issues/149#issuecomment-168323037","issue_url":"https://api.github.com/repos/fsprojects/FSharpLint/issues/149","id":168323037,"user":{"login":"duckmatt","id":3247369,"avatar_url":"https://avatars.githubusercontent.com/u/3247369?v=3","gravatar_id":"","url":"https://api.github.com/users/duckmatt","html_url":"https://github.com/duckmatt","followers_url":"https://api.github.com/users/duckmatt/followers","following_url":"https://api.github.com/users/duckmatt/following{/other_user}","gists_url":"https://api.github.com/users/duckmatt/gists{/gist_id}","starred_url":"https://api.github.com/users/duckmatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckmatt/subscriptions","organizations_url":"https://api.github.com/users/duckmatt/orgs","repos_url":"https://api.github.com/users/duckmatt/repos","events_url":"https://api.github.com/users/duckmatt/events{/privacy}","received_events_url":"https://api.github.com/users/duckmatt/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T18:05:37Z","updated_at":"2016-01-01T18:05:37Z","body":"Looks like this might be because it's not picking up `Microsoft.FSharp.Targets` here:\r\n\r\n    <PropertyGroup Condition=\"Exists('$(MSBuildExtensionsPath32)\\..\\Microsoft SDKs\\F#\\3.0\\Framework\\v4.0\\Microsoft.FSharp.Targets')\">\r\n        <FSharpTargetsPath>$(MSBuildExtensionsPath32)\\..\\Microsoft SDKs\\F#\\3.0\\Framework\\v4.0\\Microsoft.FSharp.Targets</FSharpTargetsPath>\r\n    </PropertyGroup>\r\n    <PropertyGroup Condition=\"Exists('$(MSBuildExtensionsPath32)\\..\\Microsoft SDKs\\F#\\3.1\\Framework\\v4.0\\Microsoft.FSharp.Targets')\">\r\n        <FSharpTargetsPath>$(MSBuildExtensionsPath32)\\..\\Microsoft SDKs\\F#\\3.1\\Framework\\v4.0\\Microsoft.FSharp.Targets</FSharpTargetsPath>\r\n    </PropertyGroup>\r\n\r\nWe'll probably need to look in the directories for `4.0` and `4.1` too, from what I can see it doesn't look like there's a better way than to hardcode each version"}}