Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#Autosave files
*~

#build
[Oo]bj/
[Bb]in/
packages/
TestResults/
**/[Bb]uild/
**/[Dd]eploy/

# globs
Makefile.in
*.DS_Store
*.sln.cache
*.suo
*.cache
*.pidb
*.tmp
*.userprefs
*.usertasks
config.log
config.make
config.status
aclocal.m4
install-sh
autom4te.cache/
*.user
tarballs/
test-results/
Thumbs.db

#Mac bundle stuff
*.dmg
*.app

#resharper
*_Resharper.*
*.Resharper

#dotCover
*.dotCover

*/Backup/
**/UpgradeLog.htm
.vs
*.suo
obj
bin/Debug
bin/Release
bin
*.vshost.*
*.pdb
*.vs10x
*.user
.git-credentials
msbuild.log
_ReSharper.*
612 changes: 324 additions & 288 deletions Forms/MainForm.Designer.cs

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ private void AssemblyAddButton_Click (object sender, EventArgs e)
ofd.Multiselect = true;
ofd.Filter = "Assemblies (*.exe, *.dll)|*.exe; *.dll|All Files (*.*)|*.*";

if (ofd.ShowDialog () == DialogResult.OK)
foreach (string s in ofd.FileNames)
AddAssembly (s);
if (ofd.ShowDialog() == DialogResult.OK) {
foreach (string s in ofd.FileNames) AddAssembly(s);
}
}

private bool ListContainsAssembly (string file)
Expand Down
11 changes: 7 additions & 4 deletions Forms/MainForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="IntroductionLabel.Text" xml:space="preserve">
<value>The Mono Migration Analyzer (MoMA) tool helps you identify issues you may have when porting your .Net application to Mono. It helps pinpoint platform specific calls (P/Invoke) and areas that are not yet supported by the Mono project.
Expand All @@ -126,10 +126,13 @@ Use the results provided as a guide to get you started on porting your applicati

Good luck!</value>
</data>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>66</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAMAMDAAAAEAIACoJQAANgAAACAgAAABACAAqBAAAN4lAAAQEAAAAQAgAGgEAACGNgAAKAAAADAA
Expand Down
5 changes: 3 additions & 2 deletions MoMA.Analyzer/Methods/MethodExtractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ public static void ExtractFromAssembly (string assembly, SortedList<string, Meth
AssemblyDefinition ad;
try {
ad = AssemblyDefinition.ReadAssembly(assembly);
Console.WriteLine($"Analyzing {Path.GetFileName(assembly)}...");
Console.WriteLine($"Analyzing {Path.GetFileName(assembly)}... ");
} catch (Exception ex) {
Console.WriteLine($"Failed to load assembly: {assembly};\r\n{ex.Message}");
Console.CursorTop = 10;
Console.WriteLine($"Failed to load assembly: {assembly};\r\n{ex.Message} ");
return;
}
//Gets all types of the MainModule of the assembly
Expand Down
Loading