[Failing test]: Aspire.Hosting.Tests.MSBuildTests.EnsureWarningsAreEmittedWhenProjectReferencingLibraries
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Build information
Build: https://github.com/dotnet/aspire/actions/runs/14199999003/job/39784796123?pr=8463
Build error leg or test failing: Aspire.Hosting.Tests.MSBuildTests.EnsureWarningsAreEmittedWhenProjectReferencingLibraries
Pull Request: https://github.com/dotnet/aspire/pull/8463
### Fill in the error message template
## Error Message
Fill the error message using [step by step known issues guidance](https://github.com/dotnet/arcade/blob/main/Documentation/Projects/Build%20Analysis/KnownIssueJsonStepByStep.md).
```json
{
"ErrorMessage": "",
"ErrorPattern": "error MSB4057: The target \"GitInfo\" does not exist in the project.",
"BuildRetry": true,
"ExcludeConsoleLog": true
}
```
### Other info
```
Build failed:
Determining projects to restore...
Restored D:\\a\\aspire\\aspire\\src\\Aspire.Hosting.Analyzers\\Aspire.Hosting.Analyzers.csproj (in 293 ms).
Restored D:\\a\\aspire\\aspire\\src\\Aspire.Hosting\\Aspire.Hosting.csproj (in 308 ms).
Restored C:\\Users\
unneradmin\\AppData\\Local\\Temp\\AspireHostingTestsrdvwqjud.vwu\\Library\\Library.csproj (in 355 ms).
Restored D:\\a\\aspire\\aspire\\src\\Aspire.Hosting.AppHost\\Aspire.Hosting.AppHost.csproj (in 94 ms).
Restored C:\\Users\
unneradmin\\AppData\\Local\\Temp\\AspireHostingTestsrdvwqjud.vwu\\AppHost\\AppHost.csproj (in 1.62 sec).
Library -\u003E C:\\Users\
unneradmin\\AppData\\Local\\Temp\\AspireHostingTestsrdvwqjud.vwu\\Library\\bin\\Debug\et8.0\\Library.dll
D:\\a\\aspire\\aspire\\eng\\Versions.targets(49,67): error MSB4057: The target \u0022GitInfo\u0022 does not exist in the project. [D:\\a\\aspire\\aspire\\src\\Aspire.Hosting\\Aspire.Hosting.csproj]
Build FAILED.
D:\\a\\aspire\\aspire\\eng\\Versions.targets(49,67): error MSB4057: The target GitInfo does not exist in the project. [D:\\a\\aspire\\aspire\\src\\Aspire.Hosting\\Aspire.Hosting.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:07.68
at Aspire.Hosting.Tests.MSBuildTests.EnsureWarningsAreEmittedWhenProjectReferencingLibraries() in /_/tests/Aspire.Hosting.Tests/MSBuildTests.cs:line 122
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
```
### Report
#### Summary
|24-Hour Hit Count|7-Day Hit Count|1-Month Count|
|---|---|---|
|0|0|0|
### Known issue validation
**Build: :mag_right:**
**Result validation:** :warning: Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "**Build:** :mag_right:" line.
**Validation performed at:** 4/16/2025 6:54:18 AM UTC
Last 10 failures:
| Run date | Test Name |
| --------- | ---- |
| Apr 24 6 PM | [linux] [Aspire.Hosting.Tests.MSBuildTests.EnsureWarningsAreEmittedWhenProjectReferencingLibraries](https://github.com/dotnet/aspire/actions/runs/14648541893) |
| Apr 24 6 PM | [windows] [Aspire.Hosting.Tests.MSBuildTests.EnsureWarningsAreEmittedWhenProjectReferencingLibraries](https://github.com/dotnet/aspire/actions/runs/14648541893) |
| Apr 24 4 PM | [windows] [Aspire.Hosting.Tests.MSBuildTests.EnsureWarningsAreEmittedWhenProjectReferencingLibraries](https://github.com/dotnet/aspire/actions/runs/14646285413) |
| Apr 24 4 PM | [linux] [Aspire.Hosting.Tests.MSBuildTests.EnsureWarningsAreEmittedWhenProjectReferencingLibraries](https://github.com/dotnet/aspire/actions/runs/14646285413) |
| Apr 24 2 PM | [windows] [Aspire.Hosting.Tests.MSBuildTests.EnsureWarningsAreEmittedWhenProjectReferencingLibraries](https://github.com/dotnet/aspire/actions/runs/14643667021) |
| Apr 24 2 PM | [linux] [Aspire.Hosting.Tests.MSBuildTests.EnsureWarningsAreEmittedWhenProjectReferencingLibraries](https://github.com/dotnet/aspire/actions/runs/14643667021) |
| Apr 24 12 PM | [linux] [Aspire.Hosting.Tests.MSBuildTests.EnsureWarningsAreEmittedWhenProjectReferencingLibraries](https://github.com/dotnet/aspire/actions/runs/14641228483) |
| Apr 24 12 PM | [windows] [Aspire.Hosting.Tests.MSBuildTests.EnsureWarningsAreEmittedWhenProjectReferencingLibraries](https://github.com/dotnet/aspire/actions/runs/14641228483) |
| Apr 24 10 AM | [linux] [Aspire.Hosting.Tests.MSBuildTests.EnsureWarningsAreEmittedWhenProjectReferencingLibraries](https://github.com/dotnet/aspire/actions/runs/14638957175) |
| Apr 24 10 AM | [windows] [Aspire.Hosting.Tests.MSBuildTests.EnsureWarningsAreEmittedWhenProjectReferencingLibraries](https://github.com/dotnet/aspire/actions/runs/14638957175) |
-- Updated on 4/24/2025 8:19:40 PM UTC
## Summary
| Last 40 | Total failed / total runs |
| --- | --- |
| 40 | 200 / 200 |
Contributor guide
Assessment
This issue has not been assessed yet.