CsprojToVs2017
CsprojToVs2017 copied to clipboard
Consistently getting "Specify which project file to use..."
After installing and attempting to run, I'm consistently getting... "Specify which project file to use because this 'D:\ATLASSVN\Common\source\Utilities\Utilities' contains more than one project file."
My command line is: dotnet migrate-2019 wizard "Utilities.csproj"
The directory actually only contains one .csproj file. I've attached my .csproj file and a screenshot of my command window.
If there anything I'm obviously doing wrong?

Your directory is called Utilities.csproj? I would need to test but why does your folder have an extension :)
Not saying we shouldn't fix that but it seems weird
On Wed, Sep 18, 2019, 16:27 threadz [email protected] wrote:
After installing and attempting to run, I'm consistently getting... "Specify which project file to use because this 'D:\ATLASSVN\Common\source\Utilities\Utilities' contains more than one project file."
My command line is: dotnet migrate-2019 wizard "Utilities.csproj"
The directory actually only contains one .csproj file. I've attached my .csproj file and a screenshot of my command window.
If there anything I'm obviously doing wrong?
Utilities.csproj.zip https://github.com/hvanbakel/CsprojToVs2017/files/3628713/Utilities.csproj.zip
[image: 2019-09-19 11_12_24-Common- Microsoft Visual Studio (Administrator)] https://user-images.githubusercontent.com/5687119/65193459-54f5ef80-dacf-11e9-8d3c-6dffd1bd709b.png
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hvanbakel/CsprojToVs2017/issues/265?email_source=notifications&email_token=AA7QKPDLBPFRDZCRBK2TUXTQKK2PJA5CNFSM4IYEWUNKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMIXPMQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7QKPHXB4ZOZ2VI3FX6S5TQKK2PJANCNFSM4IYEWUNA .
No. Project file in the Utilities directory is called Utilities.csproj. I was referencing the project file directly from the command line.
It's a .NET Framework 4 class library.
Seemed a weird error message to me too.
@threadz It's strange, to the point of being weird.
-
There is currently no such string in this project. It's not the message of
dotnet-migrate-2019. -
Even if there were, the wizard should list all ambiguous variants (in case there are less than 5).
-
What is your version of
project2015to2017.migrate2019.tool(dotnet tool list -g)? -
Try turning on extreme log verbosity.
dotnet migrate-2019 -v diag wizard "Utilities.csproj" -
Try specifying ".\Utilities.csproj" or full path. Try not specifying anything, it should pick that file, since it's the only project/solution file in the current working directory.
Wow, that is odd then. Here's the screenshot from the CMD window with your suggestions...

Apparently this error is also run when running dotnet ef
https://github.com/aspnet/EntityFrameworkCore/issues/11315