Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Source file not found
-
Hi Guys!
I've already took a look at the following questions, but I can't figure out my problem.
I have a problem reguarding the source files and symbols using ProGet and VS2017.
My scenario is the following
- Develop test assembly on my pc
- Push mod files on our git server
- Get mod files in our TeamCity (2018.2.4)
- Build source in Release mode, pack and publish the AssemblyTest.symbols.nupkg on ProGet
- In VS2017 I've create a test console app, install the AssemblyTest via Package Reference and I've tried simply to press F12 on the class in my code to show the source code.
I've configure VS2017 as the guide suggests here
The nuget pack command was launched with -symbols command line parameter and the symbol.nupkg was created with the following stucture
- package
- service
- metadata
- ...
- service
- lib
- net472
- TestAssembly.dll
- TestAssembly.pdb
- TestAssembly.xml
- net472
- src
- Properties
- AssemblyInfo.cs
- TestClass.cs
- Properties
Pressing F12 on TestClass in my code the pdb was correctly downloaded in
c:\users\me\appdata\local\temp\symbolcache\testassembly.pdb\bf5be5cd155e4400b9b18c0e1e6a05941\testassembly.pdb
and selecting ReSharper item form the drop down list on the output window in Visual Studio I see
PdbNavigator: Downloader: http://srv.symbolsource.org/pdb/Public/testassembly.pdb/bf5be5cd155e4400b9b18c0e1e6a05941/testassembly.pdb -> The remote server returned an error: (500) Internal Server Error. <= OK, it's MS symbol server
PdbNavigator: Downloader: http://myproget/symbols/dev/testassembly.pdb/bf5be5cd155e4400b9b18c0e1e6a05941/testassembly.pdb -> ok, 15.5 KB <= OK, it's our ProGet server
PdbNavigator: Searching for 'TestAssembly.TestClass' type sources in C:\Users\me\AppData\Local\Temp\SymbolCache\TestAssembly.pdb\bf5be5cd155e4400b9b18c0e1e6a05941\TestAssembly.pdb
PdbNavigator: Downloader: http://myproget/source-files/dev/TestAssembly/1.0.0.10/TestClass.cs -> The remote server returned an error: (404) Not Found. <= Here we come :(
PdbNavigator: No sources found in debugging information for 'TestAssembly.TestClass' in assembly 'TestAssembly, Version=1.0.0.10, Culture=neutral, PublicKeyToken=null'
In my symbolcache folder there is a subfolder with this path
C:\Users\me\AppData\Local\Temp\SymbolCache\src\source-files\dev\TestAssembly\1.0.0.10
but there's no source file instead.
Taking a look inside the pdb file and I've found
SRCSRV: ini ------------------------------------------------ VERSION=2 INDEXVERSION=2 VERCTRL=http SRCSRV: variables ------------------------------------------ SRCSRVVERCTRL=http PGSERVER=http://myproget/source-files PGFEED=dev PGPKGID=TestAssembly PGPKGVER=1.0.0.10 HTTP_EXTRACT_TARGET=%pgserver%/%pgfeed%/%pgpkgid%/%pgpkgver%/%var2% SRCSRVTRG=%http_extract_target% SRCSRVCMD= SRCSRV: source files --------------------------------------- c:\buildagent\work\b5cfc05c815c43d9\testassembly\testclass.cs*TestClass.cs SRCSRV: end ------------------------------------------------
So, my question is: how can I download correctly the source file from ProGet? What's wrong in my scenario?
Thank you!
FabrizioProduct: ProGet
Version: 5.1.23
-
Hi Fabrizio,
It appears that the ProGet source code is fine but the issue is with NuGet symbol & source server.
-
Hi Jason,
thank you for your reply!
So, the problem is how I pack my assebly?
How can I solve the problem?Thank you!
Fabrizio
-
Apologies, I had seen the StackOverflow post first, so I responded here: https://stackoverflow.com/questions/56338757/proget-symbols-and-source-server-download-pdb-correctly-but-source-not-found/56397293#56397293