2017-07-15 1 views
1

Ich bin wirklich neu in Nopcommerce. Ich habe ein bestehendes Plugin [Ein Slider-Widget für die Startseite]. Ich habe versucht, die Nop.Plugin.Widget.PromoSlider.csproj Datei in dem Plugin-Verzeichnis von Visual Studio 17, aber bekam die folgende Fehlermeldung hinzuzufügen:Wie fügt man ein bestehendes Widget zu Nopcommerce hinzu?

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

Kann mir jemand helfen, diesen Fehler zu beheben?

+0

'Nop.Plugin.Widget.PromoSlider.csproj' ist Ist es ein aufregendes Plugin? kopierst du aus verschiedenen lösungen? – MJK

+0

Ja, es ist von verschiedenen Nopcommerce-Lösung –

Antwort

0

Ich schätze, Sie versuchen, ein Visual Studio 2015 Projekt in Visual Studio 2017 hinzuzufügen. Es gibt eine laufende Untersuchung zu diesem Thema. Aber es gibt auch einen Workaround dafür. Bitte überprüfen Sie here für weitere Details.

Eine Arbeit um ist die folgende Zeile zu wechseln (Bearbeitung Nop.Plugin.Widget.PromoSlider.csproj)

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

zu

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

Probieren Sie es

Verwandte Themen