sirius91
Goto Top

Altes Build Proj mit mage.exe erstellt kein manifest

Hallo liebe Community,

ich habe die Aufgabe ein sehr altes Projekt erneut zu bauen. Problem dabei ist die nahtlose anknüpfung an die Clickonce Update Funktion.
Meines Erachtens ist es die einfachste Variante diese Buildprojekt zu laufen zu bringen.

Vorhanden ist
- VS Projekt, lässt sich über DEBUG kompilieren
- Build.proj Datei, welche das Projekt soweit auch korrekt erstellt und baut

Es wird allerdings leider nicht die Manifest Datei erzeugt.

Es kommt folgende Fehlermeldung:

  "D:\TFS\ProjektOrdner\Tools\mage.exe" -New Application -FromDirectory D:\TFS\ProjektOrdner\MeinProjekt\Web\ClickOnce -ToFile D:\TFS\ProjektOrdner\MeinProjekt\Web\ClickOnce\MeinProjekt.exe.manifest -IconFi  
  le MeinProjekt.exe -Name "MeinProjekt (Test)" -Version 1.1.6722.20856 -TrustLevel FullTrust  
  Unrecognized command line argument 'MeinProjekt\MeinProjekt\Web\ClickOnce'  
  Unrecognized command line argument 'MeinProjekt\MeinProjekt\Web\ClickOnce\MeinProjekt.exe.manifest'  
  Commands
        -New <file_type>                  -n
        -Update <file_name>               -u
        -Sign <file_name>                 -s
        -ClearApplicationCache            -cc
        -Help [verbose]                   -h -?



  Options
        -AppCodeBase <path>               -appc
        -AppManifest <path>               -appm
        -CertFile <file_name>             -cf
        -CertHash <hash>                  -ch
        -FromDirectory <path>             -fd
        -IconFile <file_path>             -if
        -IncludeProviderURL <true|false>  -ip
        -Install <true|false>             -i
        -Name <name>                      -n
        -Password <password>              -pwd
        -Processor <processor>            -p
        -ProviderURL <url>                -pu
        -Publisher <publisher_name>       -pub
        -MinVersion <version #|none>      -mv
        -SupportURL <support_url>         -s
        -TimeStampUri <uri>               -ti
        -ToFile <file_name>               -t
        -TrustLevel <level>               -tr
        -UseManifestForTrust <true|false> -um
        -Version <version>                -v
        -WPFBrowserApp <true|false>       -wpf

  Use "mage -help verbose" for more detailed help  
  "D:\TFS\ProjektOrdner\Tools\mage.exe" -New Deployment -Install true -Publisher LIfBi -ProviderUrl https://xyz.de/MeinProjekt/MeinProjekt.application -AppManifest D:\TFS\ProjektOrdner\MeinProjekt\  
  Web\ClickOnce\MeinProjekt.exe.manifest -ToFile D:\TFS\ProjektOrdner\MeinProjekt\Web\MeinProjekt.application
  Unrecognized command line argument 'MeinProjekt\MeinProjekt\Web\ClickOnce\MeinProjekt.exe.manifest'  
  Unrecognized command line argument 'MeinProjekt\MeinProjekt\Web\MeinProjekt.application'  
  Commands
        -New <file_type>                  -n
        -Update <file_name>               -u
        -Sign <file_name>                 -s
        -ClearApplicationCache            -cc
        -Help [verbose]                   -h -?



  Options
        -AppCodeBase <path>               -appc
        -AppManifest <path>               -appm
        -CertFile <file_name>             -cf
        -CertHash <hash>                  -ch
        -FromDirectory <path>             -fd
        -IconFile <file_path>             -if
        -IncludeProviderURL <true|false>  -ip
        -Install <true|false>             -i
        -Name <name>                      -n
        -Password <password>              -pwd
        -Processor <processor>            -p
        -ProviderURL <url>                -pu
        -Publisher <publisher_name>       -pub
        -MinVersion <version #|none>      -mv
        -SupportURL <support_url>         -s
        -TimeStampUri <uri>               -ti
        -ToFile <file_name>               -t
        -TrustLevel <level>               -tr
        -UseManifestForTrust <true|false> -um
        -Version <version>                -v
        -WPFBrowserApp <true|false>       -wpf

  Use "mage -help verbose" for more detailed help  
  "D:\TFS\ProjektOrdner\Tools\mage.exe" -Update D:\TFS\ProjektOrdner\MeinProjekt\Web\MeinProjekt.application -AppManifest D:\TFS\ProjektOrdner\MeinProjekt\Web\ClickOnce\MeinProjekt.exe.manifest -Publisher  
  LIfBi -Name "MeinProjekt (Test)" -Version 1.1.6722.20856  
  Unrecognized command line argument 'MeinProjekt\MeinProjekt\Web\MeinProjekt.application'  
  Unrecognized command line argument 'MeinProjekt\MeinProjekt\Web\ClickOnce\MeinProjekt.exe.manifest'  
  Commands
        -New <file_type>                  -n
        -Update <file_name>               -u
        -Sign <file_name>                 -s
        -ClearApplicationCache            -cc
        -Help [verbose]                   -h -?



  Options
        -AppCodeBase <path>               -appc
        -AppManifest <path>               -appm
        -CertFile <file_name>             -cf
        -CertHash <hash>                  -ch
        -FromDirectory <path>             -fd
        -IconFile <file_path>             -if
        -IncludeProviderURL <true|false>  -ip
        -Install <true|false>             -i
        -Name <name>                      -n
        -Password <password>              -pwd
        -Processor <processor>            -p
        -ProviderURL <url>                -pu
        -Publisher <publisher_name>       -pub
        -MinVersion <version #|none>      -mv
        -SupportURL <support_url>         -s
        -TimeStampUri <uri>               -ti
        -ToFile <file_name>               -t
        -TrustLevel <level>               -tr
        -UseManifestForTrust <true|false> -um
        -Version <version>                -v
        -WPFBrowserApp <true|false>       -wpf

  Use "mage -help verbose" for more detailed help  
  Die Datei wird von "D:\TFS\ProjektOrdner\Web.config" in "D:\TFS\ProjektOrdner\MeinProjekt\Web\ClickOnce\Web.config" verschoben.  
Die Erstellung von Projekt "D:\TFS\ProjektOrdner\Build.proj" ist abgeschlossen (Standardziele).  


Der Buildvorgang wurde erfolgreich ausgeführt.
    0 Warnung(en)
    0 Fehler

Verstrichene Zeit 00:00:12.58

Ich habe verschiedene mage.exe ausprobiert - die aktuelleste vom Developer SDK aber auch die uralte mage.exe die im TFS mit eingecheckt war. Unabhängig davon kommt immer die selbe Meldung


Im Buildscript schaut der Codeabschnitt wie folgt aus:
    
<Exec Command="$(Mage) -New Application -FromDirectory $(WorkspacePath)\Web\ClickOnce -ToFile $(WorkspacePath)\Web\ClickOnce\MeinProjekt.exe.manifest -IconFile MeinProjekt.exe -Name &quot;$(ApplicationName)&quot; -Version $(Version) -TrustLevel FullTrust" />  

	<Exec Command="$(Mage) -New Deployment -Install true -Publisher LIfBi -ProviderUrl $(ApplicationUrl) -AppManifest $(WorkspacePath)\Web\ClickOnce\MeinProjekt.exe.manifest -ToFile $(WorkspacePath)\Web\StudyManager.application"  />      
	
	<Exec Command="$(Mage) -Update $(WorkspacePath)\Web\MeinProjekt.application -AppManifest $(WorkspacePath)\Web\ClickOnce\MeinProjekt.exe.manifest -Publisher LIfBi -Name &quot;$(ApplicationName)&quot; -Version $(Version)"  />  

Weiß jemand wie das Problem zu beheben ist?

Besten Dank.

Content-Key: 375304

Url: https://administrator.de/contentid/375304

Printed on: April 26, 2024 at 19:04 o'clock

Mitglied: 136166
Solution 136166 May 28, 2018 at 11:34:21 (UTC)
Goto Top
Also ich würd erst mal alle Pfade in Anführungszeichen setzen.