-
Notifications
You must be signed in to change notification settings - Fork 0
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
NET Framework 3.0 Change #1
base: main
Are you sure you want to change the base?
Changes from all commits
f9ef108
11585be
1a72845
8d9c864
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,6 @@ Makefile.in | |
/configure | ||
/install-sh | ||
/missing | ||
|
||
#Jetbrains stuff | ||
.idea/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,15 +220,22 @@ public static string GetGacPath (string fullName) | |
foreach (var dir in Directory.GetDirectories (asmDir, "v*_" + versionDirName)) { | ||
var dirName = Path.GetFileName (dir); | ||
i = dirName.IndexOf ('_'); | ||
Version av; | ||
if (Version.TryParse (dirName.Substring (1, i - 1), out av)) { | ||
|
||
try | ||
{ | ||
Version av = new Version(dirName.Substring(1, i - 1)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dirName.Substring could theorically fail silently here, whereas it could not before. |
||
if (av == currentVersion) | ||
return dir; | ||
else if (av < currentVersion && av > bestVersion) { | ||
|
||
if (av < currentVersion && av > bestVersion) { | ||
bestDir = dir; | ||
bestVersion = av; | ||
} | ||
} | ||
catch | ||
{ | ||
|
||
} | ||
} | ||
if (bestDir != null) | ||
return bestDir; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1272,10 +1272,19 @@ internal StringCollection Verify (AddinFileSystemExtension fs) | |
// Ensure that there are no duplicated properties | ||
|
||
if (properties != null) { | ||
HashSet<string> props = new HashSet<string> (); | ||
foreach (var prop in properties) { | ||
if (!props.Add (prop.Name + " " + prop.Locale)) | ||
List<string> props = new List<string> (); | ||
foreach (var prop in properties) | ||
{ | ||
var stringToCheck = prop.Name + " " + prop.Locale; | ||
if (props.Contains(stringToCheck)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again |
||
{ | ||
errors.Add (string.Format ("Property {0} specified more than once", prop.Name + (prop.Locale != null ? " (" + prop.Locale + ")" : ""))); | ||
} | ||
else | ||
{ | ||
props.Add(stringToCheck); | ||
} | ||
|
||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -805,7 +805,7 @@ internal void ActivateRoots () | |
|
||
void CheckHostAssembly (Assembly asm) | ||
{ | ||
if (AddinDatabase.RunningSetupProcess || asm is System.Reflection.Emit.AssemblyBuilder || asm.IsDynamic) | ||
if (AddinDatabase.RunningSetupProcess || asm is System.Reflection.Emit.AssemblyBuilder || asm.ManifestModule is System.Reflection.Emit.ModuleBuilder) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not 100% convinced here, some people seem to disagree on this in stackoverflow |
||
return; | ||
string codeBase; | ||
try { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You do not add here, which means you may see more cases where you contain it than you should.