Skip to content

Commit 1b7c9f7

Browse files
adegeodanmoseley
andauthored
Update list-of-diagnostics.md (#8859)
* Update list-of-diagnostics.md * more * lint * 'space * error --------- Co-authored-by: Dan Moseley <[email protected]>
1 parent b72eb4f commit 1b7c9f7

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

docs/list-of-diagnostics.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
# List of Diagnostics Produced by Aspire
22

3-
## MSBuild Warnings
3+
## MSBuild Warnings[
44

55
| Diagnostic ID | Severity | Description | Location |
66
| ------------- | -------- | ----------- | -------- |
7-
| `ASPIRE001` | Warning | The '\[ProjectLanguage\]' language isn't fully supported by Aspire - some code generation targets will not run, so will require manual authoring. | [src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets](src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets) |
8-
| `ASPIRE002` | Warning | '\[ProjectName\]' is an Aspire AppHost project but necessary dependencies aren't present. Are you missing an Aspire.Hosting.AppHost PackageReference? | [src/Aspire.Hosting.Sdk/SDK/Sdk.in.targets](src/Aspire.Hosting.Sdk/SDK/Sdk.in.targets) |
9-
| `ASPIRE003` | Warning | '\[ProjectName\]' is a .NET Aspire AppHost project that requires Visual Studio version 17.10 or above to work correctly. You are using version $(MSBuildVersion). | [src/Aspire.Hosting.Sdk/SDK/Sdk.in.targets](src/Aspire.Hosting.Sdk/SDK/Sdk.in.targets) |
10-
| `ASPIRE004` | Warning | '\[ProjectName\]' is referenced by an Aspire Host project, but it is not an executable. Did you mean to set IsAspireProjectResource=&quot;false&quot;? | [src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets](src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets) |
11-
| `ASPIRE005` | Error | '\[ProjectName\]' project requires a newer version of the .NET Aspire Workload to work correctly. Please run `dotnet workload update`. | [src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets](src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets) |
7+
| `ASPIRE001` | Warning | The '\[ProjectLanguage\]' language isn't fully supported by Aspire - some code generation targets will not run, so will require manual authoring. | [src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets](../src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets) |
8+
| `ASPIRE002` | Warning | '\[ProjectName\]' is an Aspire AppHost project but necessary dependencies aren't present. Are you missing an Aspire.Hosting.AppHost PackageReference? | [src/Aspire.Hosting.Sdk/SDK/Sdk.in.targets](../src/Aspire.Hosting.Sdk/SDK/Sdk.in.targets) |
9+
| `ASPIRE003` | Warning | '\[ProjectName\]' is a .NET Aspire AppHost project that requires Visual Studio version 17.10 or above to work correctly. You are using version $(MSBuildVersion). | [src/Aspire.Hosting.Sdk/SDK/Sdk.in.targets](../src/Aspire.Hosting.Sdk/SDK/Sdk.in.targets) |
10+
| `ASPIRE004` | Warning | '\[ProjectName\]' is referenced by an Aspire Host project, but it is not an executable. Did you mean to set IsAspireProjectResource=&quot;false&quot;? | [src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets](../src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets) |
11+
| `ASPIRE005` | Error | '\[ProjectName\]' project requires a newer version of the .NET Aspire Workload to work correctly. Please run `dotnet workload update`. | [src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets](../src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets) |
12+
| `ASPIRE007` | Error | '\[ProjectName\]' project requires a reference to &quot;Aspire.AppHost.Sdk&quot; with version &quot;9.0.0&quot; or greater to work correctly. Please add the following line after the Project declaration `<Sdk Name=Aspire.AppHost.Sdk" Version="9.0.0" />`. | [src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets](../src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets) |
1213

1314
## Analyzer Warnings
1415

1516
| Diagnostic ID | Severity | Description | Location |
1617
| ------------- | -------- | ----------- | -------- |
17-
| `ASPIRE006` | Error | Application model items must have valid names | [src/Aspire.Hosting.Analyzers/AppHostAnalyzer.Diagnostics.cs](src/Aspire.Hosting.Analyzers/AppHostAnalyzer.Diagnostics.cs) |
18+
| `ASPIRE006` | Error | Application model items must have valid names | [src/Aspire.Hosting.Analyzers/AppHostAnalyzer.Diagnostics.cs](../src/Aspire.Hosting.Analyzers/AppHostAnalyzer.Diagnostics.cs) |
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
; Shipped analyzer releases
2-
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
2+
; https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
33

4+
## Release 9.0
5+
6+
### New Rules
7+
8+
Rule ID | Category | Severity | Notes
9+
--------|----------|----------|-------
10+
ASPIRE006 | Design | Error | Diagnostics, [Documentation](https://aka.ms/dotnet/aspire/ASPIRE006)
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
; Unshipped analyzer release
2-
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
2+
; https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
33

4-
### New Rules
5-
6-
Rule ID | Category | Severity | Notes
7-
--------|----------|----------|-------
8-
ASPIRE006 | Design | Error | Diagnostics, [Documentation](https://aka.ms/dotnet/aspire/ASPIRE006)

src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets

+3-2
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,9 @@ namespace Projects%3B
268268

269269
<Target Name="__ErrorOnMininumSdkVersionMissing" BeforeTargets="PrepareForBuild"
270270
Condition="'$(IsAspireHost)' == 'true' and ('$(AspireHostingSDKVersion)' == '' or $([MSBuild]::VersionLessThan('$(AspireHostingSDKVersion)', '9.0.0')))">
271-
<Error Code="ASPIRE006"
272-
Text="$(MSBuildProjectName) project requires a reference to &quot;Aspire.AppHost.Sdk&quot; with version &quot;9.0.0&quot; or greater to work correctly. Please add the following line after the Project declaration `&lt;Sdk Name=&quot;Aspire.AppHost.Sdk&quot; Version=&quot;9.0.0&quot; /&gt;`." />
271+
<Error Code="ASPIRE007"
272+
Text="$(MSBuildProjectName) project requires a reference to &quot;Aspire.AppHost.Sdk&quot; with version &quot;9.0.0&quot; or greater to work correctly. Please add the following line after the Project declaration `&lt;Sdk Name=&quot;Aspire.AppHost.Sdk&quot; Version=&quot;9.0.0&quot; /&gt;`."
273+
File="$(MSBuildProjectFullPath)" />
273274
</Target>
274275

275276
<!-- Entrypoint to allow for generation of an aspire manifest to a given location -->

0 commit comments

Comments
 (0)