- Series: Exploring .NET 6
- xplat Integrated Windows Authentication (ntlm/Kerberos) #4662
- Tutorial: Use Active Directory authentication with SQL Server on Linux
- .NET Core 6 Windows auth and Active Directory group based permissions
- Configure Windows Authentication in ASP.NET Core
The set of default build properties and assembly level attributes is declared in build/default.props file. You can update these values to match your needs. This properties file is referenced from every top level source directory's Directory.Build.props which gets evaluated by MS Build system. The build project collects the most of the items required to collocated build convention and resources reused across the repository. This project has no output assets and follows guidance from MS Build SDK's NoTargets. The central global.json collects the utilised project SDKs and serves to manage the versions centrally.
The code coverage is implemented via integration of the Coverlet and its MSBuild integration. You can control the build failure in build/default.props by updating the threshold limits. The guidance is at Coverlet.
The output report is placed in output/reports/codecoverage. By default it generates the Coverlet JSON format, Coberture format and HTML output.
The package version is managed centrally at build/Packages.props where you manually insert or update the packages and their versions. If you reference a package into a single project then the build fails as you should prevent this situation and rather update the central place. The guidance is at CentralPackageVersion.
In order to benefit from debugging into the source this repo is also using guidance of SourceLink by using the MS Build SDK's SourceLink SDK. You should update global.json to use correct source link provider according to the host of the GIT repository.
In order to run the tests including the coverage as the default then use the following construct on the command line:
dotnet test -m:1
where the -m:1 option means to run the tests only one at a time. This is the requirement for the coverage get generates successfully.