Does Azure support the F # 3.0 / VS2012 project?

I am trying to deploy a MVC4 web application for Azure. It has a dependency on the F # project (contains controllers for the MVC application), which continues to not create w / error:

C: \ DWASFiles \ Sites \ jbf \ VirtualDirectory0 \ site \ repository \ JBF.Web \ JBF.Web.Controllers \ JBF.Web.FSharp.fsproj: error MSB4057: target "Build" does not exist in the project,

The project exists in VS2012, which forces modernization of F # projects. I am wondering if this is a dependency that Azure does not yet support with all 4.5 refs points contained in import statements from fsproj:

<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'))" /> 

For the record, if I pre-create the DLL and deploy it (with a link to the DLL instead of the project), it works fine. In addition, fsproj has no actual dependency on F # 3.0 (the F # 2.0 project has been ported to VS2012).

+6
source share
1 answer

Update: this issue is tracked by https://github.com/projectkudu/kudu/issues/137

I just repeated it. Here is an example repo: https://github.com/KuduApps/WebAppWithFSharpLibrary .

This is definitely a mistake. Could you open a question about https://github.com/projectkudu/kudu to track this? It is best to keep track of the problem there, like StackOverflow questions. Thanks!

+3
source

Source: https://habr.com/ru/post/925186/


All Articles