{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/sourcelink/issues/163","repository_url":"https://api.github.com/repos/dotnet/sourcelink","labels_url":"https://api.github.com/repos/dotnet/sourcelink/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/sourcelink/issues/163/comments","events_url":"https://api.github.com/repos/dotnet/sourcelink/issues/163/events","html_url":"https://github.com/dotnet/sourcelink/issues/163","id":357419608,"node_id":"MDU6SXNzdWUzNTc0MTk2MDg=","number":163,"title":"Cannot find package PDB file when running as a unit test or console app","user":{"login":"tfadler","id":42788888,"node_id":"MDQ6VXNlcjQyNzg4ODg4","avatar_url":"https://avatars1.githubusercontent.com/u/42788888?v=4","gravatar_id":"","url":"https://api.github.com/users/tfadler","html_url":"https://github.com/tfadler","followers_url":"https://api.github.com/users/tfadler/followers","following_url":"https://api.github.com/users/tfadler/following{/other_user}","gists_url":"https://api.github.com/users/tfadler/gists{/gist_id}","starred_url":"https://api.github.com/users/tfadler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfadler/subscriptions","organizations_url":"https://api.github.com/users/tfadler/orgs","repos_url":"https://api.github.com/users/tfadler/repos","events_url":"https://api.github.com/users/tfadler/events{/privacy}","received_events_url":"https://api.github.com/users/tfadler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-05T21:58:07Z","updated_at":"2018-12-05T00:20:25Z","closed_at":null,"author_association":"NONE","body":"This may be a mistake on my end.\r\n\r\nEnvironment: \r\n- Visual Studio 15.8.2\r\n- .Net SDK 2.1.401\r\n- xunit 2.4.0\r\n- xunit.runner.visualstudio 2.4.0\r\n\r\nNotable VS Settings Tools -> Options -> Debugging\r\n- Disabled Enable Just My Code\r\n- Enable Source Link Support\r\n- Fall back to Git Credential Manager authentication for all Source Link requests\r\n- Enable Source Server Support\r\n- Print source server diagnostic messages to Output window\r\n\r\nMy SourceLink settings on my package:\r\n`<PublishRepositoryUrl>true</PublishRepositoryUrl> `\r\n`<EmbedUntrackedSources>true</EmbedUntrackedSources> `\r\n`<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>`\r\n\r\nAnd \r\n`\r\n<PackageReference Include=\"Microsoft.SourceLink.Bitbucket.Git\" Version=\"1.0.0-beta-63127-02\">`\r\n\r\n**Good News:**\r\n\r\nWhen I run my ASP.Net Core application in debug and look at the Modules dialog it loads the PDB for my package seamlessly!  Stepping into the code works great too!\r\n\r\nHere is the Symbol Load Information\r\n\r\n`C:\\Program Files\\dotnet\\CompanyName.Shared.UtilsTemp.pdb: Cannot find or open the PDB file.\r\nC:\\Users\\USERNAME\\.nuget\\packages\\companyname.shared.utilstemp\\1.0.17\\lib\\netcoreapp2.1\\CompanyName.Shared.UtilsTemp.pdb: Symbols loaded.\r\n`\r\n\r\n**My problem:**\r\n\r\nWhen run unit tests in debug and look at the Modules dialog it does not load the PDB and cannot find it without help (browsing to the pdb file manually).\r\n\r\nHere is the Symbol Load Information:\r\n\r\n`C:\\Program Files\\dotnet\\CompanyName.Shared.UtilsTemp.pdb: Cannot find or open the PDB file.\r\nC:\\Projects\\Manager\\tests\\AssetTest\\bin\\Debug\\netcoreapp2.1\\CompanyName.Shared.UtilsTemp.pdb: Cannot find or open the PDB file.\r\nC:\\Projects\\SharedTools\\src\\UtilsTemp\\obj\\Release\\netcoreapp2.1\\CompanyName.Shared.UtilsTemp.pdb: Cannot find or open the PDB file.\r\nC:\\WINDOWS\\CompanyName.Shared.UtilsTemp.pdb: Cannot find or open the PDB file.\r\nC:\\WINDOWS\\symbols\\dll\\CompanyName.Shared.UtilsTemp.pdb: Cannot find or open the PDB file.\r\nC:\\WINDOWS\\dll\\CompanyName.Shared.UtilsTemp.pdb: Cannot find or open the PDB file.\r\nC:\\Users\\USERNAME~1\\AppData\\Local\\Temp\\SymbolCache\\CompanyName.Shared.UtilsTemp.pdb\\971694d6c8ad48b2a8822afe53830e2effffffff\\CompanyName.Shared.UtilsTemp.pdb: Cannot find or open the PDB file.\r\nC:\\Users\\USERNAME~1\\AppData\\Local\\Temp\\SymbolCache\\MicrosoftPublicSymbols\\CompanyName.Shared.UtilsTemp.pdb\\971694d6c8ad48b2a8822afe53830e2effffffff\\CompanyName.Shared.UtilsTemp.pdb: Cannot find or open the PDB file.\r\nC:\\Users\\USERNAME~1\\AppData\\Local\\Temp\\SymbolCache\\CompanyName.Shared.UtilsTemp.pdb\\971694d6c8ad48b2a8822afe53830e2e1\\CompanyName.Shared.UtilsTemp.pdb: Cannot find or open the PDB file.\r\nC:\\Users\\USERNAME~1\\AppData\\Local\\Temp\\SymbolCache\\MicrosoftPublicSymbols\\CompanyName.Shared.UtilsTemp.pdb\\971694d6c8ad48b2a8822afe53830e2e1\\CompanyName.Shared.UtilsTemp.pdb: Cannot find or open the PDB file.\r\n`\r\n\r\nFor reasons I can not figure out when running as a unit test the files in .nuget\\packages are not checked.\r\n\r\nThoughts?  \r\n\r\nAny help would be welcomed.  "},"comment":{"url":"https://api.github.com/repos/dotnet/sourcelink/issues/comments/444310145","html_url":"https://github.com/dotnet/sourcelink/issues/163#issuecomment-444310145","issue_url":"https://api.github.com/repos/dotnet/sourcelink/issues/163","id":444310145,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDMxMDE0NQ==","user":{"login":"AArnott","id":3548,"node_id":"MDQ6VXNlcjM1NDg=","avatar_url":"https://avatars2.githubusercontent.com/u/3548?v=4","gravatar_id":"","url":"https://api.github.com/users/AArnott","html_url":"https://github.com/AArnott","followers_url":"https://api.github.com/users/AArnott/followers","following_url":"https://api.github.com/users/AArnott/following{/other_user}","gists_url":"https://api.github.com/users/AArnott/gists{/gist_id}","starred_url":"https://api.github.com/users/AArnott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AArnott/subscriptions","organizations_url":"https://api.github.com/users/AArnott/orgs","repos_url":"https://api.github.com/users/AArnott/repos","events_url":"https://api.github.com/users/AArnott/events{/privacy}","received_events_url":"https://api.github.com/users/AArnott/received_events","type":"User","site_admin":false},"created_at":"2018-12-05T00:20:25Z","updated_at":"2018-12-05T00:20:25Z","author_association":"NONE","body":"I found [this doc](https://github.com/dotnet/designs/blob/master/accepted/diagnostics/debugging-with-symbols-and-sources.md) which includes this guidance for the build system: \r\n\r\n> If a code binary is copied to a location, also copy the symbol file to the same location. In most cases, this will be to the application bin directory.\r\n\r\nObviously this bit isn't (yet?) being followed for .NET Framework targeted applications."}}
{"actor":{"display_login":"AArnott"}}