assemblies

Is Uri available in some other assembly than System in .NET 3.5, or how can I resolve Uri in this RestSharp code otherwise?

拥有回忆 提交于 2019-12-13 00:44:33
问题 I am trying to get a bare bones bit of RestSharp into my Windows CE / Compact Framework 3.5 app. This minimalistic code: RestClient client = new RestClient("http://192.164.144.42:72921/"); RestRequest request = new RestRequest("api/vendorItems/", Method.GET); RestResponse response = client.Execute(request) as RestResponse; string content = response.Content; // raw content as string ...first caused a problem because I had to change this: RestResponse response = client.Execute(request); ...to

System.Reflection

余生长醉 提交于 2019-12-12 23:12:33
问题 let us consider im having an application AAA. From my application im loaded an assembly named as BBB.When im in BBB path, i need to get the AAA Assembly name at run time. how to accomplish this? Thanks in advance 回答1: The call to: Assembly.GetExecutingAssembly() will return the assembly it's written in (the currently executing assembly). Or in your case, maybe you'll need: Assembly.GetEntryAssembly() to get the executable assembly (the assembly that the application was started with). 来源:

Where does VS 2010 Tools' gacutil.exe install assemblies?

て烟熏妆下的殇ゞ 提交于 2019-12-12 17:40:48
问题 I used the Visual Studio 2010 Command Prompt's gacutil.exe to install an assembly. I expected the assembly to be added to C:\WINDOWS\assemblies , but it was instead added to C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL and is not showing up in C:\WINDOWS\assemblies . Is this a problem and should I be concerned that it's not showing up there? 回答1: The GAC location was changed in .Net 4. Check .NET 4.0 has a new GAC, why? for details. 来源: https://stackoverflow.com/questions/3055880/where-does-vs

Is it possible to reference a VS2005 website project from another project in the same solution?

拥有回忆 提交于 2019-12-12 16:58:19
问题 I'd like to add nunit testing to a VS2005 C# ASP.NET website project - so that I can excercise methods in the App_Code directory. It's recommended that the tests are added as a seperate assembly so that the testing code does not get delivered with the website - in this lies my question: When I add a new project into the solution which holds the website and try to add a reference to the website project it does not show up in the projects tab - is it possible to reference a website project from

Check if loaded assembly is domain neutral

久未见 提交于 2019-12-12 12:26:54
问题 I've installed a few assemblies in GAC. Now, I'm loading them dynamicly in separate AppDomains. Is there way to check if they are loaded as domain neutral assemblies? 回答1: I found the solution by myself. Just use Process Explorer, get details of the process and then go to .Net Assemblies tab. But it need to run Process Explorer as administartor. 来源: https://stackoverflow.com/questions/21313007/check-if-loaded-assembly-is-domain-neutral

How to programatically find the bytecode (CIL) in a .Net executable/dll?

守給你的承諾、 提交于 2019-12-12 10:17:22
问题 I would like to open a PE file (which i know is a .Net assembly) and find where the .Net bytecode is (ideally starting at the entrypoint). I know that the PE header data (entrypoint RVA) take me just to a stub which calls CorExeMain from mscoree.dll . This is not what i'm looking for though. I would like to find the bytecode that gets run by mscorlib. How can i do that using C++ and no external tools like ildasm, dumpbin etc. ? I can already parse the PE header and know what image base/RVA

Python for .Net Error: ImportError: No module named

好久不见. 提交于 2019-12-12 10:13:38
问题 We are using Python for .Net to call .NET API built using C# from Python script. We are getting ImportError: No module named - error when an import is done as follows. Python script: import sys sys.path.append(r"C:\myfolderA\myfolderB") print sys.path import clr clr.FindAssembly(r"AA.BB.CC") clr.AddReference(r"AA.BB.CC") from AA.BB.CC.Api.DDInterface import DDClient On the above line I am getting following error Traceback (most recent call last): File "C:\myfolderA\myfolderB\testAPI.py", line

How do I combine an unmanaged dll and a managed assembly into one file?

旧巷老猫 提交于 2019-12-12 09:38:10
问题 SQLite from PHX Software has combined a managed assembly (System.Data.SQLite) with an unmanaged dll (the SQLite 32- or 64-bit dll) into one file, and managed to link them together. How do I do this? Do I need to embed the managed assembly into the unmanaged dll, or vice versa? ie. my questions are: In which order do I need to do this? What tools or knowledge do I need in order to do this? How (if different) do I link to the exported functions from the unmanaged dll in my managed code? The

StructureMap and scanning assemblies

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 08:38:42
问题 So, I have a .NET solution that uses StructureMap, and I'd like to have StructureMap read an outside assembly that implements an interface from a project in that solution and defines the registry entry for it. StructreMap configuration for my solution: ObjectFactory.Initialize(registry => { registry.Scan(assembly => { assembly.TheCallingAssembly(); //Telling StructureMap to sweep a folder called "extensions" directly //underneath the application root folder for any assemblies found in that

.NET: Serializing object to a file from a 3rd party assembly (to make Selenium WebDriver faster)

心不动则不痛 提交于 2019-12-12 07:57:46
问题 End Goal for serializing FirefoxDriver (my question here) = making WebDriver faster!! Below is a link that describes how to serialize an object. But it requires you implement from ISerializable for the object you are serializing. What I'd like to do is serialize an object that I did not define--an object based on a class in a 3rd party assembly (from a project reference) that is not implementing ISerializable . Is that possible? How can this be done? http://www.switchonthecode.com/tutorials