ReferenceResolver 0.8.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package ReferenceResolver --version 0.8.0                
NuGet\Install-Package ReferenceResolver -Version 0.8.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ReferenceResolver" Version="0.8.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ReferenceResolver --version 0.8.0                
#r "nuget: ReferenceResolver, 0.8.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ReferenceResolver as a Cake Addin
#addin nuget:?package=ReferenceResolver&version=0.8.0

// Install ReferenceResolver as a Cake Tool
#tool nuget:?package=ReferenceResolver&version=0.8.0                

dotnet-exec

dotnet-execute

dotnet-execute Latest

default

Docker Pulls

Intro

dotnet-exec is a command line tool for executing C# program without a project file, and you can have your custom entry point other than Main method

Install/Update

Latest stable version:

dotnet tool update -g dotnet-execute

Latest preview version:

dotnet tool update -g dotnet-execute --prerelease

Examples

Execute local file:

dotnet-exec HttpPathJsonSample.cs

Execute local file with custom entry point:

dotnet-exec HttpPathJsonSample.cs --entry MainTest

Execute remote file:

dotnet-exec https://github.com/WeihanLi/SamplesInPractice/blob/master/net7Sample/Net7Sample/ArgumentExceptionSample.cs

Execute file with preview features:

dotnet-exec RawStringLiteral.cs --preview

Execute raw code:

dotnet-exec 'code:Console.WriteLine(1+1);'

Execute raw code with custom usings:

dotnet-exec 'code:WriteLine(1+1);' --using "static System.Console"

Execute raw code with custom reference:

dotnet-exec 'code:CsvHelper.GetCsvText(new[]{1,2,3}).Dump();' -r "nuget:WeihanLi.Npoi,2.3.0" --using "WeihanLi.Npoi"

Execute script:

dotnet-exec 'script:1+1'

Execute script with custom reference:

dotnet-exec 'script:Console.WriteLine(CsvHelper.GetCsvText(new[]{1,2,3}))' -r "nuget:WeihanLi.Npoi,2.3.0" -u WeihanLi.Npoi

Execute raw code with docker

docker run --rm weihanli/dotnet-exec:latest dotnet-exec "code:(1+1).Dump()"

More

LanguageVersion

By default, it's using the latest language version, you can use the Preview version with --preview/--lang-version=Preview

EntryPoint

By default, it would use MainTest as the entry point, you can customize with --entry option

TargetFramework

By default, it would use net7.0 if you've installed .NET 7 SDK, otherwise use .NET 6 instead, you can customize with the -f/--framework option

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ReferenceResolver:

Package Downloads
DbTool.Core

DbTool core defined interface for extensions

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.26.0-preview-20250104-155937 51 1/4/2025
0.25.0 77 12/15/2024
0.25.0-preview-20241206-154703 50 12/6/2024
0.25.0-preview-20241205-003755 46 12/5/2024
0.25.0-preview-20241205-001213 49 12/5/2024
0.24.0 74 11/24/2024
0.24.0-preview-20241124-035720 94 11/24/2024
0.24.0-preview-20241117-021926 47 11/17/2024
0.24.0-preview-20241025-003522 52 10/25/2024
0.24.0-preview-20241010-163230 53 10/10/2024
0.24.0-preview-20241009-161812 55 10/9/2024
0.24.0-preview-20241009-152619 56 10/9/2024
0.24.0-preview-20241004-001036 51 10/4/2024
0.24.0-preview-20241003-015422 58 10/3/2024
0.24.0-preview-20241002-173926 53 10/2/2024
0.24.0-preview-20240918-153023 72 9/18/2024
0.24.0-preview-20240911-171636 60 9/11/2024
0.23.0 113 8/29/2024
0.23.0-preview-20240824-102835 71 8/24/2024
0.23.0-preview-20240815-002214 149 8/15/2024
0.22.0 110 7/10/2024
0.21.0 96 6/15/2024
0.20.0 77 6/6/2024
0.19.0 104 4/21/2024
0.18.1 141 3/2/2024
0.18.0 101 3/1/2024
0.17.0 116 2/6/2024
0.16.0 165 1/5/2024
0.15.0 578 11/23/2023
0.14.0 183 4/22/2023
0.13.0 362 3/16/2023
0.12.0 330 12/3/2022
0.11.0 332 11/22/2022
0.10.0 363 11/15/2022
0.9.0 132 11/9/2022
0.8.0 165 10/26/2022