Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where are assemblies with Strong Name? #141

Closed
takuya-takeuchi opened this issue Nov 29, 2015 · 11 comments
Closed

Where are assemblies with Strong Name? #141

takuya-takeuchi opened this issue Nov 29, 2015 · 11 comments

Comments

@takuya-takeuchi
Copy link

Please forgive the boring questions.

I develop small application with Material Design Xaml Toolkit.
But this application must to be signed with string name.
So all referenced assemblies need to be signed.

I can not find signed 'MaterialDesignThemes.Wpf' and 'MaterialDesignThemes.MahApps'.
Will you not provide signed dlls?

If you never provide them, I have to compile source code to add strong name, right?

Thank you for your cooperation.

@ButchersBoy
Copy link
Collaborator

Hi, I suggest using this to strong name the assemblies as part of your build process:

https://github.com/dsplaisted/strongnamer

@takuya-takeuchi
Copy link
Author

Oh my god!!!
Build errors Was removed!! It's miracle!!!

Thank you for telling me good tool!!!

@ButchersBoy
Copy link
Collaborator

Happy days :)

@dorufoaltin
Copy link

The solution with strongnamer does not work. I have created a small strong project with just 3 nuggets and the themes applied in application resources and the app will crash at runtime with the following message:

Could not load file or assembly 'MaterialDesignThemes.Wpf, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"MaterialDesignThemes.Wpf, PublicKeyToken=null.

Check the sample project to easily reproduce the issue: StrongTesting.zip

Do you have any solution for this?

@ButchersBoy
Copy link
Collaborator

Put of curiosity, did you sign the Colours assembly too?

@dorufoaltin
Copy link

Yes, the Colours assembly is also signed.

@dorufoaltin
Copy link

I've found a different solution:

I've embedded all the unsigned material design dlls into my main assembly using Fody.Costura.

Thanks for your help.

@C1rdec
Copy link

C1rdec commented Dec 1, 2017

Any update on this ?

@mumarniaz
Copy link

We also have the same problem. We need signed assemblies and there is no signed assemblies from Material Design.

@Keboo
Copy link
Member

Keboo commented Dec 9, 2018

@rmorgan001
Copy link

I just ran into this and wanted to leave a note that it's an issue with strongnamer. When it runs it is not properly updating the BAML (the compiled form of XAML). here is what worked for me.

public App()
{
AppDomain.CurrentDomain.AssemblyResolve += CurrentDomainOnAssemblyResolve;
}

private Assembly CurrentDomainOnAssemblyResolve(object sender, ResolveEventArgs args)
{
var assemblyName = new AssemblyName(args.Name);
var assembly = AppDomain.CurrentDomain.GetAssemblies()
.FirstOrDefault(a => a.GetName().Name == assemblyName.Name);
return assembly;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants