UpgradeReport.sarif 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {
  2. "$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
  3. "version": "2.1.0",
  4. "runs": [
  5. {
  6. "tool": {
  7. "driver": {
  8. "name": "Back up project",
  9. "semanticVersion": "",
  10. "informationUri": "https://github.com/dotnet/upgrade-assistant#usage",
  11. "rules": [
  12. {
  13. "id": "Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep",
  14. "fullDescription": {
  15. "text": "Back up the current project to another directory"
  16. }
  17. }
  18. ]
  19. }
  20. },
  21. "results": [
  22. {
  23. "ruleId": "Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep",
  24. "level": "note",
  25. "message": {
  26. "text": "Complete: Project backed up to D:\\GitHub\\Design-Pattern.backup\\AdapterPattern"
  27. },
  28. "locations": [
  29. {
  30. "physicalLocation": {
  31. "artifactLocation": {
  32. "uri": "file:///D:/GitHub/Design-Pattern.backup/AdapterPattern"
  33. },
  34. "region": {}
  35. }
  36. }
  37. ]
  38. }
  39. ],
  40. "columnKind": "utf16CodeUnits"
  41. },
  42. {
  43. "tool": {
  44. "driver": {
  45. "name": "Add package 'Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers'",
  46. "semanticVersion": "",
  47. "informationUri": "https://github.com/dotnet/upgrade-assistant#usage",
  48. "rules": [
  49. {
  50. "id": "Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterStep+PackageManipulationStep`1[[Microsoft.DotNet.UpgradeAssistant.NuGetReference, Microsoft.DotNet.UpgradeAssistant.Abstractions, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]"
  51. }
  52. ]
  53. }
  54. },
  55. "results": [
  56. {
  57. "ruleId": "Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterStep+PackageManipulationStep`1[[Microsoft.DotNet.UpgradeAssistant.NuGetReference, Microsoft.DotNet.UpgradeAssistant.Abstractions, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]",
  58. "level": "note",
  59. "message": {
  60. "text": "Complete: Add package 'Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers'"
  61. },
  62. "locations": [
  63. {
  64. "physicalLocation": {
  65. "artifactLocation": {
  66. "uri": "file:///D:/GitHub/Design-Pattern/AdapterPattern/AdapterPattern.csproj"
  67. },
  68. "region": {}
  69. }
  70. }
  71. ]
  72. }
  73. ],
  74. "columnKind": "utf16CodeUnits"
  75. },
  76. {
  77. "tool": {
  78. "driver": {
  79. "name": "Update TFM",
  80. "semanticVersion": "",
  81. "informationUri": "https://github.com/dotnet/upgrade-assistant#usage",
  82. "rules": [
  83. {
  84. "id": "Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.SetTFMStep",
  85. "fullDescription": {
  86. "text": "Update TFM for current project"
  87. }
  88. }
  89. ]
  90. }
  91. },
  92. "results": [
  93. {
  94. "ruleId": "Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.SetTFMStep",
  95. "level": "error",
  96. "message": {
  97. "text": "Failed: Unexpected error applying upgrade step 'Update TFM'\r\nSystem.InvalidOperationException: Project file only supports setting TFM on new style csproj\r\n at Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.TargetFrameworkMonikerCollection.SetTargetFramework(TargetFrameworkMoniker tfm)\r\n at Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildProject.SetTFM(TargetFrameworkMoniker tfm) in /_/src/components/Microsoft.DotNet.UpgradeAssistant.MSBuild/MSBuildProject.File.cs:line 49\r\n at Microsoft.DotNet.UpgradeAssistant.Extensions.TryConvert.SetTFMStep.ApplyImplAsync(IUpgradeContext context, CancellationToken token)\r\n at Microsoft.DotNet.UpgradeAssistant.UpgradeStep.ApplyAsync(IUpgradeContext context, CancellationToken token) in /_/src/common/Microsoft.DotNet.UpgradeAssistant.Abstractions/UpgradeStep.cs:line 178"
  98. },
  99. "locations": [
  100. {
  101. "physicalLocation": {
  102. "artifactLocation": {
  103. "uri": "file:///D:/GitHub/Design-Pattern/AdapterPattern/AdapterPattern.csproj"
  104. },
  105. "region": {}
  106. }
  107. }
  108. ]
  109. }
  110. ],
  111. "columnKind": "utf16CodeUnits"
  112. }
  113. ]
  114. }