github-actions[bot] on v4.5.0
jeremydmiller on master
option to also clear state on a… (compare)
github-actions[bot] on v4.4.0
jeremydmiller on master
new extension methods for rebui… (compare)
github-actions[bot] on v4.3.1
jeremydmiller on master
changing the resources display … (compare)
github-actions[bot] on v4.3.0
jeremydmiller on master
Workaround for extension servic… (compare)
github-actions[bot] on v4.2.0
dependabot[bot] on npm_and_yarn
Bump prismjs from 1.25.0 to 1.2… (compare)
jeremydmiller on master
ran the stdocs to vitepress con… *mostly* converted docs to Vite… deleting obsolete stdocs docume… and 9 more (compare)
[2021-05-03 16:05:42Z] [FTL] [<s:>] WebApp failed to start.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
File name: 'Microsoft.CodeAnalysis, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at System.ModuleHandle.ResolveType(QCallModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataToken caCtorToken, MetadataImport& scope, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1& derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctorWithParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.IsCustomAttributeDefined(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Int32 attributeCtorToken, Boolean mustBeInheritable)
at System.Reflection.CustomAttribute.IsDefined(RuntimeAssembly assembly, RuntimeType caType)
at System.Reflection.RuntimeAssembly.IsDefined(Type attributeType, Boolean inherit)
at System.Attribute.IsDefined(Assembly element, Type attributeType, Boolean inherit)
at System.Reflection.CustomAttributeExtensions.IsDefined(Assembly element, Type attributeType)
at Baseline.Reflection.ReflectionExtensions.HasAttribute[T](Assembly provider)
at Oakton.CommandFactory.<>c.<RegisterCommandsFromExtensionAssemblies>b__30_0(Assembly a)
dotnet run ...
doesn't even work without the project file.
dotnet run [assembly file name]
. It’s been awhile since I’ve done that, so it might be a flag of some sort
In dotnet core, dotnet run app.exe
or any file produces a response like the following:
Couldn't find a project to run. Ensure a project exists in C:\code\publish\App, or pass the path to the project using --project.
From the dotnet-run docs:
The dotnet run command is used in the context of projects, not built assemblies. If you're trying to run a framework-dependent application DLL instead, you must use dotnet without a command.
Are people only using Oakton on source projects or on release builds as well?
FileNotFoundException
, it’s unable to load the assembly referenced. You might try making a direct dependency to that nuget package w/ that version
CreateHostBuilder(args).Build().Run()
to CreateHostBuilder(args).RunOaktonCommands(args)
, some of the our middleware get loggers without log sinks configured. All I have to do is change to code back to fix it, so Build().Run(args)
does something RunOaktonCommands(args)
does not do. Any clue what that might be and whether there is a work around? It's as if Oakton doesn't call IHostBuilder.Build
, but it is hard to tell.
NetInput.LogLevelFlag
and see where it might be using that too aggressively. I’m inclined to blame Oakton’s special sauce here.
NetCoreInput.cs line 44
would be my guess, but I'm not sure what the intent is behind the code.
NetCoreInput
never has a logger value and does not do anything out of the ordinary. Something that Oakton does while loading configuration from appsettings.json interferes with how Serilog configures sinks and forces Serilog to use a SilentLogger as described by serilog/serilog#562 and shown below.
preserveStaticLogger: true
parameter described here.