> dotnet add package StyleCop.Analyzers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[string]$projectName | |
) | |
mkdir "$projectName" | |
# Ensure the SDK is locked in so the solution is independent of other SDK versions | |
cd "$projectName" | |
dotnet new globaljson --sdk-version 8.0.101 --roll-forward minor | |
dotnet new editorconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -m master main | |
git push -u origin main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2019-03-26T10:31:11.194Z","extensionVersion":"v3.2.7"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://saebamini.com/the-dangerous-ef-core-feature-automatic-client-evaluation/ | |
When using EF Core, the default configuration will not warn you (with a runtime error) if you | |
are using a Linq query that EF Core cannot evaluate. This will result in the query being | |
run in a manner that might not be as expected. For example: | |
var query = context.Set<Blog>().Where(x => x.Url.Equals("google.com/", StringComparison.OrdinalIgnoreCase)); | |
var results = query.ToList(); | |
The overloaded Equals method with the StringComparison argument is not something EF Core understands. As |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RuleSet Name="StyleCop Rules" Description="Code analysis rules" ToolsVersion="14.0"> | |
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers"> | |
<Rule Id="SA1009" Action="None" /> | |
<Rule Id="SA1101" Action="None" /> | |
<Rule Id="SA1200" Action="None" /> | |
<Rule Id="SA1111" Action="None" /> | |
<Rule Id="SA1116" Action="None" /> | |
<Rule Id="SA1117" Action="None" /> | |
<Rule Id="SA1118" Action="None" /> |