.net-assembly

Can my project reference an assembly targeting a lower version of .net framework?

陌路散爱 提交于 2019-12-11 19:42:13
问题 I'v not been too long on the .net platform.less than 2months. I'm having this "could not load type blah.blah.blah from assembly blah. So i'v been battling it with several resources including the suggestions in diff post here.Still no luck. but the closest suggestion seems to indicate that some of references might be targeting a lower version of .net. Actually there are many many references targeting different versions and within some of this references there are many more dependent assemblies

.net registered dll does not show function in vb6

China☆狼群 提交于 2019-12-11 16:58:15
问题 net dll (PasswordHashLibrary) to be used in vb6 application. after creating the project, i went to project properties -> build -> Register for COM interop. Then registered this dll on my machine using regasm command. Started a fresh vb6 project -> added reference to PasswordHashLibrary Now the vb6 project allows me to write the following Dim objHash As New PasswordHashLibrary.Hash PasswordHashLibrary = namespace Hash = Class But it doesn't let me call any functions inside (class and functions

Compile C# code dynamically without using original required assemblies

余生颓废 提交于 2019-12-11 16:37:24
问题 I'm compiling the C# code written by end-user dynamically in my software. In order to compile the code I need to add some assemblies as reference to CompilerParameters. CompilerParameters loParameters = new CompilerParameters(); loParameters.ReferencedAssemblies.Add("C:\A.dll") loParameters.ReferencedAssemblies.Add("C:\B.dll") Therefore I should release these assemblies ("A.dll" and "B.dll") with my software, but because of security reason I don't want the user can access the source of these

How to Change the LockScreen back ground (find windows.system.UserProfile.dll)?

风格不统一 提交于 2019-12-11 15:57:26
问题 I started a windows form application which imports images from files and store them and specify a radio button to each one. it have a button with the name 'Lock' so if user select one radio button and then press the button the app should change the lock screen image and then Lock the screen. But I don't know how to set the image and lock the screen. I googled later and the answer about the LockScreen.blabla didn't work for me because I can't do using windows.system.userprofile; If some one

WPF C# Unable to find subfolder image resource

╄→гoц情女王★ 提交于 2019-12-11 14:28:56
问题 I have several images in an assembly that I have all marked as resource in their property setting. For testing I put an image at the root of my project. Img.Source = new BitmapImage(new Uri("pack://application:,,,/MyAssembly;component/image.png", UriKind.Absolute)); and it finds and loads the image just fine. If I place the image in a subfolder no matter what folder or what level, it returns back that it is unable to find the resource. The folder structure is Resources/Base/Weather/image.png

C# How to correctly set assembly title for Windows 8 Task Manager?

醉酒当歌 提交于 2019-12-11 14:15:14
问题 I've set the title & assembly info of my C# Winforms executable as follow: [assembly: AssemblyTitle("Widgets Galore")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Widgets Inc")] [assembly: AssemblyProduct("Widgets Galore")] [assembly: AssemblyCopyright("Copyright © Widgets Inc 2012")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] ... MainForm.Text = "Widgets Galore by Widgets Incorporated"; ... // Compiles to:

Dynamically loading different assemblies that are copies of each other

点点圈 提交于 2019-12-11 11:14:32
问题 I've written a pluggable application that loads plugins as assemblies. Each plugin reads an XML configuration file which basically has different string settings. Everything works fine with different plugins, but I'm experiencing strange behavior when I copy and paste an existing plugin assembly dll (but change it's XML configuration). Plugin A |- PluginA.dll |- PluginA.xml Plugin B |- PluginB.dll |- PluginB.xml The original assembly (A) and copied assembly (B) are loaded, but it seems that

How to load a resource from an Uri containing its assembly and path from any assembly?

旧街凉风 提交于 2019-12-11 10:34:08
问题 I want to load any resource from any assembly (of the same app) using only its uri. Both assemblies are part of the same application. Because I want to be able to load from any assembly, I can't use "App" or "Application" which is not defined in a general Dll. I think part or the answer is using : System.Reflection.Assembly.GetCallingAssembly().GetManifestResourceStream(path); But I can't find how to properly find/extract/resolve the assembly from the uri? Notes: The resource is actually

Creating multiple .xaml Views

≯℡__Kan透↙ 提交于 2019-12-11 10:08:28
问题 I want to create multiple instances of a .xaml UserControl named view.xaml , which resides in an assembly dir1\asm.dll and dir2\asm.dll whereas asm.dll is the same assembly that only differs in its version number and the implementation of view.xaml. I have the following setup: public void TestCreation() { Assembly asm = null; asm = Assembly.LoadFile("dir1\asm.dll"); CreateView(asm); // works! asm = Assembly.LoadFile("dir2\asm.dll"); CreateView(asm); // works! asm = Assembly.LoadFile("dir1\asm

Xamarin Studio iOS assembly error

江枫思渺然 提交于 2019-12-11 08:27:45
问题 After I updated my Xamarin Studio (iOS) it gives me this error when trying to build/debug. I ain't got no clue how to fix this, would appreciate some help Error: The type 'MonoTouch.UIKit.UIView' is defined in an assembly that is not referenced. Consider adding a reference to assembly 'monotouch, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' I am using "AlexTouch.MBProgressHUD.dll" and I have added it to my usings. 回答1: The public key token of monotouch.dll changed in Xamarin.iOS 6.2