I was told that Microsoft has released reference source code for some .NET libraries (I'm especially interested in C# libraries). If it is true, I would like to download that code and use it with my VS, so I can browse the code by selecting
Go to Declaration
and
Go to Implementation
from context menu. It would be much better then just to see documentation in object browser.
So how do I get VS to work with it? Thank you.
Up-to-Date answer
All you need is this: http://referencesource.microsoft.com/
Here's an article on MSDN and you may also checkout the following article and this blog post also. This allows you to step through the framework source code while debugging your applications. Reflector is also a good tool for browsing through the compiled assemblies.
Here is reference source code for.NET from Microsoft that available for download.
Here is how to set up VS for debuging.
Darin said nearly everything. The only hint that is missing is the NetMassDownloader to get the whole source once if needed.
here you go: .net source code download link
good luck in compiling it so you can debug through it like it was one of your own projects. I don't know how big a project you've ever worked on, but this one's a big one and its not as simple as you would imagine...
The .net core, .net 5 and .net 6 runtime code can be found here:
https://github.com/dotnet/runtime
This repo contains the code to build the .NET runtime, libraries and shared host (dotnet) installers for all supported platforms, as well as the sources to .NET runtime and libraries.
Related
I have some problems with the references. But first let me clear the
circumstances. I use Win7, VS 2010, .NET Framework 3.5.
I have a project previously worked on by a colleague.
Now I have the project for some further changes and the programm does not find the Microsoft.DirectX.AudioVideoPlayback reference.
I have tried adding to manually but I do not find it in the given path.
Does anyone have another solution, which provides me the right way?
That seems to be a reference to the Microsoft DirectX SDK. You would have to download and install that first via Microsoft's website, then the DLL-files can be found in %SystemRoot%\Microsoft.NET\DirectX for Managed Code\1.0.2902.0.
I'm trying to add the Libspotify SDK to a test solution. However, I got the following error:
Now, I tried following the first answer of this question. However, all I got was:
The package of the library is structured in the following way:
Additionaly, my project is targeted to .NET Framework 4.0
And the configuration is done as follows:
What can I do to add this library?
EDIT:
Also, I found this link where someone explains that it need to be copied manually into the project output directory. I tried putting the .dll there, but I guess I have to modify something else to make it work. Any ideas?
The libspotify.dll you are trying to access is a Win32 C library, not a C# (.NET) assembly. As such, you can only use it through interop.
You don't have to do this yourself (judging by your question I'm assuming you have no previous experience with the techniques involved), you can use a ready-made solution like libspotify.NET.
I have a published asp.net website on a server and I need to get this back into a solution for editing etc. Are there any tools out there which would give me back the solution?
Ilspy did not do this for me,
Thanks in advance
You should look for .Net Decompiler tools.
Decompiler tools for .NET Framework
Some of the popular tools are:
.NET Reflector
JustDecompile (free)
I've had good experience with dotPeek
Assuming you only have the compiled versions of the pages, this can get really tricky.
You will need to use a decompiler on each assembly. Easy decompilers to use are, like Habib already suggested, .NET Reflector and JustDecompile. If you are already using ReSharper, the current version has a decompiler (dotPeek) built-in and you can also download that separately, for free, at http://www.jetbrains.com/decompiler.
The problem is that decompilers don't really reconstruct your code exactly as it was originally, and you may still have to modify things by hand. This is especially true if the code was compiled with the "Optimize code" setting set to true.
Good luck!
I installed VS.Net 2010 to play around with some of the new C# features and I'm trying to use the IDynamicObject interface but I can't because it can't find the System.Scripting namespace. What do I need to install to get this?
Thanks!
I think possibly this has been renamed:
http://msdn.microsoft.com/en-us/library/system.dynamic.idynamicmetaobjectprovider(VS.100).aspx
but perhaps someone more in tune with this knows for sure. Just sharing in case it helps unblock you.
(I know the DLR is in .Net 4.0 and VS2010-Beta2, since they just release matching updates of Iron Python/Ruby that run atop it.)
You can download the DLR libraries from codeplex. I believe they were supposed to be built into .NET 4.0, I'm not sure why they aren't in VS2010, perhaps they are not in the beta. In any case, I have been using the codeplex libraries for my experimentation, they are supposed to be the same as the .NET 4.0 version (plus some extra hosting features). They also have some reasonably good documentation on how to use it.
Edit:
Additionally, you can use the codeplex libraries with VS2008.
when we create an application in VC#, talking about .net 3.5 in particular, the are comipled to CLR, what i want is that they should be compiled to EXE executable code that doesn't require .NET Framework Environment for them to run. Is it possible
I guess you're asking how to statically link the parts of the framework your application needs. Please see this link from Jon Skeet for info on how to do that: http://www.yoda.arachsys.com/csharp/faq/#framework.required
There are 3rd party products that do this. I know of no free ones.
Even if you get a third party product, I think it just packages the .NET runtime in there somehow. I don't know how else it would run.
Why don't you just create an installer that has the .NET framework as a requirement? It should check for it and install it if the user doesn't have it already.
you can use MONO's ahead of time compiler