{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/5216","repository_url":"https://api.github.com/repos/Microsoft/visualfsharp","labels_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/5216/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/5216/comments","events_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/5216/events","html_url":"https://github.com/Microsoft/visualfsharp/issues/5216","id":334144165,"node_id":"MDU6SXNzdWUzMzQxNDQxNjU=","number":5216,"title":"FSX in Visual Studio has design-time issues with netstandard","user":{"login":"0x53A","id":4236651,"node_id":"MDQ6VXNlcjQyMzY2NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4236651?v=4","gravatar_id":"","url":"https://api.github.com/users/0x53A","html_url":"https://github.com/0x53A","followers_url":"https://api.github.com/users/0x53A/followers","following_url":"https://api.github.com/users/0x53A/following{/other_user}","gists_url":"https://api.github.com/users/0x53A/gists{/gist_id}","starred_url":"https://api.github.com/users/0x53A/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x53A/subscriptions","organizations_url":"https://api.github.com/users/0x53A/orgs","repos_url":"https://api.github.com/users/0x53A/repos","events_url":"https://api.github.com/users/0x53A/events{/privacy}","received_events_url":"https://api.github.com/users/0x53A/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-20T15:57:43Z","updated_at":"2018-06-20T16:49:13Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"__Everything works at run-time (using fake as the host).__\r\n\r\nRepository here: https://github.com/0x53A/visualfsharp-issue-5216\r\n\r\n1) \"dotnet restore\"\r\n2) \"dotnet fake run\" (it won't do anything because the default target is empty, but is needed to restore all packages)\r\n3) open ``build.fsx`` in Visual Studio\r\n\r\nissues:\r\n\r\n1) without referencing netstandard.dll manually, _everything_ is red.\r\n\r\n![grafik](https://user-images.githubusercontent.com/4236651/41667926-74c37fc2-74ae-11e8-92ae-89aebb081f97.png)\r\n\r\n\r\n2) with referencing netstandard.dll manually, there are two errors:\r\n\r\n```\r\n#if !FAKE\r\n#r @\"C:\\Users\\rieluk\\.nuget\\packages\\netstandard.library\\2.0.3\\build\\netstandard2.0\\ref\\netstandard.dll\"\r\n#endif\r\n```\r\n\r\n![grafik](https://user-images.githubusercontent.com/4236651/41669949-4999c540-74b3-11e8-8b1d-c600636fc528.png)\r\n![grafik](https://user-images.githubusercontent.com/4236651/41669959-5284abfc-74b3-11e8-8a33-ea81d43b2f31.png)\r\n\r\n\r\n\r\nVersion:\r\n\r\n\r\n![grafik](https://user-images.githubusercontent.com/4236651/41667852-4165038a-74ae-11e8-88c8-33ec416b9bfa.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/comments/398819920","html_url":"https://github.com/Microsoft/visualfsharp/issues/5216#issuecomment-398819920","issue_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/5216","id":398819920,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODgxOTkyMA==","user":{"login":"matthid","id":1866463,"node_id":"MDQ6VXNlcjE4NjY0NjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1866463?v=4","gravatar_id":"","url":"https://api.github.com/users/matthid","html_url":"https://github.com/matthid","followers_url":"https://api.github.com/users/matthid/followers","following_url":"https://api.github.com/users/matthid/following{/other_user}","gists_url":"https://api.github.com/users/matthid/gists{/gist_id}","starred_url":"https://api.github.com/users/matthid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthid/subscriptions","organizations_url":"https://api.github.com/users/matthid/orgs","repos_url":"https://api.github.com/users/matthid/repos","events_url":"https://api.github.com/users/matthid/events{/privacy}","received_events_url":"https://api.github.com/users/matthid/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T16:49:13Z","updated_at":"2018-06-20T16:49:13Z","author_association":"CONTRIBUTOR","body":"Btw this was reported to fake as well: https://github.com/fsharp/FAKE/issues/1938\r\n@0x53A thanks for reporting it here, because I'm kind of lost on this. This is in fact a problem for paket as well (load script generation, which is basically what FAKE is using here).\r\n\r\nQuestion is:\r\n- Does paket need to detect if a package depends on netstandard and insert a framework reference to `netstandard`?\r\n- Does paket need to reflect on assemblies and figure this out?\r\n- Do packages need to use framework references?\r\n- Should we just always add `#r \"netstandard\"` at this point?\r\n- Does the IDE need to do something?\r\n- Anything else?\r\n\r\nI don't think it is in fact an IDE problem. But I'm thankful on any information about this, especially how you are supposed to properly reference netstandard as `#r \"netstandard\"` doesn't seem to be portable (on mono), see https://github.com/ionide/ionide-vscode-fsharp/issues/839\r\n\r\n"}}
{"actor":{"display_login":"matthid"}}