Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
james on Wed May 22 at 06:22 PM in ~/bluebaron/sfm/identity-server/IdentityServer branch: (HEAD)
>> dotnet aspnet-codegenerator identity --help
Usage: aspnet-codegenerator [arguments] [options]
generator Name of the generator. Check available generators below.
-p|--project Path to .csproj file in the project.
-c|--configuration Configuration for the project (Possible values: Debug/ Release)
-tfm|--target-framework Target Framework to use. (Short folder name of the tfm. eg. net46)
Selected Code Generator: identity
Generator Options:
--dbContext|-dc : Name of the DbContext to use, or generate (if it does not exist).
--files|-fi : List of semicolon separated files to scaffold. Use the --list-files option to see the available options.
--listFiles|-lf : Lists the files that can be scaffolded by using the '--files' option.
--userClass|-u : Name of the User class to generate.
--useSqLite|-sqlite : Flag to specify if DbContext should use SQLite instead of SQL Server.
--force|-f : Use this option to overwrite existing files.
--useDefaultUI|-udui : Use this option to setup identity and to use Default UI.
--layout|-l : Specify a custom layout file to use.
--generateLayout|-gl : Use this option to generate a new _Layout.cshtml
--bootstrapVersion|-b : Specify the bootstrap version. Valid values: '3', '4'. Default is 4.
RunTime 00:00:00.96
james on Wed May 22 at 06:23 PM in ~/bluebaron/sfm/identity-server/IdentityServer branch: (HEAD)
>> dotnet aspnet-codegenerator identity -dc DefaultConnection --files "Account.Register"
Building project ...
Finding the generator 'identity'...
The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
at System.Reflection.AssemblyName.nInit(RuntimeAssembly& assembly, Boolean raiseResolveEvent)
at System.Reflection.AssemblyName..ctor(String assemblyName)
at Microsoft.VisualStudio.Web.CodeGeneration.DefaultCodeGeneratorAssemblyProvider.<get_CandidateAssemblies>b__6_0(DependencyDescription lib)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGeneratorsLocator.get_CodeGenerators()
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGeneratorsLocator.GetCodeGenerator(String codeGeneratorName)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
RunTime 00:00:02.82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.