J'essaye de configurer une définition de construction VSTS pour un projet Service Fabric et je ne peux pas obtenir la construction pour aller plus loin que l'étape 'Build'.VSTS Nuget Restore échoue avec une erreur d'assemblage non compatible
Actuellement, la structure du projet ressemble à ceci:
- Application
- Service Fabric Project 1 (Web API)
- Service Fabric Project 2 (Stateful Service)
- Application Project Folder
- Angular Project
Je suis juste en train de construire l'API Web Project Service Fabric. J'ai suivi this guide et a utilisé le modèle 'Azure service Fabric Application' et ma définition de construction ressemble à ceci:
Et l'erreur que je reçois est:
C: \ Program Files \ dotnet \ sdk \ 2.0.0 \ Sdks \ Microsoft.NET.Sdk \ build \ Microsoft.PackageDependencyResolution.targets (323,5): Erreur: Fichier d'actifs 'd: \ a \ 3 \ s \ NomApplication.Security.Gateway \ obj \ projet .assets.json 'introuvable. Exécutez une restauration de package NuGet pour générer ce fichier. C: \ Program Files \ dotnet \ sdk \ 2.0.0 \ Sdks \ Microsoft.NET.Sdk \ build \ Microsoft.PackageDependencyResolution.targets (323,5): erreur: Fichier d'actifs 'd: \ a \ 3 \ s \ ApplicationName.Security.Gateway \ obj \ project.assets.json 'introuvable. Exécutez une restauration de package NuGet pour générer ce fichier. [d: \ a \ 3 \ s \ NomApplication.Security.Gateway \ NomApplication.Security.Gateway.csproj] Génération continue car "ContinueOnError" sur la tâche "ReportAssetsLogMessages" est défini sur "ErrorAndContinue". C: \ Program Files \ dotnet \ sdk \ 2.0.0 \ Sdks \ Microsoft.NET.Sdk \ build \ Microsoft.PackageDependencyResolution.targets (165,5): Erreur: Fichier de ressources 'd: \ a \ 3 \ s \ ApplicationName.Security.Gateway \ obj \ project.assets.json 'introuvable. Exécutez une restauration de package NuGet pour générer ce fichier.
J'ai téléchargé les journaux et trouve également cette erreur au cours du processus de restauration Nuget:
2017-09-22T15: 35: 53.8340398Z d: \ a \ 3 \ s \ Application.Application \ Application.Application.sfproj (57,5): erreur: impossible de trouver le '.. \ packages \ Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.1 \ build \ Microsoft.VisualStudio.Azure.Fabric.Application.props ' fichier. Restaurez le paquet Nuget 'Microsoft.VisualStudio.Azure.Fabric.MSBuild' 2017-09-22T15: 35: 53.8340398Z d: \ a \ 3 \ s \ Application.Application \ Application.Application.sfproj: avertissement NU1503: saut restaurer pour le projet 'd: \ a \ 3 \ s \ Application.Application \ Application.Application.sfproj'. Le fichier de projet peut être non valide ou des cibles manquantes requises pour la restauration. [d: \ a_temp \ NuGetScratch \ temmko3j.dto.nugetinputs.targets] 2017-09-22T15: 35: 53.8340398Z d: \ a_temp \ NuGetScratch \ tspr1daf.vdl.nugetrestore.targets (131,5): erreur MSB4018: La tâche "WriteRestoreGraphTask" a échoué de manière inattendue. [d: \ a_temp \ NuGetScratch \ temmko3j.dto.nugetinputs.targets] 2017-09-22T15: 35: 53.8340398Z d: \ a_temp \ NuGetScratch \ tspr1daf.vdl.nugetrestore.targets (131,5): erreur MSB4018: NuGet.Commands.RestoreCommandException: PackageTargetFallback et AssetTargetFallback ne peuvent pas être utilisés ensemble. Supprimez les références PackageTargetFallback (déconseillées) de l'environnement de projet. [d: \ a_temp \ NuGetScratch \ temmko3j.dto.nugetinputs.targets] 2017-09-22T15: 35: 53.8340398Z d: \ a_temp \ NuGetScratch \ tspr1daf.vdl.nugetrestore.targets (131,5): erreur MSB4018: à NuGet.Commands.AssetTargetFallbackUtility.EnsureValidFallback (IEnumerable
1 packageTargetFallback, IEnumerable
1 assetTargetFallback, String filePath) [d: \ a_temp \ NuGetScratch \ temmko3j.dto.nugetinputs.targets] 2017-09-22T15: 35: 53.8340398Z d: \ a_temp \ NuGetScratch \ tspr1daf.vdl.nugetrestore.targets (131,5): erreur MSB4018: à NuGet.Commands.MSBuildRestoreUtility.AddPackageTargetFallbacks (spécification PackageSpec, IEnumerable1 items) [d:\a\_temp\NuGetScratch\temmko3j.dto.nugetinputs.targets] 2017-09-22T15:35:53.8340398Z d:\a\_temp\NuGetScratch\tspr1daf.vdl.nugetrestore.targets(131,5): error MSB4018: at NuGet.Commands.MSBuildRestoreUtility.GetPackageSpec(IEnumerable
1 éléments) [d: \ a_temp \ NuGetScratch \ temmko3j.dto.nugetinputs.targets] 2017-09-22T15: 35: 53.8340398Z d: \ a_temp \ NuGetScratch \ tspr1daf.vdl.nugetrestore.cibles (131,5): erreur MSB4018: à System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() [d:\a\_temp\NuGetScratch\temmko3j.dto.nugetinputs.targets] 2017-09-22T15:35:53.8340398Z d:\a\_temp\NuGetScratch\tspr1daf.vdl.nugetrestore.targets(131,5): error MSB4018: at System.Linq.Enumerable.WhereEnumerableIterator
1.MoveNext() [d: \ a_temp \ NuGetScratch \ temmko3j.dto.nugetinputs.targets] 2017-09-22T15: 35: 53.8340398 Z d: \ a_temp \ NuGetScratch \ tspr1daf.vdl.nugetrestore.targets (131,5): erreur MSB4018: à NuGet.Commands.MSBuildRestoreUtility.GetDependencySpec (éléments IEnumerable`1) [d: \ a_temp \ NuGetScratch \ temmko3j.dto. nugetinputs.targets] 2017-09-22T15: 35: 53.8340398Z d: \ a_temp \ NuGetScratch \ tspr1daf.vdl.nugetrestore.targets (131,5): erreur MSB4018: à NuGet.Build.Tasks.WriteRestoreGraphTask.Execute() [d: \ a_temp \ NuGetScratch \ temmko3j.dto.nugetinputs.targets] 2017-09-22T15: 35: 53.8340398Z d: \ a_temp \ NuGetScratch \ tspr1daf.vdl.nugetrestore.targets (131,5): erreur MSB4018: à Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [d: \ a_temp \ NuGetScratch \ temmko3j.dto.nug etinputs.targets] 2017-09-22T15: 35: 53.8340398Z d: \ a_temp \ NuGetScratch \ tspr1daf.vdl.nugetrestore.targets (131,5): erreur MSB4018: à Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() [d: \ a_temp \ NuGetScratch \ temmko3j.dto.nugetinputs.targets] 2017-09-22T15: 35: 53.8340398Z 2017-09-22T15: 35: 53.8750823Z NuGet.CommandLine.ExitCodeException: Exception de type ' NuGet.CommandLine.ExitCodeException 'a été levé. 2017-09-22T15: 35: 53.8750823Z à NuGet.CommandLine.MsBuildUtility.d__6.MoveNext() 2017-09-22T15: 35: 53.8750823Z --- Fin de la trace de la pile de l'emplacement précédent où l'exception a été levée - - 2017-09-22T15: 35: 53.8750823Z à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-09-22T15: 35: 53.8750823Z à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (tâche tâche) 2017-09-22T15: 35: 53.8750823Z at NuGet.CommandLine.RestoreCommand.d__48.MoveNext() 2017-09-22T15: 35: 53.8750823Z --- Fin de trace de la pile de l'emplacement précédent où l'exception a été levée --- 2017-09-22T15: 35: 53.8750823Z à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-09-22T15: 35: 53.8762943Z à System.Runtime.Compi lerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (tâche la tâche) 2017-09-22T15: 35: 53.8762943Z à NuGet.CommandLine.RestoreCommand.d__43.MoveNext() 2017-09-22T15: 35: 53.8770357Z AVERTISSEMENT: Erreur de lecture msbuild informations sur le projet , assurez-vous que votre solution d'entrée ou votre fichier de projet est valide. Les projets NETCore et UAP seront ignorés, seuls les fichiers packages.config seront restaurés. 2017-09-22T15: 35: 54.0700174Z Restauration du package NuGet Microsoft.ServiceFabric.5.7.198.
Toutes les versions fonctionnent sans problème sur nos machines locales sous les versions Release et Debug.
Toute aide serait grandement appréciée.
journaux de construction peuvent être téléchargés here.
Pouvez-vous afficher l'ensemble du journal de construction ici? Ou pouvez-vous partager votre projet en un seul trajet? –
@ Marina-MSFT Je vais partager le journal de construction une fois de retour au travail demain. Merci pour l'aide. –
Utilisez-vous l'hôte vs2017? – Mardoxx