Recently I started to checkout the newer version of Microsoft dotnet. However, the tooling [Visual Studio / VSCode] were all like, you have to be connected to the internet and also need to be updated. Few of the packages are moving the bleeding edge, the remaining still lagging behind.
As a normal developer that is used to .Net Framework 4.7, it really is a worst experience, as you get all weird errors, but no help from Microsoft groups. I ran into this while running a test case in XUnit where there is a huge mess. I made a simple check-in for ASP.NET Security which took 1 hour but trying to setup debugging and running the tests have taken approx 2 days and not yet successful.
Given this much pain, it will be worth moving to a different language and trying to get up to speed as I was never expecting Microsoft to screw up the developer’s life so bad with the newer versions.
I ran into a situation today wherein I was required to debug the Google Authentication middleware built on top of OWIN.
I already had the code checked out from Katana project in CodePlex. However, when I tried to use, it was the latest bits [dev channel]. My app was using the version 2.1 and the dev version was in 3.0.
Tired of searching the tag for the version 2.1, I came to know that the symbols for the various open source projects are made available from SymbolSource.org
Given this piece of information, I read the steps on how to configure the symbol server in Visual studio and then upon successful source registration, I was able to step through the middlewares and do the debugging stuff.
Things that I did were,
- Grab the public [authentication less uri access] from Symbol Source [
- Go to Tools -> Options -> Debugger -> General.
- Uncheck “Enable Just My Code (Managed only)”.
- Uncheck “Enable .NET Framework source stepping”. Yes, it is misleading, but if you don’t, then Visual Studio will ignore your custom server order (see further on) and only use it’s own servers.
- Check “Enable source server support”.
- Uncheck “Require source files to exactly match the original version”
- Go to Tools -> Options -> Debugger -> Symbols.
- Select a folder for the local symbol/source cache. You may experience silent failures in getting symbols if it doesn’t exist or is read-only for some reason.
- Add symbol servers under “Symbol file (.pdb) locations”. Pay attention to the correct order, because some servers may contain symbols for the same binaries: with or without sources. We recommend the following setup:
http://srv.symbolsource.org/pdb/Public or the authenticated variant (see above)
http://srv.symbolsource.org/pdb/MyGet or the authenticated variant (see above)
- These steps are highlighted in the Uri [http://www.symbolsource.org/Public/Wiki/Using]
This saved me a lot of time than hunting for the specified tagged version and to build them and then use it.
Hope this helps
In order to stop visual studio from showing a file preview on clicking the file in the solution explorer, we can turn it off using the following step
Go To: Tools > Options > Environment > Tabs and Windows, you can disable it by unckecking “Solution explorer” under Preview tab.
This is applicable only for visual studio 2012 and higher
There is a fix, but you have to get your hands dirty 😉
1.take the vsix file, open with zip or rar, extract to a convenient location, open the extracted folder,
2.open the extension manifest with notepad, change the name inside the name tag
<?xml version=”1.0″ encoding=”utf-8″?>
<Vsix xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” Version=”1.0.0″ xmlns=”http://schemas.microsoft.com/developer/vsx-schema/2010“>
3. zip the complete folder, rename the zip file extension to vsix
4. click on vsix and execute.
Tracked back from http://smartclient.codeplex.com/discussions/215292