Bug 14887 - Getting build error for F# templates.
Summary: Getting build error for F# templates.
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: F# Add-in ()
Version: 4.0.13
Hardware: All All
: Normal normal
Target Milestone: 5.0
Assignee: Dave Thomas
Depends on:
Reported: 2013-09-20 14:30 UTC by Saurabh
Modified: 2014-11-27 10:16 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Saurabh 2013-09-20 14:30:49 UTC

Comment 1 Saurabh 2013-09-20 14:48:21 UTC
Issue1: F# 'Web Application' is giving build error.

Step to reproduce:
1. Create F# Web Application through F#-> ASP.NET-> Web Application
2. Build the application

Actual result:
It gives build error "Error FS0039: The namespace or module 'button1' is not defined (FS0039)".

Expected result:
Application should build and run successfully.

Issue2: F# 'NUnit Library Project' is giving build error.

Step to reproduce:
1. Create F# 'NUnit Library Project' F#-> NUnit-> NUnit Library Project
2. Build the application

Actual result:
Application gives build errors.

Build error: https://gist.github.com/AkhileshKumar01/1bece0fa78653c2dc73d

Expected result:
Application should build and run successfully.

Note: Issue 1 exists on both Windows and Mac. 
Note2: Issue 2 exists only on Windows. 

Environment info:
=== Xamarin Studio ===

Version 4.0.13 (build 37)
Installation UUID: 1a4f208c-e41a-4374-916d-8e86d606fb42
	Microsoft .NET 4.0.30319.18051
	GTK+ 2.24.20 theme: MS-Windows
	GTK# (

=== Xamarin.Android ===

Version: 4.8.2 (Enterprise Edition)
Android SDK: C:\Users\Administrator\AppData\Local\Xamarin\MonoForAndroid\AndroidSDK
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
Java SDK: C:\Program Files\Java\jdk1.7.0_25
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)

=== Build Information ===

Release ID: 400130037
Build date: 2013-09-18 08:55:29Z
Xamarin addins: a6908312c9ad3e40f09ad731f444cad06ddf1546

=== Operating System ===

Windows 6.2.9200.0

Regression: Both issues are existing with Stable XS 4.0.12(Build 3).
Comment 3 PJ 2013-11-19 16:32:17 UTC
This bug was targeted for a past milestone, moving to the next active milestone.
Comment 4 Lluis Sanchez 2014-01-16 08:37:31 UTC
The Web Application template has been removed for F# because it is not supported as is.
The NUnit template seems to work fine in the fsharp branch.
Comment 5 Prashant manu 2014-03-14 00:43:54 UTC
We have checked NUit template and it builds successfully. We are not seeing 
F# Web application template on Windows.

However on MAC web application Template still present and when build gives error "Error FS0039: The namespace or module 'button1' is not defined (FS0039) (Test121)"

Screencast for this: http://screencast.com/t/X8GvsxJUA5y

Hence reopening this issue.

Environment Info:
Xamarin Studio
Version 4.2.4 (build 281)
Build Information
Git revision: e821d7c380e5021186257eeb713563d40718acd6
Xamarin addins: 6a826d371cd19272692cf5199503370f2ebbd588
Xam.Android 4.12.1
Comment 6 Dave Thomas 2014-03-19 11:47:28 UTC
This is now fixed i the fsharp branch, the project type has been removed from monodevelop and a new template added to the F# addin.
Comment 7 Atin 2014-11-27 10:16:05 UTC
I am trying to verify this issue with latest builds, but now we are not getting "web view" application under F#. 

We are getting only ASP.NET MVC 4 (Razor) application under F# for which we have already filed bug 22915.

As per comment 6 closing this issue.