-
Notifications
You must be signed in to change notification settings - Fork 226
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
Fix UTs caused by .NET 8 release by using specific nuget version #8362
Changes from all commits
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 |
---|---|---|
|
@@ -150,7 +150,7 @@ private void SomeMethod(bool condition) { } // Compliant | |
|
||
protected override void Up(MigrationBuilder migrationBuilder) { } | ||
} | ||
}").AddReferences(EntityFrameworkCoreReferences(Constants.NuGetLatestVersion)).Verify(); | ||
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. will you open a ticket to bring this back to NuGet Latest? For example, will we still ignore migrations on Net 8? 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. No we will revert this PR during the migration of UT project to |
||
}").AddReferences(EntityFrameworkCoreReferences("7.0.14")).Verify(); | ||
|
||
[DataTestMethod] | ||
[DataRow(ProjectType.Product)] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ public void UriShouldNotBeHardcoded_CSharp_VirtualPath_AspNet(string aspNetMvcVe | |
|
||
[DataTestMethod] | ||
[DataRow("2.0.4", "2.0.3", "2.1.1")] | ||
[DataRow(Constants.NuGetLatestVersion, Constants.NuGetLatestVersion, Constants.NuGetLatestVersion)] | ||
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. will you open a ticket to bring this back to NuGet Latest? why: we keep LatestVersion to be aware if some API changes lead to our rules creating FPs or FNs (e.g. a deprecated attribute might be removed, so we won't raise anymore on net8 and we need to update the rule) 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 created the ticket #8363 The goal would be to revert this PR when changing the target framework of the UT project to |
||
[DataRow("2.2.0", "2.2.0", "2.2.0")] | ||
public void UriShouldNotBeHardcoded_CSharp_VirtualPath_AspNetCore(string aspNetCoreMvcVersion, string aspNetCoreRoutingVersion, string netHttpHeadersVersion) => | ||
builderCS | ||
.AddPaths("UriShouldNotBeHardcoded.AspNetCore.cs") | ||
|
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.
will you open a ticket to bring this back to NuGet Latest?
why: we keep LatestVersion to be aware if some API changes lead to our rules creating FPs or FNs (e.g. a deprecated attribute might be removed, so we won't raise anymore on net8 and we need to update the rule)