add clear log provide
This commit is contained in:
@@ -13,6 +13,9 @@ using FamilyTreeAPI.Repository;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.Logging.ClearProviders();
|
||||
builder.Logging.AddConsole();
|
||||
builder.Logging.AddDebug();
|
||||
// Explicitly register the base paths for Linux container execution
|
||||
builder.Configuration
|
||||
.SetBasePath(AppContext.BaseDirectory) // <-- Pulls from wherever the binary sits
|
||||
@@ -220,4 +223,33 @@ query {
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
dotnet --list-sdks
|
||||
|
||||
In the VS Code Explorer, click and open your <ProjectName>.csproj file.
|
||||
Locate the <TargetFramework> tag inside the <PropertyGroup> block.
|
||||
Change the value to your desired version (e.g., change net11.0 or net9.0 to net10.0
|
||||
|
||||
now run to see out of date
|
||||
|
||||
dotnet list package --outdated
|
||||
|
||||
dotnet tool uninstall --global dotnet-outdated
|
||||
dotnet tool install --global dotnet-outdated-tool
|
||||
|
||||
//update the outdate
|
||||
dotnet outdated -u
|
||||
|
||||
update the package
|
||||
dotnet add package <Package_Name>
|
||||
|
||||
Open the .vscode folder in your workspace and select launch.json.
|
||||
Look for lines containing your old framework directory string (e.g., /bin/Debug/net8.0/).
|
||||
Update those paths to reflect your new version (e.g., /bin/Debug/net9.0/).
|
||||
|
||||
clear and rebuild
|
||||
|
||||
dotnet clean
|
||||
dotnet restore
|
||||
dotnet build
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user