Hi.
I'd like to embed Standard.Licensing.dll and Device.Id into an exe.
I've added both dlls has references and put CopyLocal to false
I've added Device.Id and Standard.Licensing.dll to a Directory called dll
I've changed the property to RessourcesEmbeded
And in Main app I've this
Hi. I'd like to embed Standard.Licensing.dll and Device.Id into an exe. I've added both dlls has references and put CopyLocal to false I've added Device.Id and Standard.Licensing.dll to a Directory called dll I've changed the property to RessourcesEmbeded And in Main app I've this
[STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); AppDomain.CurrentDomain.AssemblyResolve += OnResolveAssembly; Application.Run(new Frm_LicenseManager()); }
and this
`private static Assembly OnResolveAssembly(object sender, ResolveEventArgs args) { Assembly executingAssembly = Assembly.GetExecutingAssembly(); AssemblyName assemblyName = new AssemblyName(args.Name);
in Frm_LicenseManager, I can do generate a deviceId , it works, But, when generate a license, I've got a crash!
`var dictionary = new Dictionary<string, string> { { "MachineId", _deviceId } };