When we want to do continuous integration than we need to build our setup using command prompt, e.g. if you want to build your setup using jenkins than you will be needed to build using commands
Onetime Setup of your server for getting rid from this ERROR
“An error occurred while validating. HRESULT = ‘8000000A'”
  1. CD C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\VSI\DisableOutOfProcBuild
  2. run DisableOutOfProcBuild.exe
After successfully running the command you should get this message
"Setting DWORD value 'EnableOutOfProcBuild' to '0' on registry key with path 'HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\16.0_6baece73_Config\MSBuild'...
Success."
This will enable the system to create setup out of the Visual Studio, from the command prompt
Now we will setup environment variables
  1. Open your Explorer and on This PC,
  2. Do right click—>>> this will open your properties
  3. Now click on advanced system settings
  4. Click on environment variables
  5. Click on Path
  6. Add new Path –>> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\
  7. And press OK button
Now it is time to  add commands to your JENKINS Build Agent
  1. devenv "YOUR_SOURCE_CODE_PATH\project_name.sln" /clean release /project "YOUR_SOURCE_CODE_PATH\project_name.csproj" /projectconfig release
  2. devenv "YOUR_SOURCE_CODE_PATH\project_name.sln" /build release /project "YOUR_SOURCE_CODE_PATH\project_name.csproj" /projectconfig release
  3. devenv "YOUR_SOURCE_CODE_PATH\project_name.sln" /build release /project setupFolderName /projectconfig release

Leave a Reply

Your email address will not be published. Required fields are marked *

Social media & sharing icons powered by UltimatelySocial
back to top
Get Free Quote