Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSB6003 The specified task executable "sgen.exe" could not be run. The filename or extension is too long

Running VS 2017 15.5.3 on windows 10.

Getting this generic error "The specified task executable "sgen.exe" could not be run. The filename or extension is too long" When building project in Release configuration and X64 platform. But it builds fine in Debug configuration and Any CPU platform.

As suggested in https://developercommunity.visualstudio.com/content/problem/98090/vs-2017-153-error-the-specified-task-executable-sg.html

Was able to build it but after the setting "Generate serialization assembly" to OFF.

Don't think the filename is long. Would anyone shed light on this?

Best Regards,

Damodar

like image 960
Damodar_K Avatar asked Jan 11 '18 03:01

Damodar_K


1 Answers

  1. In Solution Explorer, right-click on the project throwing the error; then click on Properties.
  2. In the window that opens, click on the Build tab by the left.
  3. Locate the Generate serialization assembly option.
  4. Set ti to OFF or AUTO.
like image 71
Manu Avatar answered Sep 22 '22 14:09

Manu