Microsoft.AspNetCore.Mvc.Testing failed to build with error MSB4186 #42772
Labels
area-web-frameworks
*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
feature-mvc-testing
MVC testing package
investigate
Milestone
Is there an existing issue for this?
Describe the bug
Having issue with the latest Microsoft.AspNetCore.Mvc.Testing with version 6.0.7 in the integration tests project.
This is my project structure.
This is the .csproj of the integration tests project.
I'm getting the MSB4186 error when I tried to build the integration tests project, I'm able to run the web app project directly without issue but not the integration test project.
According to #31066, I tried to remove the condition in the targets but the project still failed to build.
Expected Behavior
The project is built successfully.
Steps To Reproduce
Template.Project.Core
.Template.Project.Infrastructure
.Template.Project.WebApp
.Template.Project.IntegrationTests
.UPDATE 1
Rename the parent level folder to include
)
, the issue occurs when the full path contains)
.Exceptions (if any)
No response
.NET Version
6.0.302
Anything else?
No response
The text was updated successfully, but these errors were encountered: