CsprojToVs2017 icon indicating copy to clipboard operation
CsprojToVs2017 copied to clipboard

Consistently getting "Specify which project file to use..."

Open threadz opened this issue 6 years ago • 5 comments

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

2019-09-19 11_12_24-Common- Microsoft Visual Studio (Administrator)

threadz avatar Sep 18 '19 23:09 threadz

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 .

hvanbakel avatar Sep 19 '19 00:09 hvanbakel

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 avatar Sep 19 '19 00:09 threadz

@threadz It's strange, to the point of being weird.

  1. There is currently no such string in this project. It's not the message of dotnet-migrate-2019.

  2. Even if there were, the wizard should list all ambiguous variants (in case there are less than 5).

  3. What is your version of project2015to2017.migrate2019.tool (dotnet tool list -g)?

  4. Try turning on extreme log verbosity. dotnet migrate-2019 -v diag wizard "Utilities.csproj"

  5. 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.

andrew-boyarshin avatar Sep 19 '19 02:09 andrew-boyarshin

Wow, that is odd then. Here's the screenshot from the CMD window with your suggestions...

2019-09-19 15_03_03-C__WINDOWS_system32_cmd exe

threadz avatar Sep 19 '19 03:09 threadz

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

hvanbakel avatar Sep 19 '19 03:09 hvanbakel