{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/project-system/issues/5665","repository_url":"https://api.github.com/repos/dotnet/project-system","labels_url":"https://api.github.com/repos/dotnet/project-system/issues/5665/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/project-system/issues/5665/comments","events_url":"https://api.github.com/repos/dotnet/project-system/issues/5665/events","html_url":"https://github.com/dotnet/project-system/issues/5665","id":529052599,"node_id":"MDU6SXNzdWU1MjkwNTI1OTk=","number":5665,"title":"Guidance on programmatic up-to-date check","user":{"login":"NickDarvey","id":6076697,"node_id":"MDQ6VXNlcjYwNzY2OTc=","avatar_url":"https://avatars0.githubusercontent.com/u/6076697?v=4","gravatar_id":"","url":"https://api.github.com/users/NickDarvey","html_url":"https://github.com/NickDarvey","followers_url":"https://api.github.com/users/NickDarvey/followers","following_url":"https://api.github.com/users/NickDarvey/following{/other_user}","gists_url":"https://api.github.com/users/NickDarvey/gists{/gist_id}","starred_url":"https://api.github.com/users/NickDarvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickDarvey/subscriptions","organizations_url":"https://api.github.com/users/NickDarvey/orgs","repos_url":"https://api.github.com/users/NickDarvey/repos","events_url":"https://api.github.com/users/NickDarvey/events{/privacy}","received_events_url":"https://api.github.com/users/NickDarvey/received_events","type":"User","site_admin":false},"labels":[{"id":382413130,"node_id":"MDU6TGFiZWwzODI0MTMxMzA=","url":"https://api.github.com/repos/dotnet/project-system/labels/Discussion/Question","name":"Discussion/Question","color":"0e8a16","default":false,"description":"A discussion or question about the project that will not be treated as a bug or feature request."},{"id":678648407,"node_id":"MDU6TGFiZWw2Nzg2NDg0MDc=","url":"https://api.github.com/repos/dotnet/project-system/labels/Feature-Up-to-date","name":"Feature-Up-to-date","color":"0052cc","default":false,"description":"Build up-to-date check that avoids shelling out to MSBuild unless necessary."}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2019-11-27T00:58:11Z","updated_at":"2019-11-28T02:04:21Z","closed_at":"2019-11-28T02:04:21Z","author_association":"NONE","body":"**Visual Studio Version**: 16.3.9\r\n\r\nI'm building [an MSBuild tools NuGet package](https://github.com/NickDarvey/FSharp.Data.SqlClient.DACFx.MSBuild/blob/411e63a62e76ac7b6f670793055f9231149d46c9/source/FSharp.Data.SqlClient.DACFx.MSBuild/FSharp.Data.SqlClient.DACFx.MSBuild.targets#L31) (or whatever they're actually called) which takes artefacts produced from an SSDT project (.sqlproj) and uses them in a F# project (.fsproj).\r\nI've got it working with MSBuild command line but was running into issues with getting Visual Studio to run the build on changes. @davidwengier helpfully pointed me at up-to-date checks.\r\n\r\nBecause I'm finding the artefacts programmatically (in my package's targets)  I understand I need to override one of the [`CollectUpToDateCheck*DesignTime` targets](https://github.com/dotnet/project-system/blob/bd3d123ed061e28594f0d938dc9fefa434f5e05b/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/DesignTimeTargets/Microsoft.Managed.DesignTime.targets#L420-L444). (At least I think I do, based on [the documentation](https://github.com/dotnet/project-system/blob/master/docs/up-to-date-check.md#customization) and [this comment](https://github.com/dotnet/project-system/issues/3444#issuecomment-517529953).)\r\n\r\nHowever I'm not quite sure which one to override. The one I would expect to override based on [the docs](https://github.com/dotnet/project-system/blob/master/docs/up-to-date-check.md#copied-files) would be [`CollectUpToDateCheckBuiltDesignTime`](https://github.com/dotnet/project-system/blob/bd3d123ed061e28594f0d938dc9fefa434f5e05b/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/DesignTimeTargets/Microsoft.Managed.DesignTime.targets#L427), but that's already doing some things which I wouldn't want to copy and paste into my package in case it changes in the project system.\r\n\r\n(I am new to MSBuild and all that, so I could be majorly missing something here!)"},"comment":{"url":"https://api.github.com/repos/dotnet/project-system/issues/comments/559311482","html_url":"https://github.com/dotnet/project-system/issues/5665#issuecomment-559311482","issue_url":"https://api.github.com/repos/dotnet/project-system/issues/5665","id":559311482,"node_id":"MDEyOklzc3VlQ29tbWVudDU1OTMxMTQ4Mg==","user":{"login":"NickDarvey","id":6076697,"node_id":"MDQ6VXNlcjYwNzY2OTc=","avatar_url":"https://avatars0.githubusercontent.com/u/6076697?v=4","gravatar_id":"","url":"https://api.github.com/users/NickDarvey","html_url":"https://github.com/NickDarvey","followers_url":"https://api.github.com/users/NickDarvey/followers","following_url":"https://api.github.com/users/NickDarvey/following{/other_user}","gists_url":"https://api.github.com/users/NickDarvey/gists{/gist_id}","starred_url":"https://api.github.com/users/NickDarvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickDarvey/subscriptions","organizations_url":"https://api.github.com/users/NickDarvey/orgs","repos_url":"https://api.github.com/users/NickDarvey/repos","events_url":"https://api.github.com/users/NickDarvey/events{/privacy}","received_events_url":"https://api.github.com/users/NickDarvey/received_events","type":"User","site_admin":false},"created_at":"2019-11-28T02:04:21Z","updated_at":"2019-11-28T02:04:21Z","author_association":"NONE","body":"Thanks for the guidance on the up-to-date check, @drewnoakes. Super helpful! I very much appreciate it. I'll continue on the MSBuild side of things now!"}}
{"actor":{"display_login":"NickDarvey"}}