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

Access library ProjectInfo returns incorrect AssemblyName value #231

Closed
jozefizso opened this issue Dec 23, 2018 · 2 comments
Closed

Access library ProjectInfo returns incorrect AssemblyName value #231

jozefizso opened this issue Dec 23, 2018 · 2 comments

Comments

@jozefizso
Copy link
Member

The ProjectInfo class in AccessApi library will return the value of the _namespace instead of _name field.

https://github.com/NetOfficeFw/NetOffice/blob/releases/netoffice_v1.7.4.3/Source/Access/Utils/ProjectInfo.cs#L43

 public ProjectInfo()
 {
     _assembly = typeof(ProjectInfo).Assembly;
     _assemblyAttribute = _assembly.GetCustomAttributes(typeof(NetOfficeAssemblyAttribute), true)[0] as NetOfficeAssemblyAttribute;
     _name = _assembly.GetName().Name;
 }
 public string AssemblyName
 {
     get
     {
-        return _namespace;
+        return _name;
     }
 }
 
 public string AssemblyNamespace
 {
     get
     {
         return _namespace;
     }
 }
@SebastianDotNet
Copy link
Contributor

which version?

@jozefizso
Copy link
Member Author

This is from the NetOffice 1.7.4.3 code.

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

No branches or pull requests

2 participants