-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UPDATE (Works with one dash '-') Bundle-Migration: A positional parameter cannot be found that accepts argument '--force' #31218
Comments
Oops! It works with one dash '-', but there are two in the docs. |
Are you looking at the correct docs?? |
Why would you think I'm looking at the wrong docs? And the question without a link to the 'right' docs doesn't add much value IMHO. |
Thank you! Guess I should reopen this issue, 'cause other 'correct' docs give the wrong example. |
Can you post links to these docs so we can fix them? |
I just did 😉 |
@JeepNL It's |
Okay, I didn't know that. But it was the only (-)-force example I saw in that page, so I started with double dashes. Maybe it's an idea to add a It was a bit confusing, but that's maybe my fault. |
It is confusing, because a single dash and double dashes are used together here "Bundles" [.NET Core CLI]: https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/applying?tabs=dotnet-core-cli#bundles
[Oops Nr. 2, see next comment] B.T.W. migration Bundles are awesome 🚀. I develop on Windows 11 w. Visual Studio but my project runs on a co-located Ubuntu 22.05 VPS and deploying DB changes is now a breeze!. |
Oops! (Number 2) 'efbundle' is the executable itself. My bad. |
@JeepNL So can this issue be closed? |
Yes, sure. I just wanted to point out that in docs about Migration Bundles the Windows is my main O/S. I'm only using Linux for publishing and running my web projects on my VPS. It's totally unclear to me when to use a single dash or double dashes. I know there's a difference between the O/Ss, but both use single and double dashes often.
So, when I couldn't get it to work with After that I tried it with one dash and it worked, that's why I updated and closed this issue so soon after I created it. I felt stupid not to search in the closed issues and I don't want to waste your time, because you all are busy enough without me asking stupid questions / opening stupid issues. I'm always a bit hesitant to create an issue, because I always think it's me who is doing something wrong. But I do think the docs would be better if there's an example with the There's another issue I encountered with Migration Bundles on Linux and that is when I publish it without |
When I run the
Bundle-Migration
command in Visual Studio Package Manager Console with--force
I'm getting the error belowCommand:
Error:
The text was updated successfully, but these errors were encountered: