Bug 54302 - [Smoke][VS-2017 Enterprise] Unable to load the pre-existing Forms Fsharp template.
Summary: [Smoke][VS-2017 Enterprise] Unable to load the pre-existing Forms Fsharp temp...
Status: RESOLVED DUPLICATE of bug 57116
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Xamarin.Forms ()
Version: 4.4.0 (15.1)
Hardware: PC Windows
: Normal normal
Target Milestone: 15.4
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-03-30 15:45 UTC by Prasad Raghorte
Modified: 2017-06-08 20:21 UTC (History)
11 users (show)

Tags: Smoke
Is this bug a regression?: Yes
Last known good build:


Attachments
Screenshot (66.66 KB, image/png)
2017-03-30 15:45 UTC, Prasad Raghorte
Details
Please find the attached logs. (6.31 KB, application/x-zip-compressed)
2017-03-30 15:46 UTC, Prasad Raghorte
Details
Find attached pregenerated Fsharp sample project. (28.58 KB, application/x-zip-compressed)
2017-03-30 15:47 UTC, Prasad Raghorte
Details
Logs_5thMay (1.87 KB, application/x-zip-compressed)
2017-05-05 16:44 UTC, Jacky Waswani
Details


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 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:
Status:
RESOLVED DUPLICATE of bug 57116

Description Prasad Raghorte 2017-03-30 15:45:31 UTC
Created attachment 21075 [details]
Screenshot

Precondition:
You have following fsharp sample ready with you.
QualityAssurance/Manual/FormsFSharpXaml/FormsFsharpXaml.sln

Steps to reproduce :
1. Open the FormsFsharpXaml.sln in VS
2. Popup will appear to guide to change the target framework. Click Ok.
3. After project opens in VS> Observe the android and ios project in solution explorer.

Expected Result: Project should get loaded.

Actual result: Project is not getting loaded. (load failed.)

Please find attached screenshot, screencast and logs.

Screencast: https://www.screencast.com/t/2d035cPH

Environment:
OS: Windows
Microsoft Visual Studio Enterprise 2017 d15rel
Version 15.1 (26328.55) d15rel d15rel PR
VisualStudio.15.int.d15rel/15.1.0+26328.55.d15rel
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

Architecture Diagrams and Analysis Tools   00369-60000-00001-AA420
Microsoft Architecture Diagrams and Analysis Tools

Visual Basic 2017   00369-60000-00001-AA420
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA420
Microsoft Visual C# 2017

Visual C++ 2017   00369-60000-00001-AA420
Microsoft Visual C++ 2017

Visual F# 4.1   00369-60000-00001-AA420
Microsoft Visual F# 4.1

ASP.NET and Web Tools 2017   15.0.30320.0
ASP.NET and Web Tools 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50303.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.30209.0
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.2.5000.0
Microsoft Azure Data Lake Tools for Visual Studio

Common Azure Tools   1.9
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Fabric.DiagnosticEvents   1.0
Fabric Diagnostic Events

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JavaScript UWP Project System   2.0
JavaScript UWP Project System

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure Hive Query Language Service   2.2.5000.0
Language service for Hive query

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50131.1

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

Node.js Tools   1.3.50316.00
Adds support for developing and debugging Node.js apps in Visual Studio

NuGet Package Manager   4.1.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2017 ENU   15.0.26112
Microsoft Office Developer Tools for Visual Studio 2017 ENU

Redgate ReadyRoll   1.13.22.3147
Extend DevOps processes to your SQL Server databases and safely automate database deployments.
    
Visit https://www.red-gate.com/readyroll for more information.

Copyright (C) 2011 Red Gate Software Ltd. All rights reserved.
  
This software contains components from Component Owl.
SQL Server is a registered trademark of Microsoft Corporation. 
Visual Studio is a registered trademark of Microsoft Corporation. 

ReadyRoll contains code from the following open source software:

NuGet https://www.nuget.org/
SQL LocalDB Wrapper https://github.com/martincostello/sqllocaldb
Autofac https://autofac.org/
Json.NET https://json.net/
MahApps.Metro http://mahapps.com/
SemVer https://github.com/maxhauser/semver
Menees Diff Controls http://www.menees.com/
Log4Net http://logging.apache.org/log4net/
Extended WPF Toolkit https://wpftoolkit.codeplex.com/
Code InfoBox VSX http://www.codeproject.com/Articles/55196/Code-InfoBox-Visual-Studio-Extension-VSX
OctoPack https://github.com/OctopusDeploy/OctoPack
SQLite https://sqlite.org/

This product contains icons from http://www.visualpharm.com distributed under a free backlink license.

For license details or other notices relating to the above software, please see NOTICE.TXT and EULA.rtf in the ReadyRoll application folder.
    

Redgate SQL Prompt   7.4.1.767
Write, format, and refactor SQL effortlessly

Redgate SQL Search   2.3.10.1131
Search functionality for SQL Server databases, from within Visual Studio

SQL Server Data Tools   15.1.61702.140
Microsoft SQL Server Data Tools

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript   2.1.5.0
TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   15.0.26228.00
Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Linux Development   1.0.6
Visual C++ for Linux Development

Visual Studio Tools for Apache Cordova   15.113.6201.1
Visual Studio Tools for Apache Cordova

Visual Studio tools for CMake   1.0
Visual Studio tools for CMake

Visual Studio Tools for Universal Windows Apps   15.0.26323.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   4.4.0.33 (80d9a02)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK   7.2.0.7 (b16fb82)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   10.8.0.174 (7656cc6)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 1 Prasad Raghorte 2017-03-30 15:46:27 UTC
Created attachment 21076 [details]
Please find the attached logs.
Comment 2 Prasad Raghorte 2017-03-30 15:47:42 UTC
Created attachment 21077 [details]
Find attached pregenerated Fsharp sample project.
Comment 4 Jacky Waswani 2017-05-05 16:44:48 UTC
Created attachment 21983 [details]
Logs_5thMay

Hi Paul,

Issue is still reproducible with latest PR build.
Xamarin   4.5.0.443 (c871575)
Xamarin.Android SDK   7.3.0.13 (448f54f)
Xamarin.iOS and Xamarin.Mac SDK   10.10.0.30 (30b6e87)
Comment 5 Pratik Lad 2017-05-18 10:11:21 UTC
Hello,
This issue is reproducible,verified on build :-

Microsoft Visual Studio Enterprise 2017 Preview
Version 15.3 (26510.0-Preview) Preview
VisualStudio.15.Preview/15.3.0-Preview+26510.0
Microsoft .NET Framework
Version 4.6.01586

Xamarin   4.6.0.600 (8a9c886)
Xamarin.Android SDK   7.3.99.38 (21d46f4)
Xamarin.iOS and Xamarin.Mac SDK   10.11.0.144 (c3cecd5)

Build Information :-
https://gist.github.com/p-lad/e855cfc907f5b43017f95588dc6909f2

Screen cast link :-
http://www.screencast.com/t/ptLx36GUt1pv

Attached Logs for the same.

Thanks.
Comment 6 Neha Kharbade 2017-05-22 11:02:25 UTC
This issue is also observed on the build

Microsoft Visual Studio Enterprise 2017 d15svc
Version 15.2 (26430.55) d15svc d15svc PR

VisualStudio.15.int.d15svc/15.2.0+26430.55.d15svc

Microsoft .NET Framework
Version 4.6.01055

Xamarin   4.5.0.475 (70f1268)
Xamarin.Android SDK   7.3.1.1 (bc24645)
Xamarin.iOS and Xamarin.Mac SDK   10.10.0.35 (4cffddf)
Comment 7 Juan Marcelo Tondato 2017-05-24 18:06:38 UTC
Hi @Prasad, the issue is related to an invalid value of `TargetFrameworkVersion` for android and iOS projects (both has <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> in fsproj).

To fix that sample solution:
   - Remove the property on iOS project
   - Assign a valid value on Android project.
     You could see valid android target frameworks on your VS installation path `{your VS version path in C:\Program Files (x86)\Microsoft Visual Studio\}\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid`.

Please let me see if it solve your issue.
Comment 8 Mohanish Patil 2017-06-08 15:00:31 UTC
The issue is still reproducible even after applying the changes as suggested by Juan.
Please ref to bellow screencast link
https://www.screencast.com/t/BSiNjLjhq

As per my discussion with Juan

1. the original bug has a problem in the sample, the issue is an invalid target frameworks that is not installed `v4.0` (edited)

2. after set a valid installed target framework, the issue happens on some installations

The issue maybe can related to the way that f# search the references assemblies. There is already similar ticket open for the above problem

https://bugzilla.xamarin.com/show_bug.cgi?id=57116

This ticket can be marked duplicate of Bug 57116
Comment 9 Jose Gallardo 2017-06-08 20:21:34 UTC
Resolving as duplicate of 57116.

*** This bug has been marked as a duplicate of bug 57116 ***