Skip to content

Resource related intellisense breaks after Rebuilding #1286

Closed

Description

@pjcollins

Moving report from https://bugzilla.xamarin.com/show_bug.cgi?id=60880 into Issues. It looks like the clean target is still deleting designtime\Resource.Designer.cs in d15-6.

Steps to Reproduce

  1. Create a new Single-View Android App
  2. Open MainActivity.cs, and notice that both Resource.Layout.Main and Resource.ID.myButton are available in Intellisense
  3. Select Build -> Clean Solution.
  4. Resource.* related Intellisense no longer works as expected

Expected Behavior

Resource related Intellisense will continue to work after cleaning, building, rebuilding, etc.

Actual Behavior

The following IntelliSense output is displayed, and Resource related Intellisense no longer works.

[Failure] Could not find file 'c:\users\peter\source\repos\App16\App16\obj\Debug\designtime\Resource.Designer.cs'.

Version Information

VS 15.6 Preview 4:
https://gist.github.com/pjcollins/b8be35efd9b9eb0fb7e1355e74396fd2

Log File

https://gist.github.com/pjcollins/ee151a4e90f0d8ac7ec9d28984e52be7#file-gistfile1-txt-L1197-L1205

VS bug #627937

Activity

  1. added this to the d15-6 milestone on Feb 8, 2018
  2. dellis1972 commented on Feb 8, 2018

    @dellis1972
    Contributor

    Hmm, Xamarin.Android.Windows.targets does not seem to be imported. Can you confirm it exists "somewhere" in the installation for windows?

  3. pjcollins commented on Feb 8, 2018

    @pjcollins
    MemberAuthor

    I do have that targets file at the following location:
    C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common\ImportAfter\Xamarin.Android.Windows.targets

  4. dellis1972 commented on Feb 9, 2018

    @dellis1972
    Contributor

    So weird. so why is that not being imported...

  5. dellis1972 commented on Feb 9, 2018

    @dellis1972
    Contributor

    ok that log is the Clean target being run.. So its that target which is removing our designer file. And because IncrementalClean is not run as part of a Clean our targets are not running which would preserve the file.

  6. added 2 commits that reference this issue on Feb 13, 2018
    0cec603
    cd279c2
  7. pjcollins commented on Feb 16, 2018

    @pjcollins
    MemberAuthor

    Verified fixed against ef7a59f

  8. added
    vs-syncFor internal use only; creates a VSTS "mirror" issue.
    on Feb 18, 2018
  9. Aguilex commented on Feb 18, 2018

    @Aguilex
    Contributor

    added vs-sync to create VSTS bug so it can be associated with PR https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/107122

  10. added a commit that references this issue on Feb 21, 2018
  11. tanmay-bhattacharjee commented on Jun 7, 2018

    @tanmay-bhattacharjee
  12. ghost locked as resolved and limited conversation to collaborators on Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.vs-syncFor internal use only; creates a VSTS "mirror" issue.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions