Bug 23439 - axaml files aren't treated as text file by Visual Studio
Summary: axaml files aren't treated as text file by Visual Studio
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: 3.6
Hardware: PC Windows
: Normal normal
Target Milestone: 4.0.1 (C6SR1)
Assignee: Rajneesh Kumar
URL:
Depends on:
Blocks:
 
Reported: 2014-09-28 12:45 UTC by Alexander Batishchev
Modified: 2015-12-07 06:07 UTC (History)
7 users (show)

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


Attachments
Find/Replace in Files are avaliable, Find/Replace in File aren't (43.19 KB, image/png)
2014-09-29 19:20 UTC, Alexander Batishchev
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 FIXED

Description Alexander Batishchev 2014-09-28 12:45:53 UTC
Find and Replace in Current File are unavailable when an axaml file (such as \Resources\layout\Main.axml) is opened in Visual Studio (2013.3 Ultimate).
Only Find and Replace in Files are available.
Xamarin version is 3.6.253.0 (d5d1e8ffa3e94204a5f1c498938b2c71c73cf50e)
Xamarin.Android version is 4.16.0.17 (2a7b68212b17c903160fbd8e0106babb299d1be3)
Comment 1 Rajneesh Kumar 2014-09-29 03:23:14 UTC
I have checked this issue and able to reproduce the reported behavior. To reproduce this issue I have followed the steps mention below:

1. Create an android application in VS
2. Open Main.axml via Resources\layout\Main.axml
3. Go to source view
4. Press Ctrl+F or Go to Edit->Find and Replace
5. Write something to find in text box below Find what
6. Choose from drop down list 'Current Block'
7. Observe that 'Find Previous','Find Next' and 'Find All' button are disabled
8. Click on 'Replace in Files' tab and write something for replacing
9. Choose from drop down list 'Current Block'
10.Observe that 'Find Next', 'Replace' and 'Replace All' button are disabled

Please let me know that are you facing the same experience? If no, could you please provide us steps to reproduce or what steps I am missing to reproduce this issue? That will be helpful to reproduce this issue at our end.

Screencast: http://www.screencast.com/t/c86yrVtqfdj

Environment Info:
 
Microsoft Visual Studio Professional 2012
Version 11.0.50727.1 RTMREL
Microsoft .NET Framework
Version 4.5.50938

Xamarin   3.6.253.0 (d5d1e8ffa3e94204a5f1c498938b2c71c73cf50e)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.16.0.17 (2a7b68212b17c903160fbd8e0106babb299d1be3)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.0.62.0 (8bd8158ae8c65c4fb50665dee520aa4ed86867ba)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 Alexander Batishchev 2014-09-29 19:20:20 UTC
Created attachment 8246 [details]
Find/Replace in Files are avaliable, Find/Replace in File aren't

When I press Ctrl+F the Find in Files dialog is opened (or Ctrl+H and Replace in Files accordingly).
Look in 'Current Block' is unavailable.
Available the following instead: Entire Solution, Entire Solution ( Including External Items ), Current Project ( Including External Items ).
Find/Replace in (current) File is unavailable.
Once I switch to a C# file (e.g. MainActivity.cs) everything works as usually.
Comment 3 Rajneesh Kumar 2014-09-30 05:08:46 UTC
As per comment 2 
I also getting the same behavior so changing its status to confirmed.
Comment 4 William 2015-08-07 10:14:48 UTC
Is this going to be addressed?
Comment 5 Stephen Wicklund 2015-12-07 06:07:26 UTC
This is still an issue in Visual Studio 2015.

Followed the same steps (and getting the same results) as Rajneesh Kumar above:
==========
1. Create an android application in VS
2. Open Main.axml via Resources\layout\Main.axml
3. Go to source view
4. Press Ctrl+F or Go to Edit->Find and Replace
5. Write something to find in text box below Find what
6. Choose from drop down list 'Current Block'
7. Observe that 'Find Previous','Find Next' and 'Find All' button are disabled
8. Click on 'Replace in Files' tab and write something for replacing
9. Choose from drop down list 'Current Block'
10. Observe that 'Find Next', 'Replace' and 'Replace All' button are disabled

Environment Info
==========
OS: Windows 7
Microsoft Visual Studio Community 2015: 14.0.23107.0 D14REL
Microsoft .NET Framework: 4.6.00081
Visual C# 2015
Xamarin: 4.0.0.1697 (deffc90)
Xamarin.Android: 6.0.0.34 (3efa14c)
Xamarin.iOS: 9.2.1.51 (3c0ec35)