Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Design-time intellisense creates a Resource.designer.cs file that is stored under the project `obj\Debug\designtime` directory. When constructing the list of Compile file for intellisense, that file is used instead of the other Resource.designer.cs file that is in the project and is generated fully by AAPT.
Issue: when you build the project normally, the design-time Resource.designer.cs file gets deleted by MSBuild IncrementalClean target and because intellisense doesn't know about the full Resource.designer.cs file intellisense from then on is completely borked. Because there is no way to know when a design-time build is run to potentially re-create the file I have no idea how to un-bork this.
I'll take a look and see if we can get the file added to the FileWrites item group so it does not get deleted.
Work in Progress PR https://github.com/xamarin/xamarin-android/pull/1052
Created attachment 25914 [details]
Logs for Bug60880
This issue is getting Reproduced whenever we try to Rebuild the solution. Rebuilding the solution is deleting the AndroidDesignTime folder
1-Create Single View android application
2-Build the solution
3-Open Project in Solution explorer and Check AndroidDesignTime Folder contains "Resource.Designer.cs" (App\obj\Debug\designtime)
4-Now Rebuild the solution and Observe the intellisense error pad
- After rebuilding the solution i am still getting "[Failure] Could not find file 'C:\Users\User\source\repos\App39\App39\obj\Debug\designtime\Resource.Designer.cs'.
For this bug verification i have taken the d15-5 Preview 5 build and Xamarin.Android Version 22.214.171.124 (5d942bd12)
Microsoft Visual Studio Enterprise 2017
Version 15.5.0 [27129.1.d15rel]
Microsoft .NET Framework
Xamarin 126.96.36.1992 (4a1f0ea)
Xamarin Designer 4.8.182 (76aa1723e)
Xamarin.Android SDK 188.8.131.52 (HEAD/5d942bd12)
Xamarin.iOS and Xamarin.Mac SDK 184.108.40.206 (c4240f3)
Full build info-
Logs are attached
Marking this defect as Reopened
There is an additional fix in Xamarin-android/master/2b4039a8 that probably should be cherry-picked to d15-5
my guess is rebuilding should be deleting the file... I am 100% sure if we left the design time folder in place after a Clean we would get a bug raised on it.
After chatting with the VS team. It seems that the design time build outputs should not be cleaned up by the clean target. They are usually left in the intermediate directory.
So I guess we should remove the code which cleans that stuff up..
Moving this milestone to 15.6 given 15.5.1 / 15.5.2 have already shipped and I'm unsure of the status of this bug(Feel free to change status and target milestone). There will be plenty of opportunity to get this in a 15.6 preview if it's not already fixed in master / d15.5.
Build Info: https://gist.github.com/GLjackyvaswani/df763b36faa8ed06e494b44911f58778
This issue is still getting Reproduced while Rebuild the solution.
- After rebuilding the solution i am still getting "[Failure] Could not find file 'C:\Users\User\source\repos\App39\App39\obj\Debug\designtime\Resource.Designer.cs'."
I need to full diagnostic log of the Rebuild please. We need to find out what target is removing the file, since we removed the code which does it on a `Clean`.