When i try changing the assembly (or root namespcace) name of my project my code doesn`t excute properly anymore, the way i`m doing that is by right clicking over my project in the project explorer and clicking properties from there. is there a way to change it so that it does.
here`s some of the code that doesn`t work after i change the assembly name:
Public Function GetEmbeddedIcon(ByVal iconName As String) As Icon
Dim assemblyExecution As System.Reflection.Assembly = Me.GetType.Assembly.GetEntryAssembly()
Dim namespaceName As String = assemblyExecution.GetName().Name.ToString()
iconName = namespaceName & "." & iconName
Dim streamIcon As Stream = assemblyExecution.GetManifestResourceStream(iconName)
Dim iconEmbedded As Icon = New Icon(streamIcon)
it gives me the following error:
An unhandled exception of type 'System.ArgumentException' occurred in system.drawing.dll
Additional information: 'null' is not a valid value for 'stream'.