-
Notifications
You must be signed in to change notification settings - Fork 14
Description
I noticed an error when generating migrations which caused me to be unable to run the migration generated. When I try I get this error:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "MyProject.Migrations.MyMigrationName.resources" was correctly embedded or linked into assembly "MyProject" at compile time, or that all the satellite assemblies required are loadable and fully signed.
I notice then, in the initial migration generated by your tools the designer file looks like this:
public sealed partial class InitialCreate : IMigrationMetadata
{
string IMigrationMetadata.Id
{
get { return "201610061952137_InitialCreate"; }
}
string IMigrationMetadata.Source
{
get { return null; }
}
...
}
Then in my second migration it looks like this:
private readonly ResourceManager Resources = new ResourceManager(typeof(UpdatedEntities));
string IMigrationMetadata.Id
{
get { return "201610102027102_UpdatedEntities"; }
}
string IMigrationMetadata.Source
{
get { return Resources.GetString("Source"); }
}
So the error is clear here, it's referencing resource manager that I am not using, removing that line and setting the IMigrationMetadata.Source to return null, as in the original migration fixed the problem. But it seems to be an error in generating it.
As an aside, in the package manager to download your package, only 1.0.4 and 1.0.6 show up. You can update project.json with 1.0.5 and it works, but it doesn't show in the package explorer UI.