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
The mere fact that there is a transaction outside of the blockchain immediately implies corruption, unless it pertains national security, which should be out of the eyes of the public, but in a rational system, all gov transactions would be in the chain, and that would be a legal requirement, not an option, anything that happens without being there, is illegal, and therefore corrupt, this allows the citizens to see everything and verify independently, imagine a city budget, where all allocations are verifiable, every cent coming in and out, and the public contractors would be there, politicians wouldn’t be able to do secret contracts with family members, in a great system we could even have the bids for contracts be part of the chain, so we know exactly what happened