{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/4627","repository_url":"https://api.github.com/repos/Microsoft/visualfsharp","labels_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/4627/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/4627/comments","events_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/4627/events","html_url":"https://github.com/Microsoft/visualfsharp/issues/4627","id":308884137,"node_id":"MDU6SXNzdWUzMDg4ODQxMzc=","number":4627,"title":"Building an F# 3.0 (FSharp.Core, 2.3.0.0) app fails","user":{"login":"atifaziz","id":20511,"node_id":"MDQ6VXNlcjIwNTEx","avatar_url":"https://avatars2.githubusercontent.com/u/20511?v=4","gravatar_id":"","url":"https://api.github.com/users/atifaziz","html_url":"https://github.com/atifaziz","followers_url":"https://api.github.com/users/atifaziz/followers","following_url":"https://api.github.com/users/atifaziz/following{/other_user}","gists_url":"https://api.github.com/users/atifaziz/gists{/gist_id}","starred_url":"https://api.github.com/users/atifaziz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atifaziz/subscriptions","organizations_url":"https://api.github.com/users/atifaziz/orgs","repos_url":"https://api.github.com/users/atifaziz/repos","events_url":"https://api.github.com/users/atifaziz/events{/privacy}","received_events_url":"https://api.github.com/users/atifaziz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-03-27T09:11:25Z","updated_at":"2018-08-15T15:12:37Z","closed_at":null,"author_association":"NONE","body":"#### Repro steps\r\n\r\nProvide the steps required to reproduce the problem\r\n\r\n1. In Visual Studio 2017, select **File** &rarr; **New** &rarr; **Project**\r\n2. When **New Project** dialog appears, select **Installed** &rarr; **Visual F#** in the tree pane on the left and then choose **Console Applicaiton**\r\n3. From the **Framework** drop-down, select **.NET Framework 2.0** as shown below:\r\n   ![image](https://user-images.githubusercontent.com/20511/37955496-06b81b16-31a9-11e8-87d1-99c04b2599cf.png)\r\n4. Click **OK**.\r\n\r\n#### Expected behavior\r\n\r\nExpected the new project to be created and build without errors.\r\n\r\nIf F# 3.0 (FSharp.Core, 2.3.0.0) or building for .NET Framework 2.0 is no longer supported then I expect the UI options to be disabled or absent. If additional (out-of-band) components need to be downloaded and installed then the UI should reflect that.\r\n\r\n#### Actual behavior\r\n\r\nAfter step 4, the following error appears:\r\n\r\n![image](https://user-images.githubusercontent.com/20511/37955511-17185804-31a9-11e8-926c-96bc70009fae.png)\r\n\r\nOnce the error dialog box is closed and one tries to build the project, the build fails with the following output:\r\n\r\n```\r\n1>------ Build started: Project: TestApp, Configuration: Debug Any CPU ------\r\n1>C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\MSBuild\\15.0\\Bin\\Microsoft.Common.CurrentVersion.targets(2052,5): warning MSB3267: The primary reference \"System.ValueTuple\", which is a framework assembly, could not be resolved in the currently targeted framework. \".NETFramework,Version=v2.0\". To resolve this problem, either remove the reference \"System.ValueTuple\" or retarget your application to a framework version which contains \"System.ValueTuple\".\r\n1>C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\MSBuild\\15.0\\Bin\\Microsoft.Common.CurrentVersion.targets(2052,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly \"FSharp.Core\". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.\r\n1>FSC: error FS0193: The module/namespace 'System' from compilation unit 'mscorlib' did not contain the namespace, module or type 'Lazy`1'\r\n1>T:\\TestApp\\Program.fs(4,3): error FS0039: The type 'EntryPoint' is not defined.\r\n1>T:\\TestApp\\Program.fs(6,5): error FS0039: The value or constructor 'printfn' is not defined.\r\n1>Done building project \"TestApp.fsproj\" -- FAILED.\r\n1>\r\n1>Build FAILED.\r\n========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========\r\n```\r\n\r\n#### Additional information \r\n\r\n* Operating system: Microsoft Windows 10 Pro, version 10.0.16299\r\n* Microsoft Visual Studio Enterprise 2017 , Version 15.6.4\r\n* Microsoft .NET Framework Version 4.7.02556 (4.7.1)\r\n\r\n**F# desktop language support** and **.NET Framework 3.5 development tools** are installed:\r\n\r\n![image](https://user-images.githubusercontent.com/20511/37957801-27fd38aa-31af-11e8-8276-644fcc95a7c0.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/comments/413229411","html_url":"https://github.com/Microsoft/visualfsharp/issues/4627#issuecomment-413229411","issue_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/4627","id":413229411,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzIyOTQxMQ==","user":{"login":"cartermp","id":6309070,"node_id":"MDQ6VXNlcjYzMDkwNzA=","avatar_url":"https://avatars0.githubusercontent.com/u/6309070?v=4","gravatar_id":"","url":"https://api.github.com/users/cartermp","html_url":"https://github.com/cartermp","followers_url":"https://api.github.com/users/cartermp/followers","following_url":"https://api.github.com/users/cartermp/following{/other_user}","gists_url":"https://api.github.com/users/cartermp/gists{/gist_id}","starred_url":"https://api.github.com/users/cartermp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartermp/subscriptions","organizations_url":"https://api.github.com/users/cartermp/orgs","repos_url":"https://api.github.com/users/cartermp/repos","events_url":"https://api.github.com/users/cartermp/events{/privacy}","received_events_url":"https://api.github.com/users/cartermp/received_events","type":"User","site_admin":false},"created_at":"2018-08-15T15:12:37Z","updated_at":"2018-08-15T15:12:37Z","author_association":"CONTRIBUTOR","body":"Aha! That'd do it I suppose 🙂. I'll close this out for now, but please do ping back if you notice any further issues.\r\n\r\nAnother potential work item here is to update the [docs](https://docs.microsoft.com/en-us/dotnet/fsharp/get-started/install-fsharp?tabs=windows) to mention how to get FSharp.Core for older .NET Framework targets. Does that seem like a good place to have that information?"}}
{"actor":{"display_login":"cartermp"}}