Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

UserSecrets causes design-time tools to crash #543

@natemcmaster

Description

@natemcmaster

Changes made to support MSBuild #525 attribute break design-time usages of .AddUserSecrets() because Assembly.GetEntryAssembly() is different at design-time than runtime.

Known design-time scenarios affected
EF migrations - see dotnet/efcore#6918
ASP.NET Scaffolding

Workaround:
Users should specify the app assembly with the overload of .AddUserSecrets(Assembly assembly)
Example

.AddUserSecrets(typeof(Startup).GetTypeInfo().Assembly)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions