Engineering scalable systems, cloud-native applications, and AI-powered solutions.

Solution- rzc generate exited with code 1 in Visual Studio 2017

I just got this error while publishing my first ASP.NET Core application in Self-Contained Deployment mode.

Ankush Jain

Ankush Jain

Lead Software Engineer (VP) | Software Architect

Published Nov 30, 2018Updated Nov 24, 2026

I just got this error while publishing my first ASP.NET Core application in Self-Contained Deployment mode.

Solution

One liner solution to this problem is - Just repair your Visual Studio.

Though I took some screenshots of repairing steps, I thought attaching those screenshots here might help you.

  1. Step 1: Search for Visual Studio Installer.
    rzc generate exited with code 1
  2. Step 2: Select the repair option.
    rzc generate exited with code 1
  3. Step 3: Click on OK.
    rzc generate exited with code 1
  4. Step 4: At the end, restart the system.
    rzc generate exited with code 1

After restarting the system, you will find that issue has been fixed. :)

Have feedback or thoughts?

Discuss this article or share it on Twitter / GitHub.