2017-07-15 2 views
1

Je suis vraiment nouveau à Nopcommerce. J'ai un plugin existant [Un widget curseur pour la page d'accueil]. Je tentais d'ajouter le fichier Nop.Plugin.Widget.PromoSlider.csproj dans le répertoire Plugins de Visual Studio 17, mais obtenu l'erreur suivante:Comment ajouter un widget existant à Nopcommerce?

The imported project "S(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" was not found. Also, tried to find "S(VSToolsPath)\WebApplications\Mlicrosoft.WebApplication.targets" in the fallback search path(s) for $(VSToolsPath) - "C:\Program Files(x86)\MSBuild\Microsoft\VisualStudio\v15.0" These search paths are defined in "C:\Users***\AppData\Local\ Microsoft\VisualStudio\15.0_f96fcd52\devenv.exe.config". Confirm that the path in the declaration is correct, and that the file exists on disk in one of the search paths. C:\Users****\Deskctop\ Nop.Plugin.Widget.PromoSlider\Nop.Plugin.Widget.PromoSlider.csproj

Quelqu'un peut-il me aider à corriger cette erreur?

+0

'Nop.Plugin.Widget.PromoSlider.csproj' est -il un plugin sortant? copiez-vous de solutnion différente? – MJK

+0

Oui, il est de différente solution nopcommerce –

Répondre

0

Je suppose que vous essayez d'ajouter un projet Visual Studio 2015 dans Visual Studio 2017. Une enquête est en cours sur ce problème. Mais il existe également une solution de contournement. Veuillez vérifier here pour plus de détails.

Un travail est autour de changer la ligne suivante (édition Nop.Plugin.Widget.PromoSlider.csproj)

<Import Project="$(VSToolsPath)\Web\Microsoft.Web.Publishing.targets" Condition="'$(VSToolsPath)' != ''" /> 

à

<Import Project="/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild/Microsoft/VisualStudio/v14.0/WebApplications/Microsoft.WebApplication.targets" /> 

Donnez un essai