Again, you're asking about a feature that has nothing to do with the language. C# is just what's inside the .cs files. Java is just what's inside the .java files.
How you deploy a web application depends on the web server you deploy it to. Most if not all web servers for Java applications support WAR files, but a web server might just as well expect the application in a completely different format.
For IIS, which is the most commonly used web application server for ASP.NET applications, you can bundle your web application as a .deploy.cmd file using WebDeploy. This bundle is really just a script that puts the files of your application in the right places and configures some settings. All of this can also be done by hand in IIS.
Web Apps have a concept of "Publish". On a web project, you right click and say "Publish". It then gives several methods of publishing the web app. The war equivalent is to just zip up the deploy folder. It puts the content and the binaries in the right spot, relative to the deploy folder. One of the goals in .NET web publishing is to have an XCOPY deploy. (Where you just copy all the files into a folder without running installers). If you zip up this folder into a zip archive, this is equivalent to a WAR. If you use a build agent, they usually have the deploy artifacts as a zip.
The "Publish" menu option will also let you push the deployment to any number of services (FTP, IIS, Azure, etc). If you have a web project, and say "Publish", it will also build any dependent projects. It is equivalent to "Build and Publish".
How did Java programmers not commit suicide using Date() from Java 1-7?
I think that .Net was supposed to support something they called an "assembly", although I last worked with .Net - and windows-native apps - in 2007. On WinCE.
C# is typically going to produce straight executables or DLLs. For complex apps, you'd generally deploy them with the Windows Installer, and for all I know they keep their assorted components in a ZIP file, although the installer then deploys them all over the filesystem (potentially).
The popularity of the JAR/WAR/CAR/EAR... (ZIP-based) format for deployables in Java is because Java runs in a Java Virtual Machine and the ZIP format allows the entire set of code and resources to be dumped in as a monolithic unit. C#, on the other hand, deploys straight to the OS (Windows), and complex C# apps can result in files being splattered all over the filesystem. So they're not really equivalent.
Being persecuted doesn't in any way prove your righteousness or your beliefs. Many people get persecuted because they are repugnant or annoying. Or just because they can be.
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
professionally read, modify and write PDF files from Java