{"action":"created","issue":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/419","repository_url":"https://api.github.com/repos/bridgedotnet/Bridge","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/419/labels{/name}","comments_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/419/comments","events_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/419/events","html_url":"https://github.com/bridgedotnet/Bridge/issues/419","id":104887614,"number":419,"title":"Lots of red squiggles in VS using Bridge (System.Void not defined, dupe references between Bridge+mscorlib)","user":{"login":"DanTup","id":1078012,"avatar_url":"https://avatars.githubusercontent.com/u/1078012?v=3","gravatar_id":"","url":"https://api.github.com/users/DanTup","html_url":"https://github.com/DanTup","followers_url":"https://api.github.com/users/DanTup/followers","following_url":"https://api.github.com/users/DanTup/following{/other_user}","gists_url":"https://api.github.com/users/DanTup/gists{/gist_id}","starred_url":"https://api.github.com/users/DanTup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanTup/subscriptions","organizations_url":"https://api.github.com/users/DanTup/orgs","repos_url":"https://api.github.com/users/DanTup/repos","events_url":"https://api.github.com/users/DanTup/events{/privacy}","received_events_url":"https://api.github.com/users/DanTup/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bridgedotnet/Bridge/labels/defect","name":"defect","color":"FF4136"}],"state":"closed","locked":false,"assignee":{"login":"LeonidVeriga","id":11466613,"avatar_url":"https://avatars.githubusercontent.com/u/11466613?v=3","gravatar_id":"","url":"https://api.github.com/users/LeonidVeriga","html_url":"https://github.com/LeonidVeriga","followers_url":"https://api.github.com/users/LeonidVeriga/followers","following_url":"https://api.github.com/users/LeonidVeriga/following{/other_user}","gists_url":"https://api.github.com/users/LeonidVeriga/gists{/gist_id}","starred_url":"https://api.github.com/users/LeonidVeriga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeonidVeriga/subscriptions","organizations_url":"https://api.github.com/users/LeonidVeriga/orgs","repos_url":"https://api.github.com/users/LeonidVeriga/repos","events_url":"https://api.github.com/users/LeonidVeriga/events{/privacy}","received_events_url":"https://api.github.com/users/LeonidVeriga/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/milestones/23","html_url":"https://github.com/bridgedotnet/Bridge/milestones/1.12.1","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge/milestones/23/labels","id":1682962,"number":23,"title":"1.12.1","description":"","creator":{"login":"geoffreymcgill","id":62210,"avatar_url":"https://avatars.githubusercontent.com/u/62210?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffreymcgill","html_url":"https://github.com/geoffreymcgill","followers_url":"https://api.github.com/users/geoffreymcgill/followers","following_url":"https://api.github.com/users/geoffreymcgill/following{/other_user}","gists_url":"https://api.github.com/users/geoffreymcgill/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffreymcgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffreymcgill/subscriptions","organizations_url":"https://api.github.com/users/geoffreymcgill/orgs","repos_url":"https://api.github.com/users/geoffreymcgill/repos","events_url":"https://api.github.com/users/geoffreymcgill/events{/privacy}","received_events_url":"https://api.github.com/users/geoffreymcgill/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":34,"state":"open","created_at":"2016-04-04T20:12:56Z","updated_at":"2016-04-18T17:34:21Z","due_on":null,"closed_at":null},"comments":33,"created_at":"2015-09-04T13:09:40Z","updated_at":"2016-04-18T22:00:21Z","closed_at":"2016-04-15T20:22:43Z","body":"Many of my colleagues have reported this to me for a while, but I hadn't really seen it. Today, I'm seeing it, and I can't find any way to fix it.\r\n\r\nWe have a bunch of Bridge code that works, but VS reports lots of errors (mostly `Predefined type 'System.Object/Void' is not defined or imported`, but also some types defined in multiple places). There are no references to any MS `System` assemblies (screenshot includes reference below).\r\n\r\nThe repo I'm building is available here:\r\nhttps://bitbucket.org/DanRoberts/reactbridgedotnet\r\n\r\n![Squiggles](https://cloud.githubusercontent.com/assets/1078012/9684284/78b79ff6-530e-11e5-8cc2-5a481c9f9507.png)\r\n\r\nNote: The project \"works\", but finding real compile errors will be tricky like this!\r\n\r\n**UPDATE** by @DaniilVeriga:\r\nConfirmed to be a [bug](https://connect.microsoft.com/VisualStudio/feedback/details/1893825/targets-file-from-a-nuget-package-is-not-re-applied-to-the-project-after-nuget-restore) in Visual Studio by Microsoft team. They are looking to fix in the next major version of VS (after 2015)."},"comment":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/comments/211599279","html_url":"https://github.com/bridgedotnet/Bridge/issues/419#issuecomment-211599279","issue_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/419","id":211599279,"user":{"login":"LeonidVeriga","id":11466613,"avatar_url":"https://avatars.githubusercontent.com/u/11466613?v=3","gravatar_id":"","url":"https://api.github.com/users/LeonidVeriga","html_url":"https://github.com/LeonidVeriga","followers_url":"https://api.github.com/users/LeonidVeriga/followers","following_url":"https://api.github.com/users/LeonidVeriga/following{/other_user}","gists_url":"https://api.github.com/users/LeonidVeriga/gists{/gist_id}","starred_url":"https://api.github.com/users/LeonidVeriga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeonidVeriga/subscriptions","organizations_url":"https://api.github.com/users/LeonidVeriga/orgs","repos_url":"https://api.github.com/users/LeonidVeriga/repos","events_url":"https://api.github.com/users/LeonidVeriga/events{/privacy}","received_events_url":"https://api.github.com/users/LeonidVeriga/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T22:00:20Z","updated_at":"2016-04-18T22:00:20Z","body":"The key notes about the current `install.ps1` and `uninstall.ps1` state:\r\n\r\n0. Prerequisites. All the hassle with `install.ps1` is because of the VS IntelliSense squiggles issue in NuGet Restore scenario. `Bridge.targets` is not re-applied after the NuGet Bridge package restore and it is officially confirmed as a bug by VS team (#1113).\r\n\r\nIt was discovered that having `NoStdLib`, `AddAdditionalExplicitAssemblyReferences` and `AdditionalExplicitAssemblyReferences` properties in .csproj helps with the Restore scenario.\r\n\r\n1.The current `install.ps1` triggers a Reload dialogue on any new Bridge NuGet installation (`Install-Package Bridge` scenario) to ensure `NoStdLib`, `AddAdditionalExplicitAssemblyReferences` and `AdditionalExplicitAssemblyReferences` properties are applied by Visual Studio. A Reload is required to ensure the properties are applied and the VS IntelliSense squiggles issue is not reproduced.\r\n\r\n2. We could not find a way to force reloading without a user having to click the [Reload button](https://github.com/bridgedotnet/Bridge/issues/419#issuecomment-195678720) \r\n\r\n3. Bridge Project Template .vsix installation is fine, because `NoStdLib`, `AddAdditionalExplicitAssemblyReferences` and `AdditionalExplicitAssemblyReferences` properties are predefined in the project template. So, it doesn't trigger a Reload dialogue.\r\n\r\n4. `uninstall.ps1` has been removed. So, it doesn't remove `NoStdLib`, `AddAdditionalExplicitAssemblyReferences` and `AdditionalExplicitAssemblyReferences` properties from .csproj. It was done to help with the `Update-Package Bridge` scenario. `Update-Package` is `Uninstall-Package` + `Install-Package`. If we remove the properties from .csproj on `Uninstall-Package` and then add them back on `Install-Package`, a project Reload is again required to avoid the IntelliSense squiggles issue. A Reload dialogue on `Update-Package` may annoy users, so, it has been decided not to remove the properties from .csproj on `Uninstall-Package`and `Update-Package` is not triggerring a Reload dialogue.\r\n\r\n5. We tested the NuGet Restore and other scenarios enormous amount of times and sometimes the same repro steps give the different behavior. That said, even with `NoStdLib`, `AddAdditionalExplicitAssemblyReferences` and `AdditionalExplicitAssemblyReferences` properties in .csproj the VS IntelliSense squiggles errors are sometimes reproducible - though, very rare with the current workaround. If reproduced then manual re-loading of the project is [required](http://forums.bridge.net/forum/bridge-net-pro/bugs/1754-nuget-packages-cause-squigglies-if-packages-built-against-two-versions-of-bridge?p=2026#post2026)."}}