{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/sdk/issues/1518","repository_url":"https://api.github.com/repos/dotnet/sdk","labels_url":"https://api.github.com/repos/dotnet/sdk/issues/1518/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/sdk/issues/1518/comments","events_url":"https://api.github.com/repos/dotnet/sdk/issues/1518/events","html_url":"https://github.com/dotnet/sdk/issues/1518","id":251351993,"number":1518,"title":"Setting BaseIntermediateOutputPath breaks netstandard2.0 builds","user":{"login":"Zastai","id":13708975,"avatar_url":"https://avatars1.githubusercontent.com/u/13708975?v=4","gravatar_id":"","url":"https://api.github.com/users/Zastai","html_url":"https://github.com/Zastai","followers_url":"https://api.github.com/users/Zastai/followers","following_url":"https://api.github.com/users/Zastai/following{/other_user}","gists_url":"https://api.github.com/users/Zastai/gists{/gist_id}","starred_url":"https://api.github.com/users/Zastai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zastai/subscriptions","organizations_url":"https://api.github.com/users/Zastai/orgs","repos_url":"https://api.github.com/users/Zastai/repos","events_url":"https://api.github.com/users/Zastai/events{/privacy}","received_events_url":"https://api.github.com/users/Zastai/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-08-18T20:34:33Z","updated_at":"2018-02-28T09:49:39Z","closed_at":"2017-08-31T03:59:01Z","author_association":"NONE","body":"# Setting BaseIntermediateOutputPath breaks netstandard2.0 builds\r\n\r\nI have a solution with multiple projects.\r\nThese import a common properties file (as the first thing in the project file), which set BaseIntermediateOutputPath (along with IntermediateOutputPath and OutputPath) in order to have build artifacts outside the source tree.\r\nThis has so far worked fine.\r\n\r\nHowever, with the 2.0 SDK, this breaks when targeting netstandard2.0; none of the types from the standard libraries are found.\r\nAs such, this seems related to #803; however, the same problem does not occur when targeting netcoreapp2.0 (which I would assume to have the same basic setup).\r\n\r\n# Steps to Reproduce\r\n\r\n1. run: `dotnet new classlib`\r\n2. delete the `obj` folder\r\n3. edit project file, adding `<BaseIntermediateOutputPath>foo\\</BaseIntermediateOutputPath>`\r\n_(any value works as long as it's not `obj\\`)_\r\n4. run: `dotnet restore`\r\n_this correctly creates the relevant files in `foo\\`_\r\n5. run: `dotnet build`\r\n_lots of CS0518 and CS0246 errors ensue_\r\n\r\n# Partial Workaround\r\n\r\nTo a certain extent this can be worked around by explicitly adding PackageReference entries for the needed standard library assemblies (e.g. adding System.Runtime 4.3.0 makes the basic classlib sample compile). Note that adding a reference to NETStandard.Library 2.0.0 does _not_ help; that results in a build warning plus the same compilation issues).\r\nHowever, for some new APIs (e.g. `SerializableAttribute` and `ExternalException`) it does not seem so obvious to find which packages to reference (the API docs list assemblies, not packages; neither System.Runtime nor System.Runtime.InteropServices provides `ExternalException`, despite what the [docs](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.externalexception?view=netstandard-2.0) suggest).\r\n\r\nNote that without #1486 I could probably just customize RestoreOutputPath instead (unless there are other files that are created via BaseIOP instead of IOP/ROP/OP)."},"comment":{"url":"https://api.github.com/repos/dotnet/sdk/issues/comments/369185536","html_url":"https://github.com/dotnet/sdk/issues/1518#issuecomment-369185536","issue_url":"https://api.github.com/repos/dotnet/sdk/issues/1518","id":369185536,"user":{"login":"davkean","id":1103906,"avatar_url":"https://avatars1.githubusercontent.com/u/1103906?v=4","gravatar_id":"","url":"https://api.github.com/users/davkean","html_url":"https://github.com/davkean","followers_url":"https://api.github.com/users/davkean/followers","following_url":"https://api.github.com/users/davkean/following{/other_user}","gists_url":"https://api.github.com/users/davkean/gists{/gist_id}","starred_url":"https://api.github.com/users/davkean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davkean/subscriptions","organizations_url":"https://api.github.com/users/davkean/orgs","repos_url":"https://api.github.com/users/davkean/repos","events_url":"https://api.github.com/users/davkean/events{/privacy}","received_events_url":"https://api.github.com/users/davkean/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T09:49:38Z","updated_at":"2018-02-28T09:49:38Z","author_association":"MEMBER","body":"@DoCode Please file a new bug."}}
{"actor":{"display_login":"davkean"}}