sgen.exe échoue lors de la construction

Après avoir changé le répertoire de sortie d'un projet Visual Studio, la construction a commencé à échouer avec une erreur semblable à :

C:Program FilesMicrosoft Visual Studio 8SDKv2.0insgen.exe /assembly:C:p4rootantaz	runkEASDiscoveryEASDiscoveryCaseManagementobjReleaseEASDiscoveryCaseManagement.dll /proxytypes /reference:C:p4rootantaz	runkEASDiscoveryEasDiscovery.Common	argetwin_x32
elease
esultsEASDiscovery.Common.dll /reference:C:p4rootantaz	runkEASDiscoveryEasDiscovery.Export	argetwin_x32
elease
esultsEASDiscovery.Export.dll /reference:c:p4rootantaz	runkEASDiscoveryItemCache	argetwin_x32
elease
esultsEasDiscovery.ItemCache.dll /reference:c:p4rootantaz	runkEASDiscoveryRetrievalEngine	argetwin_x32
elease
esultsEasDiscovery.RetrievalEngine.dll /reference:C:p4rootantaz	runkEASDiscoveryEASDiscoveryJobs	argetwin_x32
elease
esultsEASDiscoveryJobs.dll /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Shared.v8.1.dll' /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Win.Misc.v8.1.dll' /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Win.UltraWinChart.v8.1.dll' /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Win.UltraWinDataSource.v8.1.dll' /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Win.UltraWinDock.v8.1.dll' /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Win.UltraWinEditors.v8.1.dll' /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Win.UltraWinGrid.v8.1.dll' /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Win.UltraWinListView.v8.1.dll' /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Win.UltraWinMaskedEdit.v8.1.dll' /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Win.UltraWinStatusBar.v8.1.dll' /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Win.UltraWinTabControl.v8.1.dll' /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Win.UltraWinToolbars.v8.1.dll' /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Win.UltraWinTree.v8.1.dll' /reference:'C:Program FilesInfragisticsNetAdvantage for .NET 2008 Vol. 1 CLR 2.0Windows FormsBinInfragistics2.Win.v8.1.dll' /reference:'C:Program FilesMicrosoft Visual Studio 8ReportViewerMicrosoft.ReportViewer.Common.dll' /reference:'C:Program FilesMicrosoft Visual Studio 8ReportViewerMicrosoft.ReportViewer.WinForms.dll' /reference:C:p4rootantaz	runkEASDiscoveryPreviewControl	argetwin_x32
elease
esultsPreviewControl.dll /reference:C:p4rootantaz	runkEASDiscoveryQuartzsrcQuartz	argetwin_x32
elease
esultsScheduler.dll /reference:c:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.configuration.dll /reference:c:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.Data.dll /reference:c:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.Design.dll /reference:c:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.DirectoryServices.dll /reference:c:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.dll /reference:c:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.Drawing.dll /reference:c:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.Web.dll /reference:c:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.Web.Services.dll /reference:c:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.Windows.Forms.dll /reference:c:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.Xml.dll /compiler:/delaysign- 
    Error: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
    C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Microsoft.Common.targets(1902,9): error MSB6006: 'sgen.exe' exited with code 1.

J'ai changé le répertoire de sortie en target/win_x32/release/results mais le chemin dans sgen ne semble pas avoir été mis à jour. Il semble n'y avoir aucune référence dans le projet au chemin passé dans sgen, donc je ne sais pas comment le réparer. Pour contourner le problème, j'ai désactivé la génération de sérialisation, mais ce serait bien de résoudre le problème sous-jacent. Est-ce que quelqu'un d'autre a vu ça ?

请先 登录 后评论

2 réponses

Paul

J'ai rencontré ce problème lorsque j'avais référencé un assembly sur un projet de site Web dans le GAC qui avait été désinstallé depuis, et pour une raison quelconque, cette référence a déclenché une génération d'assembly de sérialisation, et sgen s'est étouffé avec la référence (puisqu'il n'y a pas n'existait plus). Après avoir supprimé la référence et désactivé la génération d'assemblage de sérialisation, je n'ai plus eu le problème.

请先 登录 后评论
sphereinabox

Cela me semble assez raisonnable, à moins que quelque chose n'impose une limite de 4 096 caractères [vous indiquez 4 020 caractères]

Une limite de 4096 me semble un peu absurde, ce serait 2048 ou 32767 ou 8192 d'après ce que j'ai trouvé en recherchant les limites de la ligne de commande.

请先 登录 后评论
  • 0 abonnés
  • 0 favoris,685 Feuilleter
  • stimms posée à 2023-03-27 19:41