Repository navigation
Upgrade Aspire examples to 17 while preserving library compatibility #7810
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
base: main
Are you sure you want to change the base?
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 |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "appHost": { | ||
| "path": "examples/CloudShop/CloudShop.AppHost/CloudShop.AppHost.csproj" | ||
| }, | ||
| "sdk": { | ||
| "version": "17.0.0" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,8 +9,8 @@ | |
| "environmentVariables": { | ||
| "ASPNETCORE_ENVIRONMENT": "Development", | ||
| "DOTNET_ENVIRONMENT": "Development", | ||
| "ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:19155", | ||
| "ASPIRE_DASHBOARD_MCP_ENDPOINT_URL": "http://localhost:18225", | ||
| "ASPIRE_ALLOW_UNSECURED_TRANSPORT": "true", | ||
| "ASPIRE_DASHBOARD_OTLP_GRPC_ENDPOINT_URL": "http://localhost:19155", | ||
|
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. Keep the recognized OTLP endpoint variable. Aspire 17.0.0 still reads
|
||
| "ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:20008" | ||
| } | ||
| } | ||
|
|
||
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.
Apply the LF input rule to all template content, not only the Aspire starter.
Line 52 forces every template snapshot to LF. Line 53 forces LF on only the Aspire starter inputs. Other template inputs, such as
src/TUnit.Templates/content/TUnit/BasicTests.cs, keep native line endings. On Windows withcore.autocrlf=true, their generated output can contain CRLF and fail to match the LF snapshot. The non-Aspire template snapshot tests can fail on Windows for this reason.Apply the same LF policy to the whole template content tree:
Suggested fix
Before merging, confirm that no file under
src/TUnit.Templates/content/needs CRLF. This rule overrides the*.batand*.cmdCRLF rules at lines 37-38 for matching files.