{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/471","labels_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/471/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/471/comments","events_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/471/events","html_url":"https://github.com/Microsoft/visualfsharp/issues/471","id":81580956,"number":471,"title":"StartUpToDateCheck(null, 1) throws ArgumentException","user":{"login":"jcansdale","id":11719160,"avatar_url":"https://avatars.githubusercontent.com/u/11719160?v=3","gravatar_id":"","url":"https://api.github.com/users/jcansdale","html_url":"https://github.com/jcansdale","followers_url":"https://api.github.com/users/jcansdale/followers","following_url":"https://api.github.com/users/jcansdale/following{/other_user}","gists_url":"https://api.github.com/users/jcansdale/gists{/gist_id}","starred_url":"https://api.github.com/users/jcansdale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcansdale/subscriptions","organizations_url":"https://api.github.com/users/jcansdale/orgs","repos_url":"https://api.github.com/users/jcansdale/repos","events_url":"https://api.github.com/users/jcansdale/events{/privacy}","received_events_url":"https://api.github.com/users/jcansdale/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/visualfsharp/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Microsoft/visualfsharp/labels/pri-2","name":"pri-2","color":"B404AE"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/milestones/1","html_url":"https://github.com/Microsoft/visualfsharp/milestones/VS%202015","labels_url":"https://api.github.com/repos/Microsoft/visualfsharp/milestones/1/labels","id":1091469,"number":1,"title":"VS 2015","description":"Issues/work/PRs that are slated to go in for F# 4.0/VS 2015","creator":{"login":"latkin","id":5943573,"avatar_url":"https://avatars.githubusercontent.com/u/5943573?v=3","gravatar_id":"","url":"https://api.github.com/users/latkin","html_url":"https://github.com/latkin","followers_url":"https://api.github.com/users/latkin/followers","following_url":"https://api.github.com/users/latkin/following{/other_user}","gists_url":"https://api.github.com/users/latkin/gists{/gist_id}","starred_url":"https://api.github.com/users/latkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latkin/subscriptions","organizations_url":"https://api.github.com/users/latkin/orgs","repos_url":"https://api.github.com/users/latkin/repos","events_url":"https://api.github.com/users/latkin/events{/privacy}","received_events_url":"https://api.github.com/users/latkin/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":17,"state":"open","created_at":"2015-04-30T17:50:34Z","updated_at":"2015-05-27T23:57:51Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-05-27T19:05:12Z","updated_at":"2015-05-28T12:07:51Z","closed_at":null,"body":"Call to IVSBuildableProjectCfg.StartUpToDateCheck(null, 1) throws an ArgumentException on VS 2015 RC F# projects. The 1 indicates the VSUTDCF_DTEEONLY flag is set.\r\n\r\nOn C# and other common project types, this call indicates whether Visual Studio thinks the project needs building. I've found it to be the quickest and most reliable way to find which projects need building. Unfortunately this method doesn't seem to be well documented.\r\n\r\nHere is the full exception:\r\n\r\n[11268] System.ArgumentException: Value does not fall within the expected range. \r\n[11268] at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) \r\n[11268] at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure) \r\n[11268] at Microsoft.VisualStudio.FSharp.ProjectSystem.Utilities.TryGetActiveConfigurationAndPlatform(IServiceProvider serviceProvider, IVsHierarchy hierarchy, ConfigCanonicalName& configCanonicalName) \r\n[11268] at Microsoft.VisualStudio.FSharp.ProjectSystem.ProjectConfig.IsUpToDate(OutputWindowLogger logger, Boolean testing) \r\n[11268] at Microsoft.VisualStudio.FSharp.ProjectSystem.BuildableProjectConfig.StartUpToDateCheck(IVsOutputWindowPane pane, UInt32 options)\r\n\r\nI think this method may have always returned false on previous versions (rather than throwing an exception). This isn't a show stopper."},"comment":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/comments/106291667","html_url":"https://github.com/Microsoft/visualfsharp/issues/471#issuecomment-106291667","issue_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/471","id":106291667,"user":{"login":"enricosada","id":147243,"avatar_url":"https://avatars.githubusercontent.com/u/147243?v=3","gravatar_id":"","url":"https://api.github.com/users/enricosada","html_url":"https://github.com/enricosada","followers_url":"https://api.github.com/users/enricosada/followers","following_url":"https://api.github.com/users/enricosada/following{/other_user}","gists_url":"https://api.github.com/users/enricosada/gists{/gist_id}","starred_url":"https://api.github.com/users/enricosada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enricosada/subscriptions","organizations_url":"https://api.github.com/users/enricosada/orgs","repos_url":"https://api.github.com/users/enricosada/repos","events_url":"https://api.github.com/users/enricosada/events{/privacy}","received_events_url":"https://api.github.com/users/enricosada/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T12:07:51Z","updated_at":"2015-05-28T12:07:51Z","body":"@jcansdale see pr #473 . \r\nDisabled both QueryStartUpToDateCheck ( supported = 0 ) and StartUpToDateCheck. \r\nNow behave like the old code, and testdrive works ok :smile: \r\n"}}