Ich versuche, eine MVC4-Webanwendung für Azure bereitzustellen. Es hat eine Abhängigkeit von einem F # -Projekt (Häuser die Steuerungen für den MVC-app), die w/Fehler bauen immer wieder versagt:Unterstützt Azure das Erstellen von F # 3.0/VS2012-Projekten?
C:\DWASFiles\Sites\jbf\VirtualDirectory0\site\repository\JBF.Web\JBF.Web.Controllers\JBF.Web.FSharp.fsproj : error MSB4057: The target "Build" does not exist in the project.
Das Projekt (en) sind in VS2012, die das Upgrade von F # Projekten zwingt. Ich frage mich, ob dies eine Abhängigkeit ist, dass Azure noch nicht mit all dem 4,5 Refs in den Import-Anweisungen aus dem fsproj gefunden unterstützt:
<Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.5\Microsoft.FSharp.Targets" Condition="Exists('$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.5\Microsoft.FSharp.Targets')" />
<Import Project="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets" Condition="Exists('$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets')" />
<Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" Condition="(!Exists('$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets')) And (Exists('$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets'))" />
<Import Project="$(MSBuildExtensionsPath32)\FSharp\1.0\Microsoft.FSharp.Targets" Condition="(!Exists('$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets')) And (!Exists('$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets')) And (Exists('$(MSBuildExtensionsPath32)\FSharp\1.0\Microsoft.FSharp.Targets'))" />
Für die Aufzeichnung, wenn ich die DLL vorge erstellen und bereitstellen das (mit einem Verweis auf die DLL statt des Projekts) funktioniert es gut. Das Fsproj hat keine tatsächliche Abhängigkeit von F # 3.0 (es ist ein F # 2.0-Projekt, das zu VS2012 migriert wird).
Es könnte etwas sein, dass du der erste bist, der es versucht :) Jede Chance, dass du ein Repo teilen könntest (z. B. über github), das das Problem demonstriert? Vielen Dank! –