-
Notifications
You must be signed in to change notification settings - Fork 55
Does this work with onpremise Git server such as Atlassian Stash ? #39
Comments
If the on-premise Git servers exposes a raw URL and has compatible authentication, then it should. It would be worth trying out. A quick search shows that it does expose a raw url: https://jira.atlassian.com/browse/STASH-3082 So in build.fsx, you would create the srcsrv with something like:
|
@ctaggart thank you for your quick response, we will try this out and let you know how it goes but i have some basic questions about SourceLink in general :
|
SourceLink is just a library that helps automate source indexing of pdb files. Source indexing is something that the Microsoft debuggers already support. I recommend including the pdb files with the dll files in the NuGet packages. pdb files include the md5 checksums for the source files. The source index is just a map of how to get the source files used. The debuggers, including Visual Studio, will download the source file on the fly when debugging. The debuggers support several ways to authenticate. I recommend simply trying it out. |
thanks for the update. We have figured out that we can't use your NuGet package because it depends on F Sharp and MSbuild where both cann't be referenced for the projects we use which is Windows Phone 8 and some projects for Xamarin for iOS and Android so we have to make our own changes to PDB and put the GIT info in there. We just don't know how to solve the Authentication problem like how do you make a command that access the Git repo thru an URL and get the authentication details from the user which has to end up in the PDB file, any ideas ? How did you solve this in your solution ? |
Yes, SourceLink.Fake uses FAKE, the F# Make build system. It does not add any references to your project. Mono doesn't use pdb files. Just create a URL and Windows debuggers support various authentication types. My blog has a SourceLink label. Check out the first post. |
Thanks, |
SourceLink builds on the source indexing HTTP support. srcsrv.dll, just like symsrv.dll can obtain the "source using the logon information provided by the operating system." It "supports HTTPS sites protected by smartcards, certificates, and regular logins and passwords." Using SymSrv I recommend using the more secure HTTP support than running commands like powershell. |
Atlassian Stash doesn't support raw files. You have to use the HTTP API with basic authentication to get a JSON response of LINES, that you must output to a file on your own. This is one of the reasons I started this project. https://github.com/theonlylawislove/SourceIndexingSharp This will eventually (not yet), support indexing source files from Stash's API. You can see the code I got to extract a file at an exact commit from the HTTP API here. My project (SourceIndexingSharp) will require that a "SourceIndexingSharpExtractor.exe" to be placed in your system's PATH somewhere. Using my own exe to do the extracting, we could extract for a wider array of sources, including custom providers, and even CodePlex. |
Correct, it work with on-premise git servers that support serving the raw files via http/https. For example, it works with TFS on-premise. I'm surprised Stash doesn't support that. It would be great to request that feature from Atlassian. |
Does this work with onpremise Git server such as Atalssian Stash ?
The text was updated successfully, but these errors were encountered: