MSBUILD : error MSB1008 Only one project can be specified
See original GitHub issueI’m experimenting same issue (#213), and I think that it’s not a problem with build errors… Tests executes properly on Visual Studio, and the command ‘dotnet test’ executes right too…
My .vscode\settings.json content:
{
"dotnet-test-explorer.testProjectPath": "*Tests/*Tests.csproj"
}
TestExplorer log output while discovering tests:
Finding projects for pattern c:/work\testexplorerissue/*Tests/*Tests.csproj
Found 1 matches for pattern in folder c:\work\testexplorerissue
Evaluating match c:/work/testexplorerissue/TestExplorerIssue.Lib.Tests/TestExplorerIssue.Lib.Tests.csproj
Adding directory c:/work/testexplorerissue/TestExplorerIssue.Lib.Tests
Executing dotnet test -t -v=q in c:/work/testexplorerissue/TestExplorerIssue.Lib.Tests
Then, in .NET TEST EXPLORER panel you can see: Please, open or set the test project and ensure your project compiles
The problem, I think, is with the execution of dotnet test -t -v=q in c:/work/testexplorerissue/TestExplorerIssue.Lib.Tests
command. It throws the following error:
MSBUILD : error MSB1008 Only one project can be specified.
Attached, I send you a zipped solution that reproduces it: testexplorerissue.zip
_Originally posted by @Kash0321 in https://github.com/formulahendry/vscode-dotnet-test-explorer/issues/213#issuecomment-511178155_
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:10
Top GitHub Comments
thanks @hkutluay, I updated my snippets to avoid any wast of time I anyone want to reuse it.
it works.
Here is how I installed the unpublished extension
change vscode engine version in package.json
or if you don’t use the insider version