Steps to reproduce
Or:
Or:
- inside a directory
- create a lib with name
lib1.csproj
- create a lib with name
lib2.csproj
- Add any tool (for example
dotnet-mytool) inside one or both projects
dotnet restore lib1.csproj works
dotnet restore lib2.csproj works
dotnet mytool fails
Expected behavior
It's possibile like with dotnet restore to invoke the tool command somehow.
The dotnet mytool should fail only if ambiguous (both lib project define mytool), otherwise should work (best experience).
But expecit passing the project name maybe, like dotnet -p lib1.csproj mytool should make the tool work
I think the issue is because the old project.json was one for directory, so the check to resolve the project to use was ok.
Actual behavior
Error:
Specify which project file to use because this 'e:\repro' contains more than one project file.
Environment data
.NET Command Line Tools (1.0.0-preview3-004056)
Product Information:
Version: 1.0.0-preview3-004056
Commit SHA-1 hash: ccc4968bc3
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
ref dotnet/netcorecli-fsc#47
Steps to reproduce
Or:
dotnet restore Test1Library.fsprojokdotnet restore Test2Library.fsprojokdotnet compile-fscfailsOr:
lib1.csprojlib2.csprojdotnet-mytool) inside one or both projectsdotnet restore lib1.csprojworksdotnet restore lib2.csprojworksdotnet mytoolfailsExpected behavior
It's possibile like with
dotnet restoreto invoke the tool command somehow.The
dotnet mytoolshould fail only if ambiguous (both lib project definemytool), otherwise should work (best experience).But expecit passing the project name maybe, like
dotnet -p lib1.csproj mytoolshould make the tool workI think the issue is because the old
project.jsonwas one for directory, so the check to resolve the project to use was ok.Actual behavior
Error:
Environment data
ref dotnet/netcorecli-fsc#47