├── PortabilityAnalyzer
├── App.config
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── Program.cs
├── PortabilityAnalyzer.csproj
├── MainForm.cs
├── MainForm.resx
└── MainForm.Designer.cs
├── README.md
├── LICENSE
├── PortabilityAnalyzer.sln
├── SECURITY.md
└── .gitignore
/PortabilityAnalyzer/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/PortabilityAnalyzer/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # .NET Core 3.0 Portability Analyzer
2 |
3 | This is a UI version of [Portability Analyzer](https://blogs.msdn.microsoft.com/dotnet/2018/08/08/are-your-windows-forms-and-wpf-applications-ready-for-net-core-3-0) that evaluates compatibility of your applications with an early build of .NET Core 3.0.
4 |
5 | Find more details in the following [blog post](https://blogs.msdn.microsoft.com/dotnet/2018/08/08/are-your-windows-forms-and-wpf-applications-ready-for-net-core-3-0/).
6 |
--------------------------------------------------------------------------------
/PortabilityAnalyzer/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 |
7 | namespace PortabilityAnalyzer
8 | {
9 | static class Program
10 | {
11 | ///
12 | /// The main entry point for the application.
13 | ///
14 | [STAThread]
15 | static void Main()
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new MainForm());
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) Microsoft Corporation
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/PortabilityAnalyzer.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.27703.2018
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PortabilityAnalyzer", "PortabilityAnalyzer\PortabilityAnalyzer.csproj", "{94BDBCC4-83C4-44A1-A7F4-CE4AFB0A6957}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {94BDBCC4-83C4-44A1-A7F4-CE4AFB0A6957}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {94BDBCC4-83C4-44A1-A7F4-CE4AFB0A6957}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {94BDBCC4-83C4-44A1-A7F4-CE4AFB0A6957}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {94BDBCC4-83C4-44A1-A7F4-CE4AFB0A6957}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {37C01125-EFF8-4EDC-B9DE-4B85EB6D97EC}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/PortabilityAnalyzer/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PortabilityAnalyzer.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/PortabilityAnalyzer/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("PortabilityAnalyzer")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("PortabilityAnalyzer")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("94bdbcc4-83c4-44a1-a7f4-ce4afb0a6957")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | ## Security
4 |
5 | Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6 |
7 | If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
8 |
9 | ## Reporting Security Issues
10 |
11 | **Please do not report security vulnerabilities through public GitHub issues.**
12 |
13 | Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
14 |
15 | If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
16 |
17 | You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
18 |
19 | Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20 |
21 | * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22 | * Full paths of source file(s) related to the manifestation of the issue
23 | * The location of the affected source code (tag/branch/commit or direct URL)
24 | * Any special configuration required to reproduce the issue
25 | * Step-by-step instructions to reproduce the issue
26 | * Proof-of-concept or exploit code (if possible)
27 | * Impact of the issue, including how an attacker might exploit the issue
28 |
29 | This information will help us triage your report more quickly.
30 |
31 | If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
32 |
33 | ## Preferred Languages
34 |
35 | We prefer all communications to be in English.
36 |
37 | ## Policy
38 |
39 | Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
40 |
41 |
42 |
--------------------------------------------------------------------------------
/PortabilityAnalyzer/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PortabilityAnalyzer.Properties
12 | {
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources
26 | {
27 |
28 | private static global::System.Resources.ResourceManager resourceMan;
29 |
30 | private static global::System.Globalization.CultureInfo resourceCulture;
31 |
32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
33 | internal Resources()
34 | {
35 | }
36 |
37 | ///
38 | /// Returns the cached ResourceManager instance used by this class.
39 | ///
40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
41 | internal static global::System.Resources.ResourceManager ResourceManager
42 | {
43 | get
44 | {
45 | if ((resourceMan == null))
46 | {
47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PortabilityAnalyzer.Properties.Resources", typeof(Resources).Assembly);
48 | resourceMan = temp;
49 | }
50 | return resourceMan;
51 | }
52 | }
53 |
54 | ///
55 | /// Overrides the current thread's CurrentUICulture property for all
56 | /// resource lookups using this strongly typed resource class.
57 | ///
58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
59 | internal static global::System.Globalization.CultureInfo Culture
60 | {
61 | get
62 | {
63 | return resourceCulture;
64 | }
65 | set
66 | {
67 | resourceCulture = value;
68 | }
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/PortabilityAnalyzer/PortabilityAnalyzer.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {94BDBCC4-83C4-44A1-A7F4-CE4AFB0A6957}
8 | WinExe
9 | PortabilityAnalyzer
10 | PortabilityAnalyzer
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | Form
50 |
51 |
52 | MainForm.cs
53 |
54 |
55 |
56 |
57 | MainForm.cs
58 |
59 |
60 | ResXFileCodeGenerator
61 | Resources.Designer.cs
62 | Designer
63 |
64 |
65 | True
66 | Resources.resx
67 |
68 |
69 | SettingsSingleFileGenerator
70 | Settings.Designer.cs
71 |
72 |
73 | True
74 | Settings.settings
75 | True
76 |
77 |
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/PortabilityAnalyzer/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/PortabilityAnalyzer/MainForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Diagnostics;
4 | using System.IO;
5 | using System.Windows.Forms;
6 |
7 | namespace PortabilityAnalyzer
8 | {
9 | public partial class MainForm : Form
10 | {
11 | string reportPath;
12 |
13 | public MainForm()
14 | {
15 | InitializeComponent();
16 | }
17 |
18 | private void BrowseButton_Click(object sender, EventArgs e)
19 | {
20 | using (var d = new FolderBrowserDialog())
21 | {
22 | d.SelectedPath = PathTextBox.Text;
23 |
24 | if (d.ShowDialog() == DialogResult.OK)
25 | {
26 | PathTextBox.Text = d.SelectedPath;
27 | AnalyzeButton.Enabled = true;
28 | }
29 | }
30 | }
31 |
32 | private void RunButton_Click(object sender, EventArgs e)
33 | {
34 | AnalyzeButton.Enabled = false;
35 | OutputTextBox.Text = string.Empty;
36 |
37 | reportPath = GenerateReportPath();
38 |
39 | var ourPath = Environment.GetCommandLineArgs()[0];
40 | var ourDirectory = Path.GetDirectoryName(ourPath);
41 | var apiPortPath = Path.Combine(ourDirectory, "ApiPort", "net461", "win7-x64", "apiport.exe");
42 |
43 | var p = new Process();
44 | p.StartInfo.FileName = apiPortPath;
45 | p.StartInfo.Arguments = $"analyze -f \"{PathTextBox.Text}\" -o \"{reportPath}\" -t \".NET Core + Platform Extensions, Version=3.0\"";
46 | p.StartInfo.CreateNoWindow = true;
47 | p.StartInfo.UseShellExecute = false;
48 | p.StartInfo.RedirectStandardOutput = true;
49 | p.EnableRaisingEvents = true;
50 |
51 | List msg = new List();
52 |
53 | p.OutputDataReceived += (s, o) =>
54 | {
55 | if (o.Data != null)
56 | {
57 | BeginInvoke(new Action(() =>
58 | {
59 | msg.Add(o.Data);
60 | }));
61 | }
62 | };
63 |
64 | p.Exited += delegate
65 | {
66 | BeginInvoke(new Action(() =>
67 | {
68 | AnalyzeButton.Enabled = true;
69 | string text;
70 |
71 | if (msg.Count != 17) // Was not successful
72 | {
73 | OpenReportButton.Visible = false;
74 |
75 | if (msg.Count < 10) // Exception was thrown in the API console tool
76 | {
77 | text = $"Unable to analyze. The access to the specified path might be denied.";
78 | }
79 | else
80 | {
81 | text = msg.FindLast(o => !String.IsNullOrEmpty(o));
82 | text = text.Trim(new char[] { '*', ' ' });
83 | if (!text.Equals("No files were found to analyze.", StringComparison.InvariantCultureIgnoreCase))
84 | {
85 | msg.RemoveRange(0, 10);
86 | var details = String.Join(Environment.NewLine, msg.ToArray());
87 | text = $"Unable to analyze.{Environment.NewLine}Details:{Environment.NewLine}{details}";
88 | }
89 | }
90 | }
91 | else // Was successful
92 | {
93 | text = $"Report saved in: {Environment.NewLine}{reportPath}";
94 | OpenReportButton.Visible = true;
95 | }
96 |
97 | OutputTextBox.Text = text;
98 | UIline1.Visible = true;
99 | }));
100 | };
101 |
102 | p.Start();
103 |
104 | UIline1.Visible = true;
105 | OutputTextBox.Text = "Analyzing...";
106 |
107 | p.BeginOutputReadLine();
108 | }
109 |
110 | private static string GenerateReportPath()
111 | {
112 | var outputDirectory = Path.GetTempPath();
113 | var outputName = "PortabilityReport";
114 | var outputExtension = ".xlsx";
115 | var counter = 1;
116 | var outputPath = Path.Combine(outputDirectory, outputName + outputExtension);
117 |
118 | while (File.Exists(outputPath))
119 | {
120 | outputPath = Path.Combine(outputDirectory, $"{outputName}({counter}){outputExtension}");
121 | counter++;
122 | }
123 |
124 | return outputPath;
125 | }
126 |
127 | private void BlogLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
128 | {
129 | VisitLink(BlogLinkLabel, "https://docs.microsoft.com/en-us/dotnet/standard/analyzers/portability-analyzer");
130 | }
131 |
132 | private void VisitLink(LinkLabel linkLabel, string url)
133 | {
134 | try
135 | {
136 | Process.Start(url);
137 | linkLabel.LinkVisited = true;
138 | }
139 | catch (Exception ex)
140 | {
141 | MessageBox.Show($"Unable to open link that was clicked. {ex.Message}");
142 | }
143 | }
144 |
145 | private void OpenReportButton_Click(object sender, EventArgs e)
146 | {
147 | if (File.Exists(reportPath))
148 | Process.Start(reportPath);
149 | }
150 |
151 | private void PathTextBox_TextChanged(object sender, EventArgs e)
152 | {
153 | AnalyzeButton.Enabled = !String.IsNullOrWhiteSpace(PathTextBox.Text);
154 | UIline1.Visible = false;
155 | OpenReportButton.Visible = false;
156 | OutputTextBox.Text = string.Empty;
157 | }
158 |
159 | private void PrivacyLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
160 | {
161 | VisitLink(PrivacyLinkLabel, "https://privacy.microsoft.com/en-us/privacystatement");
162 | }
163 | }
164 | }
165 |
--------------------------------------------------------------------------------
/PortabilityAnalyzer/MainForm.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 | The analyzer will send anonymous API usage information to Microsoft to help us improve .NET Core.
122 |
123 | This way, we know which APIs are often used by customers who wish to target .NET Core. We won’t submit any of your binaries or source code to Microsoft.
124 |
125 | For our full privacy statement visit: https://privacy.microsoft.com/en-us/privacystatement.
126 |
127 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.suo
8 | *.user
9 | *.userosscache
10 | *.sln.docstates
11 |
12 | # User-specific files (MonoDevelop/Xamarin Studio)
13 | *.userprefs
14 |
15 | # Build results
16 | [Dd]ebug/
17 | [Dd]ebugPublic/
18 | [Rr]elease/
19 | [Rr]eleases/
20 | x64/
21 | x86/
22 | bld/
23 | [Bb]in/
24 | [Oo]bj/
25 | [Ll]og/
26 |
27 | # Visual Studio 2015/2017 cache/options directory
28 | .vs/
29 | # Uncomment if you have tasks that create the project's static files in wwwroot
30 | #wwwroot/
31 |
32 | # Visual Studio 2017 auto generated files
33 | Generated\ Files/
34 |
35 | # MSTest test Results
36 | [Tt]est[Rr]esult*/
37 | [Bb]uild[Ll]og.*
38 |
39 | # NUNIT
40 | *.VisualState.xml
41 | TestResult.xml
42 |
43 | # Build Results of an ATL Project
44 | [Dd]ebugPS/
45 | [Rr]eleasePS/
46 | dlldata.c
47 |
48 | # Benchmark Results
49 | BenchmarkDotNet.Artifacts/
50 |
51 | # .NET Core
52 | project.lock.json
53 | project.fragment.lock.json
54 | artifacts/
55 | **/Properties/launchSettings.json
56 |
57 | # StyleCop
58 | StyleCopReport.xml
59 |
60 | # Files built by Visual Studio
61 | *_i.c
62 | *_p.c
63 | *_i.h
64 | *.ilk
65 | *.meta
66 | *.obj
67 | *.iobj
68 | *.pch
69 | *.pdb
70 | *.ipdb
71 | *.pgc
72 | *.pgd
73 | *.rsp
74 | *.sbr
75 | *.tlb
76 | *.tli
77 | *.tlh
78 | *.tmp
79 | *.tmp_proj
80 | *.log
81 | *.vspscc
82 | *.vssscc
83 | .builds
84 | *.pidb
85 | *.svclog
86 | *.scc
87 |
88 | # Chutzpah Test files
89 | _Chutzpah*
90 |
91 | # Visual C++ cache files
92 | ipch/
93 | *.aps
94 | *.ncb
95 | *.opendb
96 | *.opensdf
97 | *.sdf
98 | *.cachefile
99 | *.VC.db
100 | *.VC.VC.opendb
101 |
102 | # Visual Studio profiler
103 | *.psess
104 | *.vsp
105 | *.vspx
106 | *.sap
107 |
108 | # Visual Studio Trace Files
109 | *.e2e
110 |
111 | # TFS 2012 Local Workspace
112 | $tf/
113 |
114 | # Guidance Automation Toolkit
115 | *.gpState
116 |
117 | # ReSharper is a .NET coding add-in
118 | _ReSharper*/
119 | *.[Rr]e[Ss]harper
120 | *.DotSettings.user
121 |
122 | # JustCode is a .NET coding add-in
123 | .JustCode
124 |
125 | # TeamCity is a build add-in
126 | _TeamCity*
127 |
128 | # DotCover is a Code Coverage Tool
129 | *.dotCover
130 |
131 | # AxoCover is a Code Coverage Tool
132 | .axoCover/*
133 | !.axoCover/settings.json
134 |
135 | # Visual Studio code coverage results
136 | *.coverage
137 | *.coveragexml
138 |
139 | # NCrunch
140 | _NCrunch_*
141 | .*crunch*.local.xml
142 | nCrunchTemp_*
143 |
144 | # MightyMoose
145 | *.mm.*
146 | AutoTest.Net/
147 |
148 | # Web workbench (sass)
149 | .sass-cache/
150 |
151 | # Installshield output folder
152 | [Ee]xpress/
153 |
154 | # DocProject is a documentation generator add-in
155 | DocProject/buildhelp/
156 | DocProject/Help/*.HxT
157 | DocProject/Help/*.HxC
158 | DocProject/Help/*.hhc
159 | DocProject/Help/*.hhk
160 | DocProject/Help/*.hhp
161 | DocProject/Help/Html2
162 | DocProject/Help/html
163 |
164 | # Click-Once directory
165 | publish/
166 |
167 | # Publish Web Output
168 | *.[Pp]ublish.xml
169 | *.azurePubxml
170 | # Note: Comment the next line if you want to checkin your web deploy settings,
171 | # but database connection strings (with potential passwords) will be unencrypted
172 | *.pubxml
173 | *.publishproj
174 |
175 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
176 | # checkin your Azure Web App publish settings, but sensitive information contained
177 | # in these scripts will be unencrypted
178 | PublishScripts/
179 |
180 | # NuGet Packages
181 | *.nupkg
182 | # The packages folder can be ignored because of Package Restore
183 | **/[Pp]ackages/*
184 | # except build/, which is used as an MSBuild target.
185 | !**/[Pp]ackages/build/
186 | # Uncomment if necessary however generally it will be regenerated when needed
187 | #!**/[Pp]ackages/repositories.config
188 | # NuGet v3's project.json files produces more ignorable files
189 | *.nuget.props
190 | *.nuget.targets
191 |
192 | # Microsoft Azure Build Output
193 | csx/
194 | *.build.csdef
195 |
196 | # Microsoft Azure Emulator
197 | ecf/
198 | rcf/
199 |
200 | # Windows Store app package directories and files
201 | AppPackages/
202 | BundleArtifacts/
203 | Package.StoreAssociation.xml
204 | _pkginfo.txt
205 | *.appx
206 |
207 | # Visual Studio cache files
208 | # files ending in .cache can be ignored
209 | *.[Cc]ache
210 | # but keep track of directories ending in .cache
211 | !*.[Cc]ache/
212 |
213 | # Others
214 | ClientBin/
215 | ~$*
216 | *~
217 | *.dbmdl
218 | *.dbproj.schemaview
219 | *.jfm
220 | *.pfx
221 | *.publishsettings
222 | orleans.codegen.cs
223 |
224 | # Including strong name files can present a security risk
225 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
226 | #*.snk
227 |
228 | # Since there are multiple workflows, uncomment next line to ignore bower_components
229 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
230 | #bower_components/
231 |
232 | # RIA/Silverlight projects
233 | Generated_Code/
234 |
235 | # Backup & report files from converting an old project file
236 | # to a newer Visual Studio version. Backup files are not needed,
237 | # because we have git ;-)
238 | _UpgradeReport_Files/
239 | Backup*/
240 | UpgradeLog*.XML
241 | UpgradeLog*.htm
242 | ServiceFabricBackup/
243 | *.rptproj.bak
244 |
245 | # SQL Server files
246 | *.mdf
247 | *.ldf
248 | *.ndf
249 |
250 | # Business Intelligence projects
251 | *.rdl.data
252 | *.bim.layout
253 | *.bim_*.settings
254 | *.rptproj.rsuser
255 |
256 | # Microsoft Fakes
257 | FakesAssemblies/
258 |
259 | # GhostDoc plugin setting file
260 | *.GhostDoc.xml
261 |
262 | # Node.js Tools for Visual Studio
263 | .ntvs_analysis.dat
264 | node_modules/
265 |
266 | # Visual Studio 6 build log
267 | *.plg
268 |
269 | # Visual Studio 6 workspace options file
270 | *.opt
271 |
272 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
273 | *.vbw
274 |
275 | # Visual Studio LightSwitch build output
276 | **/*.HTMLClient/GeneratedArtifacts
277 | **/*.DesktopClient/GeneratedArtifacts
278 | **/*.DesktopClient/ModelManifest.xml
279 | **/*.Server/GeneratedArtifacts
280 | **/*.Server/ModelManifest.xml
281 | _Pvt_Extensions
282 |
283 | # Paket dependency manager
284 | .paket/paket.exe
285 | paket-files/
286 |
287 | # FAKE - F# Make
288 | .fake/
289 |
290 | # JetBrains Rider
291 | .idea/
292 | *.sln.iml
293 |
294 | # CodeRush
295 | .cr/
296 |
297 | # Python Tools for Visual Studio (PTVS)
298 | __pycache__/
299 | *.pyc
300 |
301 | # Cake - Uncomment if you are using it
302 | # tools/**
303 | # !tools/packages.config
304 |
305 | # Tabs Studio
306 | *.tss
307 |
308 | # Telerik's JustMock configuration file
309 | *.jmconfig
310 |
311 | # BizTalk build output
312 | *.btp.cs
313 | *.btm.cs
314 | *.odx.cs
315 | *.xsd.cs
316 |
317 | # OpenCover UI analysis results
318 | OpenCover/
319 |
320 | # Azure Stream Analytics local run output
321 | ASALocalRun/
322 |
323 | # MSBuild Binary and Structured Log
324 | *.binlog
325 |
326 | # NVidia Nsight GPU debugger configuration file
327 | *.nvuser
328 |
329 | # MFractors (Xamarin productivity tool) working folder
330 | .mfractor/
331 |
--------------------------------------------------------------------------------
/PortabilityAnalyzer/MainForm.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PortabilityAnalyzer
2 | {
3 | partial class MainForm
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
32 | this.PathTextBox = new System.Windows.Forms.TextBox();
33 | this.BrowseButton = new System.Windows.Forms.Button();
34 | this.label1 = new System.Windows.Forms.Label();
35 | this.AnalyzeButton = new System.Windows.Forms.Button();
36 | this.UIline1 = new System.Windows.Forms.Label();
37 | this.BlogLinkLabel = new System.Windows.Forms.LinkLabel();
38 | this.OpenReportButton = new System.Windows.Forms.Button();
39 | this.OutputTextBox = new System.Windows.Forms.RichTextBox();
40 | this.UIline2 = new System.Windows.Forms.Label();
41 | this.PrivacyLinkLabel = new System.Windows.Forms.LinkLabel();
42 | this.label4 = new System.Windows.Forms.Label();
43 | this.SuspendLayout();
44 | //
45 | // PathTextBox
46 | //
47 | this.PathTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
48 | | System.Windows.Forms.AnchorStyles.Right)));
49 | this.PathTextBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
50 | this.PathTextBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.FileSystemDirectories;
51 | this.PathTextBox.Location = new System.Drawing.Point(12, 30);
52 | this.PathTextBox.Margin = new System.Windows.Forms.Padding(2);
53 | this.PathTextBox.Name = "PathTextBox";
54 | this.PathTextBox.Size = new System.Drawing.Size(425, 20);
55 | this.PathTextBox.TabIndex = 1;
56 | this.PathTextBox.TextChanged += new System.EventHandler(this.PathTextBox_TextChanged);
57 | //
58 | // BrowseButton
59 | //
60 | this.BrowseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
61 | this.BrowseButton.Location = new System.Drawing.Point(441, 29);
62 | this.BrowseButton.Margin = new System.Windows.Forms.Padding(2);
63 | this.BrowseButton.Name = "BrowseButton";
64 | this.BrowseButton.Size = new System.Drawing.Size(79, 23);
65 | this.BrowseButton.TabIndex = 2;
66 | this.BrowseButton.Text = "&Browse...";
67 | this.BrowseButton.UseVisualStyleBackColor = true;
68 | this.BrowseButton.Click += new System.EventHandler(this.BrowseButton_Click);
69 | //
70 | // label1
71 | //
72 | this.label1.AutoSize = true;
73 | this.label1.Location = new System.Drawing.Point(12, 12);
74 | this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
75 | this.label1.Name = "label1";
76 | this.label1.Size = new System.Drawing.Size(127, 13);
77 | this.label1.TabIndex = 0;
78 | this.label1.Text = "&Path to application folder:";
79 | //
80 | // AnalyzeButton
81 | //
82 | this.AnalyzeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
83 | this.AnalyzeButton.Enabled = false;
84 | this.AnalyzeButton.Location = new System.Drawing.Point(441, 60);
85 | this.AnalyzeButton.Name = "AnalyzeButton";
86 | this.AnalyzeButton.Size = new System.Drawing.Size(79, 23);
87 | this.AnalyzeButton.TabIndex = 3;
88 | this.AnalyzeButton.Text = "&Analyze";
89 | this.AnalyzeButton.UseVisualStyleBackColor = true;
90 | this.AnalyzeButton.Click += new System.EventHandler(this.RunButton_Click);
91 | //
92 | // UIline1
93 | //
94 | this.UIline1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
95 | | System.Windows.Forms.AnchorStyles.Right)));
96 | this.UIline1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
97 | this.UIline1.Location = new System.Drawing.Point(12, 90);
98 | this.UIline1.Name = "UIline1";
99 | this.UIline1.Size = new System.Drawing.Size(510, 2);
100 | this.UIline1.TabIndex = 5;
101 | this.UIline1.Visible = false;
102 | //
103 | // BlogLinkLabel
104 | //
105 | this.BlogLinkLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
106 | this.BlogLinkLabel.Cursor = System.Windows.Forms.Cursors.Default;
107 | this.BlogLinkLabel.LinkArea = new System.Windows.Forms.LinkArea(0, 15);
108 | this.BlogLinkLabel.Location = new System.Drawing.Point(444, 156);
109 | this.BlogLinkLabel.Name = "BlogLinkLabel";
110 | this.BlogLinkLabel.Size = new System.Drawing.Size(78, 18);
111 | this.BlogLinkLabel.TabIndex = 8;
112 | this.BlogLinkLabel.TabStop = true;
113 | this.BlogLinkLabel.Text = "About this tool";
114 | this.BlogLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.BlogLinkLabel_LinkClicked);
115 | //
116 | // OpenReportButton
117 | //
118 | this.OpenReportButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
119 | this.OpenReportButton.Location = new System.Drawing.Point(441, 100);
120 | this.OpenReportButton.Name = "OpenReportButton";
121 | this.OpenReportButton.Size = new System.Drawing.Size(79, 23);
122 | this.OpenReportButton.TabIndex = 9;
123 | this.OpenReportButton.Text = "&Open Report";
124 | this.OpenReportButton.UseVisualStyleBackColor = true;
125 | this.OpenReportButton.Visible = false;
126 | this.OpenReportButton.Click += new System.EventHandler(this.OpenReportButton_Click);
127 | //
128 | // OutputTextBox
129 | //
130 | this.OutputTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
131 | | System.Windows.Forms.AnchorStyles.Left)
132 | | System.Windows.Forms.AnchorStyles.Right)));
133 | this.OutputTextBox.BackColor = System.Drawing.SystemColors.Control;
134 | this.OutputTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
135 | this.OutputTextBox.Location = new System.Drawing.Point(12, 96);
136 | this.OutputTextBox.Name = "OutputTextBox";
137 | this.OutputTextBox.ReadOnly = true;
138 | this.OutputTextBox.Size = new System.Drawing.Size(423, 74);
139 | this.OutputTextBox.TabIndex = 10;
140 | this.OutputTextBox.Text = "";
141 | //
142 | // UIline2
143 | //
144 | this.UIline2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
145 | | System.Windows.Forms.AnchorStyles.Right)));
146 | this.UIline2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
147 | this.UIline2.Location = new System.Drawing.Point(12, 182);
148 | this.UIline2.Name = "UIline2";
149 | this.UIline2.Size = new System.Drawing.Size(510, 2);
150 | this.UIline2.TabIndex = 5;
151 | //
152 | // PrivacyLinkLabel
153 | //
154 | this.PrivacyLinkLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
155 | | System.Windows.Forms.AnchorStyles.Right)));
156 | this.PrivacyLinkLabel.LinkArea = new System.Windows.Forms.LinkArea(295, 52);
157 | this.PrivacyLinkLabel.Location = new System.Drawing.Point(12, 200);
158 | this.PrivacyLinkLabel.Name = "PrivacyLinkLabel";
159 | this.PrivacyLinkLabel.Size = new System.Drawing.Size(516, 77);
160 | this.PrivacyLinkLabel.TabIndex = 12;
161 | this.PrivacyLinkLabel.TabStop = true;
162 | this.PrivacyLinkLabel.Text = resources.GetString("PrivacyLinkLabel.Text");
163 | this.PrivacyLinkLabel.UseCompatibleTextRendering = true;
164 | this.PrivacyLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.PrivacyLinkLabel_LinkClicked);
165 | //
166 | // label4
167 | //
168 | this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
169 | this.label4.AutoSize = true;
170 | this.label4.Location = new System.Drawing.Point(18, 176);
171 | this.label4.Name = "label4";
172 | this.label4.Size = new System.Drawing.Size(42, 13);
173 | this.label4.TabIndex = 13;
174 | this.label4.Text = "Privacy";
175 | //
176 | // MainForm
177 | //
178 | this.AcceptButton = this.AnalyzeButton;
179 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
180 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
181 | this.ClientSize = new System.Drawing.Size(529, 282);
182 | this.Controls.Add(this.label4);
183 | this.Controls.Add(this.PrivacyLinkLabel);
184 | this.Controls.Add(this.OutputTextBox);
185 | this.Controls.Add(this.OpenReportButton);
186 | this.Controls.Add(this.BlogLinkLabel);
187 | this.Controls.Add(this.UIline2);
188 | this.Controls.Add(this.UIline1);
189 | this.Controls.Add(this.AnalyzeButton);
190 | this.Controls.Add(this.label1);
191 | this.Controls.Add(this.BrowseButton);
192 | this.Controls.Add(this.PathTextBox);
193 | this.Margin = new System.Windows.Forms.Padding(2);
194 | this.MaximizeBox = false;
195 | this.MinimizeBox = false;
196 | this.MinimumSize = new System.Drawing.Size(545, 321);
197 | this.Name = "MainForm";
198 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
199 | this.Text = ".NET Core 3.0 Desktop API Analyzer";
200 | this.ResumeLayout(false);
201 | this.PerformLayout();
202 |
203 | }
204 |
205 | #endregion
206 |
207 | private System.Windows.Forms.TextBox PathTextBox;
208 | private System.Windows.Forms.Button BrowseButton;
209 | private System.Windows.Forms.Label label1;
210 | private System.Windows.Forms.Button AnalyzeButton;
211 | private System.Windows.Forms.Label UIline1;
212 | private System.Windows.Forms.LinkLabel BlogLinkLabel;
213 | private System.Windows.Forms.Button OpenReportButton;
214 | private System.Windows.Forms.RichTextBox OutputTextBox;
215 | private System.Windows.Forms.Label UIline2;
216 | private System.Windows.Forms.LinkLabel PrivacyLinkLabel;
217 | private System.Windows.Forms.Label label4;
218 | }
219 | }
220 |
221 |
--------------------------------------------------------------------------------