Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@txdv
Copy link
Contributor

@txdv txdv commented Jan 29, 2011

The commit message is self-explanatory.

gacutil just used the filename (which can be different compared to
the assembly name) in order to install assemblies, though afterwards
entirely relied on the filename to be equal to the assembly name.
In other words, installing assemblies where the filename differed
from the assembly name resulted in an incorrect install: the
files were not visible in the GAC.

Example: gacutil -i mysql.data.dll
Wouldn't return any errors, but the assembly (which is called MySql.Data)
still couldn't be reached.

This patch will check for filename compliance and return an error
if it does not comply, which will look like this:
Failure adding assembly v4/mysql.data.dll to the cache: the filename "mysql.data.dll" doesn't match the assembly name "MySql.Data"

A warning is not sufficient, since it will be impossible to remove
the installed junk with gacutil.
@migueldeicaza
Copy link
Contributor

A

This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants