question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Publish TSQLLint.Console as a .NET Core tool

See original GitHub issue

We’d like to use TSQLLint without the dependency on npm, and it seems well-suited to use as a .NET Core tool.

Configuring the csproj would be as simple as this commit, and then just dotnet pack .\source\TSQLLint.Console\TSQLLint.Console.csproj -c Tool and push the package up to NuGet.org. .NET Core tools are also cross-platform, so it wouldn’t require any multi-platform builds like the current build/package process.

Usage would be something like this:

dotnet tool install TSQLLint.Console
dotnet tsqllint

Let me know if you’d like a pull request to update the csproj. I could update the build and publish scripts too, but I’d need some guidance on how you want that handled.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
nathan-boydcommented, Aug 26, 2021

I’ve added support for dotnet tool installation. Instructions here. Keep in mind this is the latest version of the tool which include async processing and some other improvements, but have not be heavily tested outside of the unit test suite.

0reactions
nathan-boydcommented, Sep 7, 2021

closing this as implemented in cfa67dadfc7820c5c77ea73a8b622ada8b0e5dc9

Read more comments on GitHub >

github_iconTop Results From Across the Web

tsqllint/tsqllint: Configurable linting for TSQL
TSQLLint. TSQLLint is a tool for describing, identifying, and reporting the presence of anti-patterns in TSQL scripts.
Read more >
Publish a .NET console application using Visual Studio
This tutorial shows how to publish a console app so that other users can run it. Publishing creates the set of files that...
Read more >
How to release/publish a .Net Core console application?
In general, a command for publishing console app is dotnet publish -c Release -r win10-x64. You should change win10-x64 by correct rid which ......
Read more >
How to publish a dotnet global tool with .NET Core 2.1
This creates a basic console project that prints "Hello world" to the console. Now, let's modify the project file to add the tool...
Read more >
Using .NET Core Tools to Create Reusable and Shareable ...
NET Core Tools are a simple way to create, publish, and consume what are essentially .NET Core applications that can be published and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found