assemblies

External alias in XAML

天涯浪子 提交于 2019-12-02 11:11:13
问题 I'm currently using a library that implements Menus and ContextMenus for Silverlight 3 and 4 . This library defines a MenuItem class in the System.Windows.Controls namespace . No problems with SL3 because there is no MenuItem class elsewhere in the Silverlight class library; but now I need to use another control in a Silverlight 4 Toolkit assembly and the toolkit now defines a System.Windows.Controls.MenuItem in this same assembly ! So I need a way to indicate to the compiler that I want to

Create application domain and load assembly

丶灬走出姿态 提交于 2019-12-02 09:34:53
I want to create an application domain with default permissions and load assembly into the application domain with default privileges and execute the methods inside the assembly. You may take a look at the following article on MSDN. Or if you want to construct an instance of some type inside another AppDomain (assuming this type has a default constructor): var domain = AppDomain.CreateDomain("NewAppDomain"); var path = @"C:\work\SomeAssembly.dll"; var t = typeof(SomeType); var instance = (SomeType)domain.CreateInstanceFromAndUnwrap(path, t.FullName); The instance variable returned with this

C#: How to embed DLL into resourcefile (no dll copy in program directory)

…衆ロ難τιáo~ 提交于 2019-12-02 09:30:38
I have a C# application (project A) that requires X.dll. I have added the project that produces X.dll to A as a reference in visual studio. I have also added the release build of X.dll to a resource file in A as a binary. I have told project A not to copy X.dll to the output directory. Now I want A.exe to load, say "hey I can't find this file", then look in the resource file and use Assembly.Load(byte[]) get X.dll back. I have the code that re-magicifies the DLL back, however this code never get called. Currently I have a bone simple project, just trying to get it to work. It compile OK. When

Add Assemblies to Visual Studio 2015 ASP.NET 5

对着背影说爱祢 提交于 2019-12-02 04:18:17
问题 I want to add "Stimulsoft.Report.dll" as an assembly in my Visual Studio 2015 ASP.Net 5 project. But the reference manager does not contain the assemblies section with the extentions area(as it is in VS 2013), where i could select "Stimulsoft.Report" and add this to my references. Is there any solution adding these reference to my ASP.NET 5 project? 回答1: you can add the assembly if it available in GAC like below code "frameworks": { "aspnet50": { "frameworkAssemblies": { "Stimulsoft.Report":

External alias in XAML

喜夏-厌秋 提交于 2019-12-02 03:47:17
I'm currently using a library that implements Menus and ContextMenus for Silverlight 3 and 4 . This library defines a MenuItem class in the System.Windows.Controls namespace . No problems with SL3 because there is no MenuItem class elsewhere in the Silverlight class library; but now I need to use another control in a Silverlight 4 Toolkit assembly and the toolkit now defines a System.Windows.Controls.MenuItem in this same assembly ! So I need a way to indicate to the compiler that I want to use the System.Windows.Controls.MenuItem from my old assembly and not the one in the toolkit 4 assembly.

Detect Outlook installed and load dynamically INterop.Outlook

自闭症网瘾萝莉.ら 提交于 2019-12-02 03:20:30
问题 I have a Windows Forms application in VS2010. It has a reference to Interop.Outlook (2003). Then, I have reinstalled Windows XP and VS2010, but not install Outlook. Now, the project not compiles. I think this, my application will not work if Outlook not installed in machine that my program executes on. I need to know if I detect Outlook installed, and load dynamically Interop.Outlook.dll (for using the Outlook PIA or Embedded Interop types in .NET 4). If the machine has Outlook (2003, 2007,

Adding assembly reference requires base assembly to be referenced as well

故事扮演 提交于 2019-12-02 02:49:23
问题 I created a assembly having a child class that derives from a parent defined in another assembly. When I add reference to the child, Visula studio also requires reference to be added to the parent. Why is it so and how can I prevent it without losing any functionality? 回答1: In C/C++, class definition is present in a .h header file. That gives you ability to reference information about a class (as needed e.g. when you want to inherit from that class) without the need to source file with

Detect Outlook installed and load dynamically INterop.Outlook

人走茶凉 提交于 2019-12-02 02:23:54
I have a Windows Forms application in VS2010. It has a reference to Interop.Outlook (2003). Then, I have reinstalled Windows XP and VS2010, but not install Outlook. Now, the project not compiles. I think this, my application will not work if Outlook not installed in machine that my program executes on. I need to know if I detect Outlook installed, and load dynamically Interop.Outlook.dll (for using the Outlook PIA or Embedded Interop types in .NET 4). If the machine has Outlook (2003, 2007, 2010, perhaps need code to detect version and do compatibility of Outlook versions) installed, the

Adding assembly reference requires base assembly to be referenced as well

断了今生、忘了曾经 提交于 2019-12-02 01:28:54
I created a assembly having a child class that derives from a parent defined in another assembly. When I add reference to the child, Visula studio also requires reference to be added to the parent. Why is it so and how can I prevent it without losing any functionality? In C/C++, class definition is present in a .h header file. That gives you ability to reference information about a class (as needed e.g. when you want to inherit from that class) without the need to source file with implementation information. The downside is code duplication (implementation in .cpp file needs to repeat most of

Add Assemblies to Visual Studio 2015 ASP.NET 5

ぐ巨炮叔叔 提交于 2019-12-02 00:50:52
I want to add "Stimulsoft.Report.dll" as an assembly in my Visual Studio 2015 ASP.Net 5 project. But the reference manager does not contain the assemblies section with the extentions area(as it is in VS 2013), where i could select "Stimulsoft.Report" and add this to my references. Is there any solution adding these reference to my ASP.NET 5 project? you can add the assembly if it available in GAC like below code "frameworks": { "aspnet50": { "frameworkAssemblies": { "Stimulsoft.Report": "" } } } in the second part, you can give the version and type of the assembly Bart Calixto In your project