Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Support for FSharp 4.3.1 #1036

Closed
JohnDoeKyrgyz opened this issue Feb 23, 2014 · 5 comments
Closed

Support for FSharp 4.3.1 #1036

JohnDoeKyrgyz opened this issue Feb 23, 2014 · 5 comments
Assignees
Milestone

Comments

@JohnDoeKyrgyz
Copy link

I am trying to git deploy an ASP.NET MVC website where all the controllers and business logic are written in F#. I am using the latest version of F# (4.3.1) unfortunately it does not look like this version is supported. Here is the deploy log:

Command: D:\home\site\deployments\tools\deploy.cmd
Handling .NET Web Application deployment.
All packages listed in packages.config are already installed.
Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.
Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
D:\home\site\repository\AzureTest.WebApp\Configuration.fs(5,17): error FS0039: The namespace 'Http' is not defined [D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
D:\home\site\repository\AzureTest.WebApp\Configuration.fs(17,14): error FS0039: The type 'RouteParameter' is not defined [D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
D:\home\site\repository\AzureTest.WebApp\Configuration.fs(17,14): error FS0039: The type 'RouteParameter' is not defined [D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
Failed exitCode=1, command="D:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "D:\home\site\repository\AzureTest\AzureTest.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="C:\DWASFiles\Sites\johnatest\Temp\b5e86939-cc6f-4fda-9996-e69ab6f3fc0c";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release /p:SolutionDir="D:\home\site\repository\.\\"
An error has occurred during web site deployment.
Handling .NET Web Application deployment.
All packages listed in packages.config are already installed.
Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.
Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
D:\home\site\repository\AzureTest.WebApp\Configuration.fs(5,17): error FS0039: The namespace 'Http' is not defined [D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
D:\home\site\repository\AzureTest.WebApp\Configuration.fs(17,14): error FS0039: The type 'RouteParameter' is not defined [D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
D:\home\site\repository\AzureTest.WebApp\Configuration.fs(17,14): error FS0039: The type 'RouteParameter' is not defined [D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
Failed exitCode=1, command="D:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "D:\home\site\repository\AzureTest\AzureTest.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="C:\DWASFiles\Sites\johnatest\Temp\b5e86939-cc6f-4fda-9996-e69ab6f3fc0c";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release /p:SolutionDir="D:\home\site\repository\.\\"
An error has occurred during web site deployment.
d:\Program Files (x86)\SiteExtensions\Kudu\1.25.30205.648\bin\scripts\starter.cmd D:\home\site\deployments\tools\deploy.cmd
CompleteCancel

I can successfully deploy this site using the publish feature from visual studio, but I have to add a reference to FSharp.Core to the web project, and set Copy Local to true.

@davidebbo
Copy link
Member

Would you be able to share a sample repo that demonstrates the issue (e.g. on GitHub)?

For reference, this is the test repo we use, which works in Azure Web Sites: https://github.com/KuduApps/WebAppWithFSharpLibrary.

If you look in D:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.1.0 on the Azure Web Sites machine (using Kudu Console), it looks like this version is present, so I'm not sure why it's not working.

@JohnDoeKyrgyz
Copy link
Author

Hello David,

Thanks for looking into this. I have a sample repo at:

https://github.com/JohnDoeKyrgyz/AzureTest

Thanks,
John Atwood

@davidebbo davidebbo added this to the S27 milestone Feb 25, 2014
@davidebbo
Copy link
Member

Yes, it does look like an issue on our side. I wonder if you could workaround by using a hint path going to where the assembly is (path above).

@JohnDoeKyrgyz
Copy link
Author

Hello David,

Tried to set the HintPath, and I am still getting deploy errors

Command: D:\home\site\deployments\tools\deploy.cmd

Handling .NET Web Application deployment.

All packages listed in packages.config are already installed.

Project file contains ToolsVersion="12.0". This toolset may be unknown
or missing, in which case you may be able to resolve this by
installing the appropriate version of MSBuild, or the build may have
been forced to a particular ToolsVersion for policy reasons. Treating
the project as if it had ToolsVersion="4.0". For more information,
please see http://go.microsoft.com/fwlink/?LinkId=291333.

Project file contains ToolsVersion="12.0". This toolset may be unknown
or missing, in which case you may be able to resolve this by
installing the appropriate version of MSBuild, or the build may have
been forced to a particular ToolsVersion for policy reasons. Treating
the project as if it had ToolsVersion="4.0". For more information,
please see http://go.microsoft.com/fwlink/?LinkId=291333.

D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5):
warning MSB3245: Could not resolve this reference. Could not locate
the assembly "FSharp.Core, Version=4.3.1.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a". Check to make sure the assembly
exists on disk. If this reference is required by your code, you may
get compilation errors.
[D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]

D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5):
warning MSB3245: Could not resolve this reference. Could not locate
the assembly "System.Web.Http, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35". Check to make sure the assembly
exists on disk. If this reference is required by your code, you may
get compilation errors.
[D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]

D:\home\site\repository\AzureTest.WebApp\Configuration.fs(5,17): error
FS0039: The namespace 'Http' is not defined
[D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]

D:\home\site\repository\AzureTest.WebApp\Configuration.fs(17,14):
error FS0039: The type 'RouteParameter' is not defined
[D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]

D:\home\site\repository\AzureTest.WebApp\Configuration.fs(17,14):
error FS0039: The type 'RouteParameter' is not defined
[D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]

Failed exitCode=1,
command="D:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
"D:\home\site\repository\AzureTest\AzureTest.csproj" /nologo
/verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder
/p:_PackageTempDir="C:\DWASFiles\Sites\johnatest\Temp\6f68ae06-e348-4314-8530-8cbf3089e11a";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release
/p:SolutionDir="D:\home\site\repository."

An error has occurred during web site deployment.

Handling .NET Web Application deployment.
All packages listed in packages.config are already installed.
Project file contains ToolsVersion="12.0". This toolset may be unknown
or missing, in which case you may be able to resolve this by
installing the appropriate version of MSBuild, or the build may have
been forced to a particular ToolsVersion for policy reasons. Treating
the project as if it had ToolsVersion="4.0". For more information,
please see http://go.microsoft.com/fwlink/?LinkId=291333.
Project file contains ToolsVersion="12.0". This toolset may be unknown
or missing, in which case you may be able to resolve this by
installing the appropriate version of MSBuild, or the build may have
been forced to a particular ToolsVersion for policy reasons. Treating
the project as if it had ToolsVersion="4.0". For more information,
please see http://go.microsoft.com/fwlink/?LinkId=291333.
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5):
warning MSB3245: Could not resolve this reference. Could not locate
the assembly "FSharp.Core, Version=4.3.1.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a". Check to make sure the assembly
exists on disk. If this reference is required by your code, you may
get compilation errors.
[D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5):
warning MSB3245: Could not resolve this reference. Could not locate
the assembly "System.Web.Http, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35". Check to make sure the assembly
exists on disk. If this reference is required by your code, you may
get compilation errors.
[D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
D:\home\site\repository\AzureTest.WebApp\Configuration.fs(5,17): error
FS0039: The namespace 'Http' is not defined
[D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
D:\home\site\repository\AzureTest.WebApp\Configuration.fs(17,14):
error FS0039: The type 'RouteParameter' is not defined
[D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
D:\home\site\repository\AzureTest.WebApp\Configuration.fs(17,14):
error FS0039: The type 'RouteParameter' is not defined
[D:\home\site\repository\AzureTest.WebApp\AzureTest.WebApp.fsproj]
Failed exitCode=1,
command="D:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
"D:\home\site\repository\AzureTest\AzureTest.csproj" /nologo
/verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder
/p:_PackageTempDir="C:\DWASFiles\Sites\johnatest\Temp\6f68ae06-e348-4314-8530-8cbf3089e11a";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release
/p:SolutionDir="D:\home\site\repository."
An error has occurred during web site deployment.
d:\Program Files
(x86)\SiteExtensions\Kudu\1.25.30205.648\bin\scripts\starter.cmd
D:\home\site\deployments\tools\deploy.cmd

https://manage.windowsazure.com/@johnacu.onmicrosoft.com#

On Tue, Feb 25, 2014 at 11:49 AM, David Ebbo notifications@git.luolix.topwrote:

Yes, it does look like an issue on our side. I wonder if you could
workaround by using a hint path going to where the assembly is (path above).

Reply to this email directly or view it on GitHubhttps://github.com//issues/1036#issuecomment-36043119
.

@mwtian-zz mwtian-zz self-assigned this Feb 28, 2014
@davidebbo davidebbo modified the milestones: S26, S27 Mar 10, 2014
@mwtian-zz
Copy link
Contributor

F# 3.1 should work on Azure now. Feel free to reopen if there are more issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants