{"action":"created","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus.Metrics.PerformanceCounters/issues/53","repository_url":"https://api.github.com/repos/Particular/NServiceBus.Metrics.PerformanceCounters","labels_url":"https://api.github.com/repos/Particular/NServiceBus.Metrics.PerformanceCounters/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus.Metrics.PerformanceCounters/issues/53/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus.Metrics.PerformanceCounters/issues/53/events","html_url":"https://github.com/Particular/NServiceBus.Metrics.PerformanceCounters/issues/53","id":307830171,"number":53,"title":"Project build exception when referencing a project with PerformanceCounters msbuild package","user":{"login":"alex-training","id":13032219,"avatar_url":"https://avatars3.githubusercontent.com/u/13032219?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-training","html_url":"https://github.com/alex-training","followers_url":"https://api.github.com/users/alex-training/followers","following_url":"https://api.github.com/users/alex-training/following{/other_user}","gists_url":"https://api.github.com/users/alex-training/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-training/subscriptions","organizations_url":"https://api.github.com/users/alex-training/orgs","repos_url":"https://api.github.com/users/alex-training/repos","events_url":"https://api.github.com/users/alex-training/events{/privacy}","received_events_url":"https://api.github.com/users/alex-training/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-22T21:59:50Z","updated_at":"2018-03-23T02:16:23Z","closed_at":null,"author_association":"NONE","body":"Hi @Particular/metrics-maintainers, @weralabaj , @bording \r\n\r\nI have 2 project in my solution: the one for hosting NServiceBus endpoint with metrics, the other for unit tests.\r\n\r\nThe project with tests is referencing the main project and for some reason can not be build.\r\nEvery time on build I'm getting an exception: \r\n\r\n`Could not copy the file \"Tests\\bin\\NServiceBus.Metrics.PerformanceCounters\\Powershell\\CreateNSBPerfCounters.ps1\" because it was not found.`\r\n\r\n![11](https://user-images.githubusercontent.com/13032219/37800390-4d44f26a-2e2b-11e8-8c86-4dce7db18871.png)\r\n\r\nNotice that actual CreateNSBPerfCounters.ps1 is located in the wrong folder:\r\n`Tests\\bin\\NServiceBus.Metrics.PerformanceCounters\\bin\\NServiceBus.Metrics.PerformanceCounters\\Powershell\\CreateNSBPerfCounters.ps1`\r\n\r\nTo be honest I was not expecting any ps-files inside the project with tests at all.\r\n\r\nI'm using:\r\nJetBrains Rider 2017/ Visual Studio 2017\r\nNServiceBus.Metrics.PerformanceCounters.MsBuild\" version=\"2.0.0\""},"comment":{"url":"https://api.github.com/repos/Particular/NServiceBus.Metrics.PerformanceCounters/issues/comments/375518387","html_url":"https://github.com/Particular/NServiceBus.Metrics.PerformanceCounters/issues/53#issuecomment-375518387","issue_url":"https://api.github.com/repos/Particular/NServiceBus.Metrics.PerformanceCounters/issues/53","id":375518387,"user":{"login":"alex-training","id":13032219,"avatar_url":"https://avatars3.githubusercontent.com/u/13032219?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-training","html_url":"https://github.com/alex-training","followers_url":"https://api.github.com/users/alex-training/followers","following_url":"https://api.github.com/users/alex-training/following{/other_user}","gists_url":"https://api.github.com/users/alex-training/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-training/subscriptions","organizations_url":"https://api.github.com/users/alex-training/orgs","repos_url":"https://api.github.com/users/alex-training/repos","events_url":"https://api.github.com/users/alex-training/events{/privacy}","received_events_url":"https://api.github.com/users/alex-training/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T02:16:23Z","updated_at":"2018-03-23T02:16:23Z","author_association":"NONE","body":"@bording \r\n\r\nSo, I attached a very small sample.\r\n\r\nI made some tests and I must say that the issue is reproducible only in [JetBrains Rider IDE](https://www.jetbrains.com/rider/)\r\n\r\nAlso it is strange that IDE generates 2 times \"bin\" folder:\r\n\r\n`bin\\NServiceBus.Metrics.PerformanceCounters\\bin\\NServiceBus.Metrics.PerformanceCounters`\r\n\r\nI feel like the issue could be related to the standard msbuild variables used while building the project.\r\n\r\n[MetricsWithIssue.zip](https://github.com/Particular/NServiceBus.Metrics.PerformanceCounters/files/1839876/MetricsWithIssue.zip)\r\n"}}
{"actor":{"display_login":"alex-training"}}