I do not want to have Newtonsoft.Json.dll next to my EXE file, so I am wondering if there is any way to include Json.NET to my project without using DLL?
8958
Is it possible to embed a pre-existing DLL into a compiled C# executable (so that you only have one file to distribute)? If it is possible, how would one go about doing it?  Normally, I'm cool with just leaving the DLLs outside and having the setup program handle everything, but there have been a couple of people at work who have asked me this and I honestly don't know.
45531
For example, I rarely need:  using System.Text;   but it's always there by default. I assume the application will use more memory if your code contains unnecessary . But is there anything else I should be aware of?  Also, does it make any difference whatsoever if the same using directive is used in only one file vs. most/all files?    Edit: Note that this question is not about the unrelated concept called a , designed to help one manage resources by ensuring that when an object goes out of scope, its  method is called. See .
5811
When I try to install .net 3.5 I get the follwing message:     The following feature couldn't be installed:      .NET Framework 3.5   (includes .NET 2.0 and 3.0)      Error code: 0x800F081F   I tried with a standalone package and through Windows Features.  Update: Internet connection is fine.
32981
Is it possible to instantiate an object at runtime if I only have the DLL name and the class name, without adding a reference to the assembly in the project? The class implements a interface, so once I instantiate the class, I will then cast it to the interface.  Assembly name:     library.dll    Type name:      Company.Project.Classname     EDIT: I dont have the absolute path of the DLL, so Assembly.LoadFile won't work. The DLL might be in the application root, system32, or even loaded in the GAC.
112384
Does MSTest have standalone GUI similar to nUnit that lets me use it and run test without visual studio? What is the official site for MSTest where I can learn more about how to use it?
9944
I am not too familiar with .NET desktop applications (using ). Is it possible to have the entire application run from a single .exe file?
66054
Suppose I am writing an application in C++ and C#.  I want to write the low level parts in C++ and write the high level logic in C#.  How can I load a .NET assembly from my C++ program and start calling methods and accessing the properties of my C# classes?
91909
With VS2005, I want to create a DLL and automatically export all symbols without adding __declspec(dllexport) everywhere and without hand-creating .def files. Is threre a way to do this?
74905
Specifically, in VS 2008, I want to connect to a data source that you can have by right-clicking on the automatically-generated App_Data folder (an .mdf "database"). Seems easy, and it is once you know how.
17432
On the Windows platform, most large applications come with their own installer which sets up folders under C:\Program Files, possibly some other places, and perhaps adding some registry keys, etc.  But there's still quite a few tools around that consist of just an .exe or maybe also a README and a .dll or two.  How should I install such tools? Directly in C:\Program Files? All in one subfolder under C:\Program Files? Somewhere under C:\Users\Me? Somewhere totally different?  Or maybe different approaches for the tools with just an .exe to those that also have other files, or maybe only the ones with .dlls need to be treated differenty ...  Is there any standard accepted way to do this? A "best practice"? If the answer depends on the Windows version, I'm using Windows 7.  In particular, what might strike people as the obvious answer seems to have a catch:  I had tried to manually create new subfolders under C:\Program Files. In fact I thought I had done so before, but Windows puts up a dialog Destination Folder Access Denied. This caused me to think twice rather than just blindly click Continue.      On the assumption that greater minds than mine have come up against this many times over the years I'd like to ask the community if some kind of "best practice" has come to be accepted.
67281
When creating a new ASP.NET AJAX Web Application in Visual Studio 2005, the default web.config contains the following section (inside the compilation node):  &lt;assemblies&gt;     &lt;add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/&gt; &lt;/assemblies&gt;   Whether or not the assemblies node exists doesn't seem to affect the AJAX functionality.  Update panels, etc work fine regardless of whether or not the reference to System.Web.Extensions is included in Web.Config.  What's the purpose of this section, and can it be safely removed?
93459
I have a dll that contains a templated class. Is there a way to export it without explicit specification?
112370
I know that the .NET framework looks for referenced DLLs in several locations   Global assembly cache (GAC) Any private paths added to the AppDomain The current directory of the executing assembly   What order are those locations searched? Is the search for a DLL ceased if a match is found or does it continue through all locations (and if so, how are conflicts resolved)?  Also, please confirm or deny those locations and provide any other locations I have failed to mention.
95510
I'm trying to setup a post-build event in .NET 3.5 that will run a suite of unit tests w/ MS test.  I found  post that shows how to call a bat file using MbUnit but I'm wanting to see if anyone has done this type of thing w/ MS Test?  If so, I would be interested in a sample of what the bat file would look like
105788
By default, IIS6 does not serve .json (no wildcard MIME type).  Therefore a 404 not found is thrown. I then add a new MIME type (.json, text/plain or application/x-javascript or application/json) which works fine.  However, when you then add a new mapping (Home Directory -&gt; Configuration -&gt; Add) with .json, C:\WINDOWS\system32\inetsrv\asp.dll, "GET,POST" and try to browse to the file, you get a 404.   If you remove the mapping and try and POST or GET to it, you get a 405.  ...  Suggestions?
44224
I know there's JScript.NET, but it isn't the same as the JavaScript we know from the web.  Does anyone know if there are any JavaScript based platforms/compilers for desktop development? Most specifically Windows desktop development.
1189
Does anyone have a good solution for integrating some C# code into a java application?   The code is small, so I could re-write in java, but I would rather reuse the code if possible. Don't repeat yourself, etc.   Also, I know I can expose the C# as a web service or whatever, but it has some security/encryption stuff in there, so I would rather keep it tightly integrated if possible.    Edit: It's going to be on a server-based app, so "downloading" another runtime is irrelevant.