{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/sdk/issues/1967","repository_url":"https://api.github.com/repos/dotnet/sdk","labels_url":"https://api.github.com/repos/dotnet/sdk/issues/1967/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/sdk/issues/1967/comments","events_url":"https://api.github.com/repos/dotnet/sdk/issues/1967/events","html_url":"https://github.com/dotnet/sdk/issues/1967","id":297860209,"node_id":"MDU6SXNzdWUyOTc4NjAyMDk=","number":1967,"title":"Method 'System.IO.Directory.GetParent' not found in Microsoft.PackageDependencyResolution.targets","user":{"login":"chillitom","id":74433,"node_id":"MDQ6VXNlcjc0NDMz","avatar_url":"https://avatars0.githubusercontent.com/u/74433?v=4","gravatar_id":"","url":"https://api.github.com/users/chillitom","html_url":"https://github.com/chillitom","followers_url":"https://api.github.com/users/chillitom/followers","following_url":"https://api.github.com/users/chillitom/following{/other_user}","gists_url":"https://api.github.com/users/chillitom/gists{/gist_id}","starred_url":"https://api.github.com/users/chillitom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chillitom/subscriptions","organizations_url":"https://api.github.com/users/chillitom/orgs","repos_url":"https://api.github.com/users/chillitom/repos","events_url":"https://api.github.com/users/chillitom/events{/privacy}","received_events_url":"https://api.github.com/users/chillitom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nguerrera","id":75470,"node_id":"MDQ6VXNlcjc1NDcw","avatar_url":"https://avatars0.githubusercontent.com/u/75470?v=4","gravatar_id":"","url":"https://api.github.com/users/nguerrera","html_url":"https://github.com/nguerrera","followers_url":"https://api.github.com/users/nguerrera/followers","following_url":"https://api.github.com/users/nguerrera/following{/other_user}","gists_url":"https://api.github.com/users/nguerrera/gists{/gist_id}","starred_url":"https://api.github.com/users/nguerrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguerrera/subscriptions","organizations_url":"https://api.github.com/users/nguerrera/orgs","repos_url":"https://api.github.com/users/nguerrera/repos","events_url":"https://api.github.com/users/nguerrera/events{/privacy}","received_events_url":"https://api.github.com/users/nguerrera/received_events","type":"User","site_admin":false},"assignees":[{"login":"nguerrera","id":75470,"node_id":"MDQ6VXNlcjc1NDcw","avatar_url":"https://avatars0.githubusercontent.com/u/75470?v=4","gravatar_id":"","url":"https://api.github.com/users/nguerrera","html_url":"https://github.com/nguerrera","followers_url":"https://api.github.com/users/nguerrera/followers","following_url":"https://api.github.com/users/nguerrera/following{/other_user}","gists_url":"https://api.github.com/users/nguerrera/gists{/gist_id}","starred_url":"https://api.github.com/users/nguerrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguerrera/subscriptions","organizations_url":"https://api.github.com/users/nguerrera/orgs","repos_url":"https://api.github.com/users/nguerrera/repos","events_url":"https://api.github.com/users/nguerrera/events{/privacy}","received_events_url":"https://api.github.com/users/nguerrera/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/dotnet/sdk/milestones/14","html_url":"https://github.com/dotnet/sdk/milestone/14","labels_url":"https://api.github.com/repos/dotnet/sdk/milestones/14/labels","id":3271818,"node_id":"MDk6TWlsZXN0b25lMzI3MTgxOA==","number":14,"title":"2.2.1xx","description":"","creator":{"login":"livarcocc","id":367554,"node_id":"MDQ6VXNlcjM2NzU1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/367554?v=4","gravatar_id":"","url":"https://api.github.com/users/livarcocc","html_url":"https://github.com/livarcocc","followers_url":"https://api.github.com/users/livarcocc/followers","following_url":"https://api.github.com/users/livarcocc/following{/other_user}","gists_url":"https://api.github.com/users/livarcocc/gists{/gist_id}","starred_url":"https://api.github.com/users/livarcocc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livarcocc/subscriptions","organizations_url":"https://api.github.com/users/livarcocc/orgs","repos_url":"https://api.github.com/users/livarcocc/repos","events_url":"https://api.github.com/users/livarcocc/events{/privacy}","received_events_url":"https://api.github.com/users/livarcocc/received_events","type":"User","site_admin":false},"open_issues":71,"closed_issues":20,"state":"open","created_at":"2018-04-16T19:12:28Z","updated_at":"2018-08-21T22:55:17Z","due_on":null,"closed_at":null},"comments":28,"created_at":"2018-02-16T17:21:45Z","updated_at":"2018-09-04T17:44:35Z","closed_at":null,"author_association":"NONE","body":"Getting the error discussed below on a CI box that has VS2017 Build Tools installed.  The build completes successfully on my workstation where I have VS2017 Professional 15.5 installed.  \r\n\r\nThe solution is being built using MSBuild as the `dotnet build` command fails due to this issue with ResX files: https://github.com/Microsoft/msbuild/issues/2221\r\n\r\nVersions:\r\n- NuGet: 4.5.1\r\n- MSBuild version '15.5.180.51428' from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\MSBuild\\15.0\\bin'.\r\n- dotnet sdk: 2.1.4\r\n\r\nBuilding the solution with:\r\n\r\n`C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\MSBuild\\15.0\\Bin\\MSBuild.exe  E:\\Jenkins\\workspace\\Solution\\src\\Solution.sln /t:Build /m  /nodeReuse:False /tv:15.0    /p:RestorePackages=\"False\" /p:Configuration=\"Release\"`\r\n\r\nThe error:\r\n\r\n`14>C:\\Program Files\\dotnet\\sdk\\2.1.4\\Sdks\\Microsoft.NET.Sdk\\build\\Microsoft.PackageDependencyResolution.targets(557,9): error MSB4186: Invalid static method invocation syntax: \"[System.IO.Directory]::GetParent().get_Name()\". Method 'System.IO.Directory.GetParent' not found. Static method invocation should be of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine(`a`, `b`)).  [E:\\Jenkins\\workspace\\Solution\\src\\Project\\Project.csproj]`\r\n\r\nWhich appears to come from this line:\r\n\r\n```\r\n553      <!-- These resource items are in folders with names which correspond to the locale.  Here, set the DestinationSubDirectory to the\r\n554           folder name so that it will be copied to the right target path and so conflict resolution won't think there are conflicts\r\n555           between satellite assemblies in different languages. -->\r\n556      <_ResourceCopyLocalItems Update=\"@(_ResourceCopyLocalItems)\" Condition=\"'@(_ResourceCopyLocalItems)' != ''\">\r\n557        <DestinationSubDirectory>$([System.IO.Directory]::GetParent(%(ResolvedPath)).get_Name())\\</DestinationSubDirectory>\r\n558      </_ResourceCopyLocalItems>\r\n```\r\n\r\nIt appears that for some reason ResolvedPath is blank causing MSBuild to look for a method that doesn't exist.\r\n\r\nClosest I've found from googling is [this blog post](https://ceglarek.org/2018/01/30/building-azure-functions-project-on-teamcity/). Unfortunately his solution was to switch to MSBuild which we're already using.\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/sdk/issues/comments/418457362","html_url":"https://github.com/dotnet/sdk/issues/1967#issuecomment-418457362","issue_url":"https://api.github.com/repos/dotnet/sdk/issues/1967","id":418457362,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODQ1NzM2Mg==","user":{"login":"nguerrera","id":75470,"node_id":"MDQ6VXNlcjc1NDcw","avatar_url":"https://avatars0.githubusercontent.com/u/75470?v=4","gravatar_id":"","url":"https://api.github.com/users/nguerrera","html_url":"https://github.com/nguerrera","followers_url":"https://api.github.com/users/nguerrera/followers","following_url":"https://api.github.com/users/nguerrera/following{/other_user}","gists_url":"https://api.github.com/users/nguerrera/gists{/gist_id}","starred_url":"https://api.github.com/users/nguerrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguerrera/subscriptions","organizations_url":"https://api.github.com/users/nguerrera/orgs","repos_url":"https://api.github.com/users/nguerrera/repos","events_url":"https://api.github.com/users/nguerrera/events{/privacy}","received_events_url":"https://api.github.com/users/nguerrera/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T17:44:35Z","updated_at":"2018-09-04T17:44:35Z","author_association":"MEMBER","body":"@michael-freidgeim-webjet Do you have a global.json pinning to sdk 2.1.4? Can you try removing that or updating the version to 2.1.4**00** that came with VS 15.8."}}
{"actor":{"display_login":"nguerrera"}}