0

I have an application created by Xamarin.Forms (PCL)

When I try to Clean the solution,

visual-studio goes to stops working, and I can't open any file or press anything to close it.

just by killing the visual-studio process 'End Process Tree for visual studio.exe'.

if I try to build or rebuild the solution is done without any problems.

if I try to clean Xamarin.Android or Web-Application solution is done.

the problem appears just in Xamarin.Forms solutions.

how I can solve this problem?

enter image description here

Anas Alweish
  • 2,818
  • 4
  • 30
  • 44
  • 1
    If you plan to use "Enable UI Debugging for XAML", make sure your current solution is not set to Lightweight Solution Load: In the options->Project and Solution, make sure that "Lightweight Solution Load" is disabled. Also make sure that in the solution properties, "Lightweight load" is not turn on . If you don't plan to use "Enable UI Debugging for XAML", uncheck Debug -> Options -> Enable UI debugging for XAML. – Lucas Zhang Oct 16 '18 at 05:36
  • What is your VS version? Did you test it in the latest version of VS(15.8.7)? – York Shen Oct 16 '18 at 05:36
  • @LucasZhang-MSFT I've tried your solution, but Visual Studio still stops working – Anas Alweish Oct 16 '18 at 07:32
  • @YorkShen-MSFT I'm using visual studio 2017 (15.8.0) and I didn't test it on the latest version. should I have the latest version to get rid of this problem? – Anas Alweish Oct 16 '18 at 07:39
  • @LucasZhang-MSFT I wonder!? What is the command which visual-studio carries out until he stops working? – Anas Alweish Oct 16 '18 at 07:42
  • 1
    Try to update your VS .This problem did appeared in some old version.But have solved in the newest version.If it still doesn't work,you can add a issue in VS Help -> Send feedback --> report a problem – Lucas Zhang Oct 16 '18 at 08:18
  • @LucasZhang-MSFT I will try it, thank you very much :) – Anas Alweish Oct 16 '18 at 08:21
  • Tell me the result whether it works or not – Lucas Zhang Oct 16 '18 at 08:22
  • @LucasZhang-MSFT Thank you for your help, your suggestion has successful after I tried to rebuild the solution – Anas Alweish Oct 29 '18 at 08:31

2 Answers2

0

After many attempts, I found the solution without installing the latest version of the visual studio.

Step 1: Disable lightweight solution load

Tools → Option → Projects and Solutions → Lightweight solution load

enter image description here

Step 2: Make sure in the solution properties Lightweight Solution load is disable

enter image description here

Step 3: Uncheck Enable UI Debugging Tools for XAML

Tools → Option → Debugging → General → Enable UI Debugging Tools for XAML

enter image description here

Step 4: Rebuild Solution → Clean Solution

Also, you can clean the solution from BuildBatchBuild

enter image description here

References

Anas Alweish
  • 2,818
  • 4
  • 30
  • 44
0

Deleting the .vs folder manually and relaunching the Visual Studio again solved my problem.

Vivek Nuna
  • 25,472
  • 25
  • 109
  • 197