Open Robmaister opened 7 years ago
Since the rest of my deployment works (spent a while verifying everything), this workaround worked for me:
dotnet ef database update
I tried grabbing the latest publish-module.psm1
file since that was the fix for a lot of people with "path too long" errors, but the problem is still there.
Luckily I won't be updating the model on this DB a lot, so I plan on following the above steps as part of deployment until this is fixed.
I looked into removing the space in my username, looks like it's a very involved process so I'd rather do this for now. I'll test from a machine with a username that doesn't have a space soon.
TFS Bug#369169
I'm having the same issue and confirm that this is an issue.
System.InvalidOperationException: The migration 'PC\AppData\Local\Temp\PublishTemp\obj\SafeInvestigation73\SafeInvestigation.Data.ApplicationDbContext.sql' was not found.
I have the same issue. Error : System.InvalidOperationException: The migration 'Devreese\AppData\Local\Temp\PublishTemp\obj\TodoWebApp105\TodoWebApp.Data.ApplicationDbContext.sql' was not found.
Trying to do a regular deploy from VS 2015 Update 3 to Azure with a ASP.NET Core 1.1 app with EF Core Code First database. Ran into a few problems but was able to solve most of them. However, this seems to be a bug.
My user directory for an MS account on Win10 has a space in it, so the default temp path has a space in it. Everything except for these migrations seem to be handling it fine. This is the main error message I'm getting:
The full path should be
C:\Users\Robert Rouhani\AppData\Local\Temp\...
, but I imagine some part of the publish script is mistakenly starting after the first space.Full publish log (with some names redacted):
I hope this is the right place for this bug report