diff --git a/tests/PortingAssistant.Client.IntegrationTests/RunWithDotNetCoreFrameowrk.cs b/tests/PortingAssistant.Client.IntegrationTests/RunWithDotNetCoreFrameowrk.cs index a4ca19d69..7806f1a9e 100644 --- a/tests/PortingAssistant.Client.IntegrationTests/RunWithDotNetCoreFrameowrk.cs +++ b/tests/PortingAssistant.Client.IntegrationTests/RunWithDotNetCoreFrameowrk.cs @@ -197,7 +197,7 @@ public void CheckApiAnalysisResult() Assert.AreEqual("Microsoft.VisualStudio.Web.BrowserLink", apiAnalysisResult.CodeEntityDetails.Package.PackageId); Assert.AreEqual("2.2.0", apiAnalysisResult.CodeEntityDetails.Package.Version); Assert.AreEqual(PackageSourceType.NUGET, apiAnalysisResult.CodeEntityDetails.Package.PackageSourceType); - Assert.AreEqual(Compatibility.COMPATIBLE, apiAnalysisResult.CompatibilityResults.GetValueOrDefault("netcoreapp3.1").Compatibility); + Assert.AreEqual(Compatibility.INCOMPATIBLE, apiAnalysisResult.CompatibilityResults.GetValueOrDefault("netcoreapp3.1").Compatibility); Assert.AreEqual(0, apiAnalysisResult.CompatibilityResults.GetValueOrDefault("netcoreapp3.1").CompatibleVersions.Count); Assert.AreEqual(RecommendedActionType.NoRecommendation, apiAnalysisResult.Recommendations.RecommendedActions.First().RecommendedActionType); Assert.Null(apiAnalysisResult.Recommendations.RecommendedActions.First().Description); @@ -228,10 +228,10 @@ public void CheckApiAnalysisResult() Assert.AreEqual("WebMarkupMin.AspNetCore2", apiAnalysisResult.CodeEntityDetails.Package.PackageId); Assert.AreEqual("2.7.0", apiAnalysisResult.CodeEntityDetails.Package.Version); Assert.AreEqual(PackageSourceType.NUGET, apiAnalysisResult.CodeEntityDetails.Package.PackageSourceType); - Assert.AreEqual(Compatibility.COMPATIBLE, apiAnalysisResult.CompatibilityResults.GetValueOrDefault("netcoreapp3.1").Compatibility); - Assert.True(apiAnalysisResult.CompatibilityResults.GetValueOrDefault("netcoreapp3.1").CompatibleVersions.Count > 0); - Assert.AreEqual(RecommendedActionType.UpgradePackage, apiAnalysisResult.Recommendations.RecommendedActions.First().RecommendedActionType); - Assert.AreEqual("2.10.0", apiAnalysisResult.Recommendations.RecommendedActions.First().Description); + Assert.AreEqual(Compatibility.INCOMPATIBLE, apiAnalysisResult.CompatibilityResults.GetValueOrDefault("netcoreapp3.1").Compatibility); + Assert.True(apiAnalysisResult.CompatibilityResults.GetValueOrDefault("netcoreapp3.1").CompatibleVersions.Count == 0); + Assert.AreEqual(RecommendedActionType.NoRecommendation, apiAnalysisResult.Recommendations.RecommendedActions.First().RecommendedActionType); + Assert.AreEqual(null, apiAnalysisResult.Recommendations.RecommendedActions.First().Description); var blogController = sourceFileAnalysisResults.Find(s => s.SourceFileName == "BlogController.cs"); diff --git a/tests/PortingAssistant.Client.IntegrationTests/RunWithDotNetFramework.cs b/tests/PortingAssistant.Client.IntegrationTests/RunWithDotNetFramework.cs index 1675d8d4f..731e8a78c 100644 --- a/tests/PortingAssistant.Client.IntegrationTests/RunWithDotNetFramework.cs +++ b/tests/PortingAssistant.Client.IntegrationTests/RunWithDotNetFramework.cs @@ -189,7 +189,7 @@ public void CheckPackageAnalysisResult() Version = "2.0.1", PackageSourceType = PackageSourceType.NUGET }).Result; - Assert.AreEqual(Compatibility.COMPATIBLE, + Assert.AreEqual(Compatibility.INCOMPATIBLE, packageAnalysisResult.CompatibilityResults.GetValueOrDefault("netcoreapp3.1").Compatibility); Assert.AreEqual(0, packageAnalysisResult.CompatibilityResults.GetValueOrDefault("netcoreapp3.1").CompatibleVersions.Count); Assert.AreEqual(RecommendedActionType.UpgradePackage, packageAnalysisResult.Recommendations.RecommendedActions.First().RecommendedActionType); diff --git a/tests/PortingAssistant.Client.IntegrationTests/TestProjects/NetFrameworkExample-analyze/NetFrameworkExample-api-analysis.json b/tests/PortingAssistant.Client.IntegrationTests/TestProjects/NetFrameworkExample-analyze/NetFrameworkExample-api-analysis.json index 4efad9231..268cfde4e 100644 --- a/tests/PortingAssistant.Client.IntegrationTests/TestProjects/NetFrameworkExample-analyze/NetFrameworkExample-api-analysis.json +++ b/tests/PortingAssistant.Client.IntegrationTests/TestProjects/NetFrameworkExample-analyze/NetFrameworkExample-api-analysis.json @@ -10,7 +10,7 @@ "SourceFileAnalysisResults": [ { "SourceFileName": "BundleConfig.cs", - "SourceFilePath": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\BundleConfig.cs", + "SourceFilePath": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\BundleConfig.cs", "ApiAnalysisResults": [ { "CodeEntityDetails": { @@ -625,7 +625,7 @@ }, { "SourceFileName": "FilterConfig.cs", - "SourceFilePath": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\FilterConfig.cs", + "SourceFilePath": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\FilterConfig.cs", "ApiAnalysisResults": [ { "CodeEntityDetails": { @@ -760,55 +760,37 @@ ], "TextChanges": [ { - "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class FilterConfig\r\n {\r\n public static void RegisterGlobalFilters(GlobalFilterCollection filters)\r\n {\r\n filters.Add(new HandleErrorAttribute());\r\n }\r\n }\r\n}", + "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\n", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\FilterConfig.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\FilterConfig.cs", "Span": { "_start": { "_line": 2, "_character": 0 }, "_end": { - "_line": 13, + "_line": 2, "_character": 0 } }, - "StartLinePosition": { - "_line": 2, - "_character": 0 - }, - "EndLinePosition": { - "_line": 13, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "\r\nnamespace NetFrameworkExample\r\n{\r\n public class FilterConfig\r\n {\r\n public static void RegisterGlobalFilters(GlobalFilterCollection filters)\r\n {\r\n filters.Add(new HandleErrorAttribute());\r\n }\r\n }\r\n}", + "NewText": "", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\FilterConfig.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\FilterConfig.cs", "Span": { "_start": { "_line": 1, "_character": 0 }, "_end": { - "_line": 13, + "_line": 2, "_character": 0 } }, - "StartLinePosition": { - "_line": 1, - "_character": 0 - }, - "EndLinePosition": { - "_line": 13, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } } ] @@ -830,55 +812,37 @@ ], "TextChanges": [ { - "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class FilterConfig\r\n {\r\n public static void RegisterGlobalFilters(GlobalFilterCollection filters)\r\n {\r\n filters.Add(new HandleErrorAttribute());\r\n }\r\n }\r\n}", + "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\n", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\FilterConfig.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\FilterConfig.cs", "Span": { "_start": { "_line": 2, "_character": 0 }, "_end": { - "_line": 13, + "_line": 2, "_character": 0 } }, - "StartLinePosition": { - "_line": 2, - "_character": 0 - }, - "EndLinePosition": { - "_line": 13, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "\r\nnamespace NetFrameworkExample\r\n{\r\n public class FilterConfig\r\n {\r\n public static void RegisterGlobalFilters(GlobalFilterCollection filters)\r\n {\r\n filters.Add(new HandleErrorAttribute());\r\n }\r\n }\r\n}", + "NewText": "", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\FilterConfig.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\FilterConfig.cs", "Span": { "_start": { "_line": 1, "_character": 0 }, "_end": { - "_line": 13, + "_line": 2, "_character": 0 } }, - "StartLinePosition": { - "_line": 1, - "_character": 0 - }, - "EndLinePosition": { - "_line": 13, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } } ] @@ -887,7 +851,7 @@ }, { "SourceFileName": "RouteConfig.cs", - "SourceFilePath": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\RouteConfig.cs", + "SourceFilePath": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\RouteConfig.cs", "ApiAnalysisResults": [ { "CodeEntityDetails": { @@ -1060,55 +1024,37 @@ ], "TextChanges": [ { - "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class RouteConfig\r\n {\r\n public static void RegisterRoutes(RouteCollection routes)\r\n {\r\n routes.IgnoreRoute(\"{resource}.axd/{*pathInfo}\");\r\n routes.MapRoute(name: \"Default\", url: \"{controller}/{action}/{id}\", defaults: new\r\n {\r\n controller = \"Home\", action = \"Index\", id = UrlParameter.Optional\r\n }\r\n\r\n );\r\n }\r\n }\r\n}", + "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\n", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\RouteConfig.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\RouteConfig.cs", "Span": { "_start": { "_line": 6, "_character": 0 }, "_end": { - "_line": 23, + "_line": 6, "_character": 0 } }, - "StartLinePosition": { - "_line": 6, - "_character": 0 - }, - "EndLinePosition": { - "_line": 23, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "Routing;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class RouteConfig\r\n {\r\n public static void RegisterRoutes(RouteCollection routes)\r\n {\r\n routes.IgnoreRoute(\"{resource}.axd/{*pathInfo}\");\r\n routes.MapRoute(name: \"Default\", url: \"{controller}/{action}/{id}\", defaults: new\r\n {\r\n controller = \"Home\", action = \"Index\", id = UrlParameter.Optional\r\n }\r\n\r\n );\r\n }\r\n }\r\n}", + "NewText": "", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\RouteConfig.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\RouteConfig.cs", "Span": { "_start": { "_line": 4, - "_character": 17 + "_character": 0 }, "_end": { - "_line": 23, + "_line": 5, "_character": 0 } }, - "StartLinePosition": { - "_line": 4, - "_character": 17 - }, - "EndLinePosition": { - "_line": 23, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } } ] @@ -1130,55 +1076,37 @@ ], "TextChanges": [ { - "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class RouteConfig\r\n {\r\n public static void RegisterRoutes(RouteCollection routes)\r\n {\r\n routes.IgnoreRoute(\"{resource}.axd/{*pathInfo}\");\r\n routes.MapRoute(name: \"Default\", url: \"{controller}/{action}/{id}\", defaults: new\r\n {\r\n controller = \"Home\", action = \"Index\", id = UrlParameter.Optional\r\n }\r\n\r\n );\r\n }\r\n }\r\n}", + "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\n", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\RouteConfig.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\RouteConfig.cs", "Span": { "_start": { "_line": 6, "_character": 0 }, "_end": { - "_line": 23, + "_line": 6, "_character": 0 } }, - "StartLinePosition": { - "_line": 6, - "_character": 0 - }, - "EndLinePosition": { - "_line": 23, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "Routing;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class RouteConfig\r\n {\r\n public static void RegisterRoutes(RouteCollection routes)\r\n {\r\n routes.IgnoreRoute(\"{resource}.axd/{*pathInfo}\");\r\n routes.MapRoute(name: \"Default\", url: \"{controller}/{action}/{id}\", defaults: new\r\n {\r\n controller = \"Home\", action = \"Index\", id = UrlParameter.Optional\r\n }\r\n\r\n );\r\n }\r\n }\r\n}", + "NewText": "", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\RouteConfig.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\App_Start\\RouteConfig.cs", "Span": { "_start": { "_line": 4, - "_character": 17 + "_character": 0 }, "_end": { - "_line": 23, + "_line": 5, "_character": 0 } }, - "StartLinePosition": { - "_line": 4, - "_character": 17 - }, - "EndLinePosition": { - "_line": 23, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } } ] @@ -1187,7 +1115,7 @@ }, { "SourceFileName": "HomeController.cs", - "SourceFilePath": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Controllers\\HomeController.cs", + "SourceFilePath": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Controllers\\HomeController.cs", "ApiAnalysisResults": [ { "CodeEntityDetails": { @@ -1550,55 +1478,37 @@ ], "TextChanges": [ { - "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\nnamespace NetFrameworkExample.Controllers\r\n{\r\n public class HomeController : Controller\r\n {\r\n public ActionResult Index()\r\n {\r\n return View();\r\n }\r\n\r\n public ActionResult About()\r\n {\r\n ViewBag.Message = \"Your application description page.\";\r\n return View();\r\n }\r\n\r\n public ActionResult Contact()\r\n {\r\n ViewBag.Message = \"Your contact page.\";", + "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\n", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Controllers\\HomeController.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Controllers\\HomeController.cs", "Span": { "_start": { "_line": 5, "_character": 0 }, "_end": { - "_line": 25, + "_line": 5, "_character": 0 } }, - "StartLinePosition": { - "_line": 5, - "_character": 0 - }, - "EndLinePosition": { - "_line": 25, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "\r\nnamespace NetFrameworkExample.Controllers\r\n{\r\n public class HomeController : Controller\r\n {\r\n public ActionResult Index()\r\n {\r\n return View();\r\n }\r\n\r\n public ActionResult About()\r\n {\r\n ViewBag.Message = \"Your application description page.\";\r\n return View();\r\n }\r\n\r\n public ActionResult Contact()\r\n {\r\n ViewBag.Message = \"Your contact page.\";", + "NewText": "", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Controllers\\HomeController.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Controllers\\HomeController.cs", "Span": { "_start": { "_line": 4, "_character": 0 }, "_end": { - "_line": 25, + "_line": 5, "_character": 0 } }, - "StartLinePosition": { - "_line": 4, - "_character": 0 - }, - "EndLinePosition": { - "_line": 25, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } } ] @@ -1620,55 +1530,37 @@ ], "TextChanges": [ { - "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\nnamespace NetFrameworkExample.Controllers\r\n{\r\n public class HomeController : Controller\r\n {\r\n public ActionResult Index()\r\n {\r\n return View();\r\n }\r\n\r\n public ActionResult About()\r\n {\r\n ViewBag.Message = \"Your application description page.\";\r\n return View();\r\n }\r\n\r\n public ActionResult Contact()\r\n {\r\n ViewBag.Message = \"Your contact page.\";", + "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\n", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Controllers\\HomeController.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Controllers\\HomeController.cs", "Span": { "_start": { "_line": 5, "_character": 0 }, "_end": { - "_line": 25, + "_line": 5, "_character": 0 } }, - "StartLinePosition": { - "_line": 5, - "_character": 0 - }, - "EndLinePosition": { - "_line": 25, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "\r\nnamespace NetFrameworkExample.Controllers\r\n{\r\n public class HomeController : Controller\r\n {\r\n public ActionResult Index()\r\n {\r\n return View();\r\n }\r\n\r\n public ActionResult About()\r\n {\r\n ViewBag.Message = \"Your application description page.\";\r\n return View();\r\n }\r\n\r\n public ActionResult Contact()\r\n {\r\n ViewBag.Message = \"Your contact page.\";", + "NewText": "", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Controllers\\HomeController.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Controllers\\HomeController.cs", "Span": { "_start": { "_line": 4, "_character": 0 }, "_end": { - "_line": 25, + "_line": 5, "_character": 0 } }, - "StartLinePosition": { - "_line": 4, - "_character": 0 - }, - "EndLinePosition": { - "_line": 25, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } } ] @@ -1677,7 +1569,7 @@ }, { "SourceFileName": "Global.asax.cs", - "SourceFilePath": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", + "SourceFilePath": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "ApiAnalysisResults": [ { "CodeEntityDetails": { @@ -2002,55 +1894,37 @@ ], "TextChanges": [ { - "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class MvcApplication : System.Web.HttpApplication\r\n {\r\n protected void Application_Start()\r\n {\r\n AreaRegistration.RegisterAllAreas();\r\n FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);\r\n RouteConfig.RegisterRoutes(RouteTable.Routes);\r\n BundleConfig.RegisterBundles(BundleTable.Bundles);\r\n }\r\n }\r\n}", + "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\n", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "Span": { "_start": { "_line": 7, "_character": 0 }, "_end": { - "_line": 21, + "_line": 7, "_character": 0 } }, - "StartLinePosition": { - "_line": 7, - "_character": 0 - }, - "EndLinePosition": { - "_line": 21, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "Optimization;\r\nusing System.Web.Routing;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class MvcApplication : System.Web.HttpApplication\r\n {\r\n protected void Application_Start()\r\n {\r\n AreaRegistration.RegisterAllAreas();\r\n FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);\r\n RouteConfig.RegisterRoutes(RouteTable.Routes);\r\n BundleConfig.RegisterBundles(BundleTable.Bundles);\r\n }\r\n }\r\n}", + "NewText": "", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "Span": { "_start": { "_line": 4, - "_character": 17 + "_character": 0 }, "_end": { - "_line": 21, + "_line": 5, "_character": 0 } }, - "StartLinePosition": { - "_line": 4, - "_character": 17 - }, - "EndLinePosition": { - "_line": 21, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } } ] @@ -2072,55 +1946,37 @@ ], "TextChanges": [ { - "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class MvcApplication : System.Web.HttpApplication\r\n {\r\n protected void Application_Start()\r\n {\r\n AreaRegistration.RegisterAllAreas();\r\n FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);\r\n RouteConfig.RegisterRoutes(RouteTable.Routes);\r\n BundleConfig.RegisterBundles(BundleTable.Bundles);\r\n }\r\n }\r\n}", + "NewText": "using Microsoft.AspNetCore.Mvc;\r\n\r\n", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "Span": { "_start": { "_line": 7, "_character": 0 }, "_end": { - "_line": 21, + "_line": 7, "_character": 0 } }, - "StartLinePosition": { - "_line": 7, - "_character": 0 - }, - "EndLinePosition": { - "_line": 21, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "Optimization;\r\nusing System.Web.Routing;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class MvcApplication : System.Web.HttpApplication\r\n {\r\n protected void Application_Start()\r\n {\r\n AreaRegistration.RegisterAllAreas();\r\n FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);\r\n RouteConfig.RegisterRoutes(RouteTable.Routes);\r\n BundleConfig.RegisterBundles(BundleTable.Bundles);\r\n }\r\n }\r\n}", + "NewText": "", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "Span": { "_start": { "_line": 4, - "_character": 17 + "_character": 0 }, "_end": { - "_line": 21, + "_line": 5, "_character": 0 } }, - "StartLinePosition": { - "_line": 4, - "_character": 17 - }, - "EndLinePosition": { - "_line": 21, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } } ] @@ -2142,88 +1998,60 @@ ], "TextChanges": [ { - "NewText": ".Mvc;\r\nusing System.Web.Optimization;\r\nusing System.Web.Routing;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class MvcApplication : System.Web.HttpApplication\r\n {\r\n protected void Application_Start()\r\n {\r\n AreaRegistration.RegisterAllAreas();\r\n FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);\r\n RouteConfig.RegisterRoutes(RouteTable.Routes);\r\n BundleConfig.RegisterBundles(BundleTable.Bundles);\r\n }\r\n }\r\n}", + "NewText": "", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "Span": { "_start": { "_line": 3, - "_character": 16 + "_character": 0 }, "_end": { - "_line": 21, + "_line": 4, "_character": 0 } }, - "StartLinePosition": { - "_line": 3, - "_character": 16 - }, - "EndLinePosition": { - "_line": 21, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "using Microsoft.AspNetCore.Http;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class MvcApplication : System.Web.HttpApplication\r\n {\r\n protected void Application_Start()\r\n {\r\n AreaRegistration.RegisterAllAreas();\r\n FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);\r\n RouteConfig.RegisterRoutes(RouteTable.Routes);\r\n BundleConfig.RegisterBundles(BundleTable.Bundles);\r\n }\r\n }\r\n}", + "NewText": "using Microsoft.AspNetCore.Http;\r\n\r\n", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "Span": { "_start": { "_line": 7, "_character": 0 }, "_end": { - "_line": 21, + "_line": 7, "_character": 0 } }, - "StartLinePosition": { - "_line": 7, - "_character": 0 - }, - "EndLinePosition": { - "_line": 21, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "using System.Threading.Tasks;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class MvcApplication : System.Web.HttpApplication\r\n {\r\n protected void Application_Start()\r\n {\r\n AreaRegistration.RegisterAllAreas();\r\n FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);\r\n RouteConfig.RegisterRoutes(RouteTable.Routes);\r\n BundleConfig.RegisterBundles(BundleTable.Bundles);\r\n }\r\n }\r\n}", + "NewText": "using System.Threading.Tasks;\r\n\r\n", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "Span": { "_start": { "_line": 7, "_character": 0 }, "_end": { - "_line": 21, + "_line": 7, "_character": 0 } }, - "StartLinePosition": { - "_line": 7, - "_character": 0 - }, - "EndLinePosition": { - "_line": 21, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { "NewText": "", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "Span": { "_start": { "_line": 10, @@ -2234,67 +2062,41 @@ "_character": 0 } }, - "StartLinePosition": { - "_line": 10, - "_character": 32 - }, - "EndLinePosition": { - "_line": 11, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "public class MvcApplication : System.Web.HttpApplication\r\n{\r\n RequestDelegate _next = null;\r\n protected void Application_Start()\r\n {\r\n AreaRegistration.RegisterAllAreas();\r\n FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);\r\n RouteConfig.RegisterRoutes(RouteTable.Routes);\r\n BundleConfig.RegisterBundles(BundleTable.Bundles);\r\n }\r\n}", + "NewText": "RequestDelegate _next = null;", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "Span": { "_start": { - "_line": 10, + "_line": 12, "_character": 0 }, "_end": { - "_line": 20, + "_line": 12, "_character": 0 } }, - "StartLinePosition": { - "_line": 10, - "_character": 0 - }, - "EndLinePosition": { - "_line": 20, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "public class MvcApplication : System.Web.HttpApplication\r\n{\r\n protected void Application_Start()\r\n {\r\n AreaRegistration.RegisterAllAreas();\r\n FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);\r\n RouteConfig.RegisterRoutes(RouteTable.Routes);\r\n BundleConfig.RegisterBundles(BundleTable.Bundles);\r\n }\r\n\r\n public MvcApplication(RequestDelegate next)\r\n {\r\n }\r\n}", + "NewText": "publicMvcApplication(RequestDelegatenext){}", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "Span": { "_start": { - "_line": 10, + "_line": 19, "_character": 0 }, "_end": { - "_line": 20, + "_line": 19, "_character": 0 } }, - "StartLinePosition": { - "_line": 10, - "_character": 0 - }, - "EndLinePosition": { - "_line": 20, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } } ] @@ -2316,81 +2118,54 @@ ], "TextChanges": [ { - "NewText": ".Mvc;\r\nusing System.Web.Optimization;\r\nusing System.Web.Routing;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class MvcApplication : System.Web.HttpApplication\r\n {\r\n protected void Application_Start()\r\n {\r\n AreaRegistration.RegisterAllAreas();\r\n FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);\r\n RouteConfig.RegisterRoutes(RouteTable.Routes);\r\n BundleConfig.RegisterBundles(BundleTable.Bundles);\r\n }\r\n }\r\n}", + "NewText": "", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "Span": { "_start": { "_line": 3, - "_character": 16 + "_character": 0 }, "_end": { - "_line": 21, + "_line": 4, "_character": 0 } }, - "StartLinePosition": { - "_line": 3, - "_character": 16 - }, - "EndLinePosition": { - "_line": 21, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "using Microsoft.AspNetCore.Http;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class MvcApplication : System.Web.HttpApplication\r\n {\r\n protected void Application_Start()\r\n {\r\n AreaRegistration.RegisterAllAreas();\r\n FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);\r\n RouteConfig.RegisterRoutes(RouteTable.Routes);\r\n BundleConfig.RegisterBundles(BundleTable.Bundles);\r\n }\r\n }\r\n}", + "NewText": "using Microsoft.AspNetCore.Http;\r\n\r\n", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "Span": { "_start": { "_line": 7, "_character": 0 }, "_end": { - "_line": 21, + "_line": 7, "_character": 0 } }, - "StartLinePosition": { - "_line": 7, - "_character": 0 - }, - "EndLinePosition": { - "_line": 21, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } }, { - "NewText": "using System.Threading.Tasks;\r\n\r\nnamespace NetFrameworkExample\r\n{\r\n public class MvcApplication : System.Web.HttpApplication\r\n {\r\n protected void Application_Start()\r\n {\r\n AreaRegistration.RegisterAllAreas();\r\n FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);\r\n RouteConfig.RegisterRoutes(RouteTable.Routes);\r\n BundleConfig.RegisterBundles(BundleTable.Bundles);\r\n }\r\n }\r\n}", + "NewText": "using System.Threading.Tasks;\r\n\r\n", "FileLinePositionSpan": { - "Path": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", - "HasMappedPath": false, + "Path": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Global.asax.cs", "Span": { "_start": { "_line": 7, "_character": 0 }, "_end": { - "_line": 21, + "_line": 7, "_character": 0 } }, - "StartLinePosition": { - "_line": 7, - "_character": 0 - }, - "EndLinePosition": { - "_line": 21, - "_character": 0 - }, - "IsValid": true + "HasMappedPath": false } } ] @@ -2399,13 +2174,13 @@ }, { "SourceFileName": "AssemblyInfo.cs", - "SourceFilePath": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\Properties\\AssemblyInfo.cs", + "SourceFilePath": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\Properties\\AssemblyInfo.cs", "ApiAnalysisResults": [], "RecommendedActions": [] }, { "SourceFileName": ".NETFramework,Version=v4.8.AssemblyAttributes.cs", - "SourceFilePath": "C:\\Users\\longachr\\AppData\\Local\\Temp\\ppwfye40.odt\\NetFrameworkExample\\NetFrameworkExample\\obj\\Debug\\.NETFramework,Version=v4.8.AssemblyAttributes.cs", + "SourceFilePath": "C:\\Users\\louiejon\\AppData\\Local\\Temp\\fzihgr5i.c3u\\NetFrameworkExample\\NetFrameworkExample\\obj\\Debug\\.NETFramework,Version=v4.8.AssemblyAttributes.cs", "ApiAnalysisResults": [], "RecommendedActions": [] } diff --git a/tests/PortingAssistant.Client.IntegrationTests/TestProjects/NetFrameworkExample-analyze/NetFrameworkExample-package-analysis.json b/tests/PortingAssistant.Client.IntegrationTests/TestProjects/NetFrameworkExample-analyze/NetFrameworkExample-package-analysis.json index a831c71a9..cbfcd38cc 100644 --- a/tests/PortingAssistant.Client.IntegrationTests/TestProjects/NetFrameworkExample-analyze/NetFrameworkExample-package-analysis.json +++ b/tests/PortingAssistant.Client.IntegrationTests/TestProjects/NetFrameworkExample-analyze/NetFrameworkExample-package-analysis.json @@ -61,7 +61,9 @@ "5.2.0", "5.2.1", "5.2.2", - "5.2.3" + "5.2.3", + "5.3.0", + "5.3.1" ] } }, @@ -96,7 +98,9 @@ "5.2.0", "5.2.1", "5.2.2", - "5.2.3" + "5.2.3", + "5.3.0", + "5.3.1" ], "RecommendedActionType": "UpgradePackage", "Description": "4.0.0", @@ -123,7 +127,8 @@ "3.6.0", "3.6.1", "3.6.3", - "3.6.4" + "3.6.4", + "3.7.0" ] } }, @@ -139,7 +144,8 @@ "3.6.0", "3.6.1", "3.6.3", - "3.6.4" + "3.6.4", + "3.7.0" ], "RecommendedActionType": "UpgradePackage", "Description": "3.5.0", @@ -305,7 +311,7 @@ }, "CompatibilityResults": { "netcoreapp3.1": { - "Compatibility": "COMPATIBLE", + "Compatibility": "INCOMPATIBLE", "CompatibleVersions": [] } },