Bug 10044 - [MTVS] For the iOS application of the sample TipCal and Tasky build error is appearing.
Summary: [MTVS] For the iOS application of the sample TipCal and Tasky build error is ...
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 1.0.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: PJ
URL:
Depends on:
Blocks:
 
Reported: 2013-02-05 08:06 UTC by Jatin
Modified: 2016-05-10 17:04 UTC (History)
8 users (show)

Tags:
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 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:
VERIFIED FIXED

Description Jatin 2013-02-05 08:06:32 UTC
On Windows environment using VS 2012/2010, for the iOS application of the sample TipCal build error is appearing.

Steps to reproduce:
1. Open the iOS application of the sample TipCalc.
2. Observe that all the application of sample TipCalc opens (we have reported the separate issue, i.e. bug 10041)
3. Now remove all the application which are not related to the iOS application.
4. Now build the solution.
5. Observe that 1 build error appears.

Actual result: For the iOS application of the sample TipCal build error is appearing.

Expected result: The application should build and run successfully.

Supplement information:
Build Output: https://gist.github.com/atin360/ca2c18a0b63a7b111017
Mac Server logs: https://gist.github.com/atin360/503cec8a5f0bede13ab6
Screencast: http://www.screencast.com/t/zobFE3qcz

Environment information:
All Windows
MTVS 1.0.844
VS 2010/2012
MT 6.2.0.16

Note: This is also happening for the application 'Tasky'
Comment 1 Jatin 2013-02-05 08:11:35 UTC
Here is the workaround for the above issue:

When we build the projects in the solution one by one and then debug the application, it build and debug successfully.

Below is the screencast for the same:
http://www.screencast.com/t/n85BG7o9
Comment 2 Marek Habersack 2013-02-05 08:58:06 UTC
You must open the .sln file - it specifies each project dependencies and the build order. Building the entire solution will work fine.
Comment 3 Jatin 2013-02-05 10:18:30 UTC
As per the above comments:

1. I have open the .sln file
2. Then I have removed all the projects except: "TipCalc-UI-iOS" and then build "TipCalc.UI.iOS.Util".
3. Then I build the solution
4. It gives the same build error.

Then I build only the project: "TipCalc-UI-iOS", same build error appears.

Now, first I build only the project "TipCalc.UI.iOS.Util", it builds successfully, and then I build only the project: "TipCalc-UI-iOS", it also builds successfully. And we can able to debug the application successfully.

Below is the screencast for the same:
http://www.screencast.com/t/fx8vELdfyL

Hence, reopening this issue.
Comment 4 PJ 2013-02-05 10:22:33 UTC
Why are you removing any projects? Don't remove the projects (they will be dealt with by the project structure).

That being said, building TipCalc-UI-iOS should definitely force a build of TipCalc.UI.iOS.Util.

Can you confirm that if you open .sln, do nothing else and try to deploy the TipCalc-UI-iOS it builds? Or at least try to set the TipCalc-UI-iOS as the startup project and just build?

There should be no need to build the project separately.
Comment 5 Jatin 2013-02-06 11:57:39 UTC
We have tried as per the above comments

As we ahve opened the .sln, did nothing else, set the TipCalc-UI-iOS as the
startup project and just build and still the same error is appearing.

Below is the screncast for the same:
http://www.screencast.com/t/FUhfZjDRlH

Hence, reopening this issue.
Comment 6 Marek Habersack 2013-02-06 14:51:05 UTC
it's a bug in the sample solution file/configuration. If you right-click on the solution node, then click Configuration Manager you will see that the skipped projects are not selected for compilation in neither Debug nor Release configurations.
Comment 7 PJ 2013-02-06 15:04:03 UTC
The lucky winner of TipCalc author goes toooooooo

JonP :D


The lucky winner of Tasky author goes tooooooooo

BryanC :D
Comment 8 Jonathan Pryor 2013-02-06 15:23:32 UTC
@PJ: Any chance you could fix this?

AFAIK there's no way to set this within MonoDevelop, so the only way to fix this is to have a VS + MTVS environment so that VS can do it, and as you already have that environment setup...
Comment 9 Jatin 2013-02-12 06:39:20 UTC
An update to the above issue:

This issue is specific to Windows 7, as it is occurring only on the Windows 7 and on Windows 8 it is working fine.

With the help pf the suggestion in the above comments, on windows 8 it is working fine. However, on windows 7 it is still giving the same build error and even after following the instructions according to the above comments.

Here are the steps we followed

In case of Windows 7:

After opening the .sln file, it open all the projects in it, including the android ones. Then without removing any project, when we set the startup project as 'TipCalc-UI-iOS' then also when build the solution it gives the same build error

However, when we first build the indivisual project "TipCalc.UI.iOS.Util", it builds successfully and after this the entire solution also builds successfully and the user is able to debug the application successfully.

And in case of Windows 8:

After opening the .sln file, it open all the projects in it, including the android ones. Then without removing any project, when we set the startup project as 'TipCalc-UI-iOS' and the application build and debug successfully.
Comment 10 Vinicius Jarina 2013-03-26 15:03:14 UTC
The problem was TipCalc.iOS.Util. was not marked to build on iPhoneSImulator Config, this is not related with MTVS or MT or Windows Version. :)
Comment 11 narayanp 2013-05-15 05:59:13 UTC
As per comment#10 changing the status to Verified.