Deploiement d'un projet VS 2017 avec le shell
Bonjour a tous !
J'ai un petit blocage, je travail dans une entreprise et je cherche a créer un script d'automatisation du deploiement de mon code, cela pour gagner du temps dans mon devellopement.
j'utilise la version community de visual studio 2017 et, après m'être renseigné, j'ai vu que la commande devenv.exe qui pouvais lancer l'ide permettais une option /Deploy
Je l'ai utilisé mais mon retour console est etrange
La commande :
devenv=(path to devenv.exe)
solution=(path to solution.sln)
projet=(path to project.csproj)
Code:
1 2
|
$devenv $solution \/Deploy Debug \/Project $projet \/Out returnFile |
Visual Studio s'ouvre mais n'ouvre pas le projet .sln et en retour console j'ai :
Code:
1 2 3 4 5 6 7
|
D:/Solutions/Core/Core.sln: line 1: $'\357\273\277': command not found
D:/Solutions/Core/Core.sln: line 2: Microsoft: command not found
D:/Solutions/Core/Core.sln: line 4: VisualStudioVersion: command not found
D:/Solutions/Core/Core.sln: line 5: MinimumVisualStudioVersion: command not found
D:/Solutions/Core/Core.sln: line 6: syntax error near unexpected token `"{2150E333-8FDC-42A3-9474-1A3956D46DE8}"'
D:/Solutions/Core/Core.sln: line 6: `Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Seedwork", "Seedwork", "{EBE07DC1-8E03-4235-995F-57AC26337525}"' |
Si quelqu'un pouvait m'aider !
Merci a vous !