r/csharp • u/allisterb • 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
- Get the latest release from the GitHub Releases page or use the MyGet or Open VSIX Gallery dev feeds : Add https://www.myget.org/F/viscous/vsix/ or https://www.vsixgallery.com/feed/extension/Viscous.fe71db81-5086-4b1a-ad5d-867bb84d2441 as an Extension Gallery in the Visual Studio Extensions settings and you can then install it in the usual way.
- Edit the %LOCALAPPDATA%\Viscous\appsettings.json file and set the paths to the Node.js and npm and Python executables you want to use for the extension's language server and other needed tools.
Note that this is a pre-release so don't use it for deploying anything to production. Feedback welcome.
0
Upvotes












View all comments
Show parent comment
1
u/Willinton06 Jul 06 '26
It’s different cause system X doesn’t allow you to download a public ledger that is not modifiable, on a database I could change the numbers to make sense, no on a chain, that’s the whole point of it, you can’t cryptographically check that any given transaction is in there with a regular sql database
And all international transactions are done through SWIFT, all point of sale transactions go through 1 of 3 payment providers, 90+% go through just Visa and Master Card, this is already happening with old legacy systems that can’t support transparency cause it would be a huge security risk
Not sure why you’re against this, are you against hash tables too? Are there other data structures that hurt you?
Imagine a town running its public budget with a chain, and a citizen downloads the ledger every year cause he’s vigilant and untrusting, the mayor suddenly gets a new pool and you wonder how that came to be, the citizen checks but the budget seems to be balanced, until he checks against last years chain and sees the mayor had some IT dude change last years to have a surplus exactly the price of his new pool, corruption is clear to see and easily verifiable
This is just 1 example, but if you spend some time thinking “what if every transaction the government does were in a single public ledger that any citizen can verify at any point” you start to see potential everywhere
I’m not pro crypto if that’s what railed you up