NuGet / Samples

NuGet team sample repo
Other
136 stars 108 forks source link

How do you run CatalogReaderExample.dll from a command prompt, outside Visual Studio? #36

Closed txwizard closed 4 years ago

txwizard commented 4 years ago

I cloned the NuGet Samples repository, built the debug configuration, and ran it successfully inside Visual Studio. Following is the console log.

No cursor found. Defaulting to 2019/12/15 19:57:16.
Fetched catalog index https://api.nuget.org/v3/catalog0/index.json.
Fetched catalog page https://api.nuget.org/v3/catalog0/page9344.json.
Processing 107 catalog leaves.
2019/12/15 19:58:31: Tedd.BitUtils 1.0.5 (type is nuget:PackageDetails)
2019/12/15 20:03:23: aemarcoCore 2.1.2 (type is nuget:PackageDetails)
2019/12/15 20:06:11: Twino.Client.Connectors 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:06:11: Twino.Client.TMQ 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:06:22: Twino.Core 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:06:22: Twino.Client.WebSocket 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:06:33: Twino.Extensions.Data 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:06:33: Twino.Mvc 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:06:33: Standart.Hash.xxHash 1.0.7 (type is nuget:PackageDetails)
2019/12/15 20:06:44: Twino.Extensions.Http 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:06:44: Twino.Protocols.Http 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:06:56: Twino.Ioc 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:06:56: Twino.MQ 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:06:56: Twino.Protocols.WebSocket 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:07:08: Twino.Mvc.Auth.Jwt 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:07:20: Twino.Protocols.TMQ 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:07:32: Twino.SerializableModel 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:07:44: Twino.Server 2.0.13-beta (type is nuget:PackageDetails)
2019/12/15 20:10:00: RESTSchemaRetry 1.0.2 (type is nuget:PackageDetails)
2019/12/15 20:11:45: Twino.Client.TMQ 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:11:56: Twino.Client.WebSocket 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:11:56: Twino.Client.Connectors 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:11:56: GrpcExtensions.AspNetCore.Validation 2.25.1 (type is nuget:PackageDetails)
2019/12/15 20:12:08: Twino.MQ 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:12:08: Twino.Ioc 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:12:19: Twino.Mvc 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:12:19: Twino.Core 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:12:19: Twino.Extensions.Data 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:12:31: Twino.Mvc.Auth.Jwt 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:12:31: Twino.Extensions.Http 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:12:42: Twino.Protocols.WebSocket 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:13:24: Twino.Protocols.TMQ 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:13:24: Twino.SerializableModel 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:13:24: Twino.Protocols.Http 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:14:38: Twino.Server 2.0.14-beta (type is nuget:PackageDetails)
2019/12/15 20:17:57: PeriaIT.DataModeler.DataModel 1.0.1.5 (type is nuget:PackageDetails)
2019/12/15 20:18:08: PeriaIT.DataModeler.DataContext 1.0.1.40 (type is nuget:PackageDetails)
2019/12/15 20:18:51: PeriaIT.DataModeler.DataService 1.0.0.36 (type is nuget:PackageDetails)
2019/12/15 20:18:51: Be.Vlaanderen.Basisregisters.DataDog.Tracing.AspNetCore 4.1.0 (type is nuget:PackageDetails)
2019/12/15 20:18:51: Be.Vlaanderen.Basisregisters.DataDog.Tracing 4.1.0 (type is nuget:PackageDetails)
2019/12/15 20:18:51: Be.Vlaanderen.Basisregisters.DataDog.Tracing.Autofac 4.1.0 (type is nuget:PackageDetails)
2019/12/15 20:18:51: Be.Vlaanderen.Basisregisters.DataDog.Tracing.SqlStreamStore 4.1.0 (type is nuget:PackageDetails)
2019/12/15 20:18:51: Be.Vlaanderen.Basisregisters.DataDog.Tracing.Sql 4.1.0 (type is nuget:PackageDetails)
2019/12/15 20:19:34: FunctionMonkey.Abstractions 4.0.25-beta.1 (type is nuget:PackageDetails)
2019/12/15 20:19:34: NWrath.Synergy 1.0.4 (type is nuget:PackageDetails)
2019/12/15 20:19:34: FunctionMonkey.Commanding.Abstractions 4.0.25-beta.1 (type is nuget:PackageDetails)
2019/12/15 20:19:34: FunctionMonkey 4.0.25-beta.1 (type is nuget:PackageDetails)
2019/12/15 20:19:47: FunctionMonkey.Commanding.Cosmos.Abstractions 4.0.25-beta.1 (type is nuget:PackageDetails)
2019/12/15 20:20:29: FunctionMonkey.FluentValidation 4.0.25-beta.1 (type is nuget:PackageDetails)
2019/12/15 20:20:41: FunctionMonkey.Testing 4.0.25-beta.1 (type is nuget:PackageDetails)
2019/12/15 20:20:41: FunctionMonkey.Compiler 4.0.25-beta.1 (type is nuget:PackageDetails)
2019/12/15 20:20:41: FunctionMonkey.SignalR 4.0.25-beta.1 (type is nuget:PackageDetails)
2019/12/15 20:20:41: FunctionMonkey.FSharp 4.0.25-beta.1 (type is nuget:PackageDetails)
2019/12/15 20:20:52: FunctionMonkey.TokenValidator 4.0.25-beta.1 (type is nuget:PackageDetails)
2019/12/15 20:23:40: AutoUpdateViaGitHubRelease 0.1.30 (type is nuget:PackageDetails)
2019/12/15 20:30:37: Plugin.LocalNotification 4.1.1 (type is nuget:PackageDetails)
2019/12/15 20:30:37: Plugin.LocalNotification 4.1.0 (type is nuget:PackageDetails)
2019/12/15 20:31:51: Be.Vlaanderen.Basisregisters.EventHandling.Autofac 2.1.0 (type is nuget:PackageDetails)
2019/12/15 20:31:51: Be.Vlaanderen.Basisregisters.EventHandling 2.1.0 (type is nuget:PackageDetails)
2019/12/15 20:32:34: DevDH.Magic.Abstractions 1.0.4 (type is nuget:PackageDetails)
2019/12/15 20:34:19: Plugin.LocalNotification 4.1.0 (type is nuget:PackageDetails)
2019/12/15 20:36:35: DataFunc.Authentication.Extensions 1.0.0.94 (type is nuget:PackageDetails)
2019/12/15 20:36:35: DataFunc.Extensions.Logging 1.0.0.21 (type is nuget:PackageDetails)
2019/12/15 20:36:35: DataFunc.Sqs.Extensions 1.0.0.93 (type is nuget:PackageDetails)
2019/12/15 20:36:35: DataFunc.Exceptions 1.0.0.75 (type is nuget:PackageDetails)
2019/12/15 20:36:35: DataFunc.IMemoryCache.Redis 1.0.0.23 (type is nuget:PackageDetails)
2019/12/15 20:36:35: Headway.WorkflowEngine 1.1.0 (type is nuget:PackageDetails)
2019/12/15 20:36:35: DataFunc.Extensions.MediatR 1.0.0.91 (type is nuget:PackageDetails)
2019/12/15 20:36:35: DataFunc.Extensions 1.0.0.92 (type is nuget:PackageDetails)
2019/12/15 20:36:35: DataFunc.S3.Extensions 1.0.0.94 (type is nuget:PackageDetails)
2019/12/15 20:36:35: DataFunc.Extensions.Web 1.0.0.93 (type is nuget:PackageDetails)
2019/12/15 20:36:35: DataFunc.Services.Background 1.0.0.92 (type is nuget:PackageDetails)
2019/12/15 20:36:46: Cake.NScan 0.50.0 (type is nuget:PackageDetails)
2019/12/15 20:36:46: NScan 0.50.0 (type is nuget:PackageDetails)
2019/12/15 20:36:58: NScan.Adapter.ReadingCSharpSolution 0.50.0 (type is nuget:PackageDetails)
2019/12/15 20:37:09: NScan.DependencyPathBasedRules 0.50.0 (type is nuget:PackageDetails)
2019/12/15 20:37:09: NScan.Adapter.ReportingOfResults 0.50.0 (type is nuget:PackageDetails)
2019/12/15 20:37:22: NScan.SharedKernel 0.50.0 (type is nuget:PackageDetails)
2019/12/15 20:37:22: NScan.ProjectScopedRules 0.50.0 (type is nuget:PackageDetails)
2019/12/15 20:37:34: NScan.Adapter.ReadingRules 0.50.0 (type is nuget:PackageDetails)
2019/12/15 20:37:46: NScan.Console 0.50.0 (type is nuget:PackageDetails)
2019/12/15 20:37:46: NScan.NamespaceBasedRules 0.50.0 (type is nuget:PackageDetails)
2019/12/15 20:37:46: NScan.Adapter.NotifyingSupport 0.50.0 (type is nuget:PackageDetails)
2019/12/15 20:37:46: NScan.Lib 0.50.0 (type is nuget:PackageDetails)
2019/12/15 20:37:46: NScan.Domain 0.50.0 (type is nuget:PackageDetails)
2019/12/15 20:40:02: Cake.NScan 0.50.1 (type is nuget:PackageDetails)
2019/12/15 20:40:02: NScan.Console 0.50.1 (type is nuget:PackageDetails)
2019/12/15 20:40:13: NScan.Adapter.ReportingOfResults 0.50.1 (type is nuget:PackageDetails)
2019/12/15 20:40:13: NScan 0.50.1 (type is nuget:PackageDetails)
2019/12/15 20:40:13: NScan.Adapter.NotifyingSupport 0.50.1 (type is nuget:PackageDetails)
2019/12/15 20:40:13: NScan.Adapter.ReadingCSharpSolution 0.50.1 (type is nuget:PackageDetails)
2019/12/15 20:40:25: NScan.Adapter.ReadingRules 0.50.1 (type is nuget:PackageDetails)
2019/12/15 20:40:37: NScan.Lib 0.50.1 (type is nuget:PackageDetails)
2019/12/15 20:40:37: NScan.DependencyPathBasedRules 0.50.1 (type is nuget:PackageDetails)
2019/12/15 20:40:37: NScan.Domain 0.50.1 (type is nuget:PackageDetails)
2019/12/15 20:40:49: NScan.NamespaceBasedRules 0.50.1 (type is nuget:PackageDetails)
2019/12/15 20:40:49: NScan.ProjectScopedRules 0.50.1 (type is nuget:PackageDetails)
2019/12/15 20:40:49: NScan.SharedKernel 0.50.1 (type is nuget:PackageDetails)
2019/12/15 20:41:31: M3gur0.Library.Infrastructure.Data.Redis 0.1.0 (type is nuget:PackageDetails)
2019/12/15 20:44:49: Acamti.Be.Fluent 3.0.0-beta.3 (type is nuget:PackageDetails)
2019/12/15 20:49:41: Hsp.PsLibrary 1.0.0+b7ecb13bdbcb6ff945fa298ba08006de44de80c0 (type is nuget:PackageDetails)
2019/12/15 20:49:53: CLI 0.5.2 (type is nuget:PackageDetails)
2019/12/15 20:51:38: CLI 0.5.2 (type is nuget:PackageDetails)
2019/12/15 20:53:54: M3gur0.Library.Domain 1.1.0 (type is nuget:PackageDetails)
2019/12/15 20:55:07: Wikiled.WebSockets.Server 1.0.18 (type is nuget:PackageDetails)
2019/12/15 20:55:19: Wikiled.WebSockets.Client 1.0.18 (type is nuget:PackageDetails)
2019/12/15 20:57:35: SqliteHelper 1.1.0 (type is nuget:PackageDetails)
Writing cursor value: 2019/12/15 20:57:35.

C:\Program Files\dotnet\dotnet.exe (process 22604) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .

The debugger output window listing follows.

'dotnet.exe' (CoreCLR: DefaultDomain): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Private.CoreLib.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'F:\Source_Code\Visual_Studio\Projects\NuGet\NuGet_Samples\CatalogReaderExample\CatalogReaderExample\bin\Debug\netcoreapp2.0\CatalogReaderExample.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Runtime.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Threading.Tasks.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Collections.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Private.Uri.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Net.Http.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Console.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Users\DAG\.nuget\packages\newtonsoft.json\9.0.1\lib\netstandard1.0\Newtonsoft.Json.dll'. 
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Linq.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.IO.FileSystem.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Runtime.Extensions.dll'. Symbols loaded.
Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Threading.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Users\DAG\.nuget\packages\nuget.protocol\4.4.0\lib\netstandard1.3\NuGet.Protocol.dll'. 
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Users\DAG\.nuget\packages\nuget.configuration\4.4.0\lib\netstandard1.3\NuGet.Configuration.dll'. 
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Collections.Concurrent.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Users\DAG\.nuget\packages\nuget.common\4.4.0\lib\netstandard1.3\NuGet.Common.dll'. 
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.IO.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Globalization.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Runtime.InteropServices.RuntimeInformation.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Security.Cryptography.Algorithms.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Security.Cryptography.Primitives.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Text.Encoding.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.IO.FileSystem.Primitives.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Net.Primitives.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Resources.ResourceManager.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Reflection.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Dynamic.Runtime.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Linq.Expressions.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.ObjectModel.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Users\DAG\.nuget\packages\nuget.versioning\4.4.0\lib\netstandard1.0\NuGet.Versioning.dll'. 
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Runtime.Serialization.Primitives.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Users\DAG\.nuget\packages\nuget.packaging\4.4.0\lib\netstandard1.3\NuGet.Packaging.dll'. 
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Reflection.Extensions.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Diagnostics.Tracing.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Runtime.InteropServices.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Diagnostics.DiagnosticSource.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Security.Cryptography.X509Certificates.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Collections.NonGeneric.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.IO.Compression.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Buffers.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Xml.XDocument.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Private.Xml.Linq.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Private.Xml.dll'. Symbols loaded.
The thread 0x56f8 has exited with code 0 (0x0).
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Text.RegularExpressions.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Reflection.Emit.ILGeneration.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Reflection.Primitives.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Reflection.Emit.Lightweight.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'Anonymously Hosted DynamicMethods Assembly'. 
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.9\System.Diagnostics.Debug.dll'. Symbols loaded.
The program '[22604] dotnet.exe' has exited with code 0 (0x0).

The foregoing suggests to me that this is a .Net Core package. I have no prior experience with executing such assemblies. Next, I built the Release configuration, and tried to run it from a command prompt (cmd.exe) with the following outcome.

F:\Source_Code\Visual_Studio\Projects\NuGet\NuGet_Samples 2019/12/15 15:30:03.29>F:\Source_Code\Visual_Studio\Projects\NuGet\NuGet_Samples\CatalogReaderExample\CatalogReaderExample\bin\Release\netcoreapp2.0\CatalogReaderExample.dll

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

F:\Source_Code\Visual_Studio\Projects\NuGet\NuGet_Samples 2019/12/15 15:30:27.91>

Examining the source code led me to believe that the assembly was a standard console program.

What fine point did I miss?

loic-sharma commented 4 years ago

You'll need to use the .NET Core SDK's dotnet executable to run the program. You can get this here by selecting Download .NET Core SDK.

Here is how you can use the dotnet CLI:

cd Samples\CatalogReaderExample\CatalogReaderExample
dotnet run

Or:

cd Samples\CatalogReaderExample\CatalogReaderExample
dotnet build
dotnet .\bin\Debug\netcoreapp2.0\CatalogReaderExample.dll

Please let us know if you have any additional questions!

txwizard commented 4 years ago

Thank you, @loic-sharma for that clear, concise answer.

The fact that the extension was .dll suggested to me that it might need a character-mode program to host it. However, since I haven't done anything to date with .NET Core, it didn't occur to me that the required character-mode program was dotnet.exe. Since I have the latest version of Microsoft Visual Studio and virtually every available SDK, I quickly found it in a directory that is already in my PATH list. I had only to enter 'where dotnet.exe` at a command prompt to find it.

loic-sharma commented 4 years ago

Happy to help! Feel free to open another issue if you run into anything else :)