Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Created Unassigned: Problem with '[' and ']' character in solution path [1466]

$
0
0
Hi,
Create a C# project (with .NET 4.5) at a path has __[__ or __]__ for example [My Project], then add EF version 5.0.0 to it, then open package console an try run a command such as "enable-migrations" or "Update-Database"; Yuo will give this message:

The term 'enable-migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:18
+ enable-migrations <<<<
+ CategoryInfo : ObjectNotFound: (enable-migrations:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

OK?
Now do one of these:
1. remove breakets from solution path.
or
2. Replace __init.psd1‬__ with same file that comes with EF version 4.3.1 (.NET 4.0)

and there is no problem.

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>