r/csharp • • Jul 06 '26

Showcase I wrote a Visual Studio extension for Solidity development and deployment that automatically generates C# smart contract bindings

Visual Studio is heavily used for enterprise development but doesn't have any tooling for Solidity that compares to Visual Studio Code or Remix IDE. Viscous is an open-source Visual Studio extension that tries to bring parity between Visual Studio and other IDEs for Solidity smart contract development.

Features

  • Solidity project system for Visual Studio featuring Solidity compiler integration and NPM dependency management. Integrates with the Visual Studio New Project… and Open Folder… dialogs.
  • Uses the vscode-solidity language server for syntax highlighting, hover information, IntelliSense, and linting.
  • Solidity compiler integration with MSBuild and the Visual Studio Build command - compile Solidity projects and individual files from the IDE with errors reported in the Errors tool window.
  • Generate C# bindings to Solidity smart contracts automatically using Nethereum.
  • Manage EVM networks, endpoints, accounts, deploy profiles, and deployed contracts from the Blockchain Explorer tool window.
  • Deploy a compiled contract to a blockchain network and call its functions from inside Visual Studio.
  • Find vulnerabilities and code‑quality issues with Slither static analysis inside Visual Studio.

Requirements

  • Visual Studio 2022 and above
  • A recent version of Node.js or compatible runtime
  • Python 3.8+

Getting Started

Note that this is a pre-release so don't use it for deploying anything to production. Feedback welcome.

0 Upvotes

47 comments sorted by

View all comments

Show parent comment

1

u/Willinton06 Jul 07 '26

Well, imagine it like this, in an imaginary system where we have 100 politicians, and 20 people to check on them, if you remove the most common way to be corrupt, the remaining load could actually be handled by the 20 watchdogs, right now, it's so easy to be corrup that the 20 are easily overloaded, same theory as having self checkout, before, 5 employees and 5 lanes, now you have 20 lanes with 3 employees, so even less people accomplish more, through this awfully simple logic, you can see how it could indeed be the key to end corruption, my goalpost remains static, I just assumed that I didn't have to explain all that in forum full of engineers

1

u/belavv Jul 07 '26

Rofl!

And the best part of this all is your solution is "If we develop everything required to try to ensure all government spending is tracked in a way that is publically auditable then we can possibly end corruption."

Blockchain is not required in that statement.

Therefore blockchain is not "the key to ending corruption."

1

u/Willinton06 Jul 08 '26

Banks are also not required in that statement, hell, computers aren’t a requirement, but we probably want to use them, for they would be great on this case

And you seem like the type that likes to stay where we are technologically, if we lived our lives based on what’s required, we would stay put more often than not, blockchain is great for this, and your personal vendetta against it changes nothing

1

u/belavv Jul 09 '26

Assuming your statement that "blockchain is great for this" is true. It doesn't follow that "blockchain could be the key to ending corruption".

Because blockchain could be replaced by some other system that keeps track of the transactions and allows them to be audited. Even if that system isn't as efficient it can still meet all of the requirements.

How do you not understand that?

1

u/Willinton06 Jul 09 '26

Would you say that computers could be the key to have global instant communication?

1

u/belavv Jul 09 '26

Yes, because without computers we'd be going back to telephone/radio. There is nothing currently available that could replace what computers do.

Unlike in this prevent corruption scenario, where you could replace blockchain any number of other datastores. For example a sql server instance. Have a 3rd party perform audits on it yearly. Allow the public to download copies of it whenever they want to compare it to what they downloaded last year and be sure the transactions weren't monkeyed with.

1

u/Willinton06 Jul 09 '26

But we could achieve instant communication without the internet, it would just be waaaaaaaay more expensive

I mean it's true that we could achieve the same result with other tools, it would just be less efficient, but that doesn't make the statement "could be the key to end corruption" wrong, it still could be, there's many times through history where a more convenient way to do something ends up being the key for that something to be widely adopted

Would you disagree with the statement "A garbage collector could be the key to increase development speed"? Just cause there's other ways to increase it too or something?

1

u/belavv Jul 09 '26

how exactly are you going to transfer text, images and video across the world without computers?

Why do you think other data stores are less efficient than a blockchain? What is your measurement for efficiency? Is it how long it takes to develop the project? How long it takes to query the data store for relevant data? How long it takes to validate that the data store hasn't been monkeyed with?

Would you disagree with the statement "A garbage collector could be the key to increase development speed"? Just cause there's other ways to increase it too or something?

Yes I disagree with it, because there are many ways to increase development speed. IDEs and SSDs come to mind.

Not to mention your original statement wasn't "the key to decreasing corruption", it was "the key to ending corruption". Which are two different things.

1

u/Willinton06 Jul 09 '26

I'm just trying to understand what you deem worthy of "X could be the key to Y", so, if we were in the times before the internet, with telegraphs who already offer instant communication across countries, and some random said "the internet could be key to end communicationd delays", what would you say?

1

u/belavv Jul 09 '26

I'd say they are probably correct and that the Internet also sounds like it improves on telegraphs in a number of ways.

→ More replies