Visual Studio runs comments - visual-studio-2013

For some reason VS 2013 is completely ignoring my changes to the file.
Namely, even if I comment a whole section out it would still execute it!
I tried:
Clean build
restart computer
removing and including the same file again
Note: I am developing a cross platform application using Xamarin and VS.
Would appreciate any help!
Thanks

Probably you have compiled the project for Release, change that to Debug and build it again.

I doubt this question or answer would help anyone but here goes...
Solution: I had to update my SDK from the Android SDK Manager:
Open Android SDK Manager
Under Tools tick the checkbox next to the most recent Rev. ( I installed 23.0.5)
Click "Install packages..."
Background
After having the problem I described I noticed few other really strange things. For example VS would not let me modify any of my drawables. If I tried to delete, add or rename any drawable VS would get stuck and the only way to solve this was to force stop it.
Here is the bug for this issue Visual Studio hangs when including, excluding, or saving files in Android resource folders.
Once I installed the latest SDK everything was well.
Hope this helps

Related

Why VS2019 get suddenly very slow and laggy while trying to debug a c# application?

I am working on a c# code for the last couple of weeks and I debug it very often.
VS 2019 was working properly but suddenly it got very slow and laggy when I tried to debug my code.
I checked all resources on my machine. All seem as before and are available enough.
Even I checked the same IDE with other codes. All runs and debugs fast enough as before.
I also updated my IDE to the last version (currently 16.8.5 by the end of February 2021).
Did anybody has the same experience with the VS2019 ever?
Thanks in advance.
Not sure whether the issue is caused your code with IDE environment together. Please try the following suggestions:
1) disable any third party installed extensions under Extensions-->Manage Extensions-->Installed to check whether an extension caused that.
2) reset settings under Tools-->Import and Export Settings-->Reset all settings and you can also make a backup of the settings
3) close VS, delete all files under C:\Users\xxx\AppData\Local\Microsoft\VisualStudio\16.0_xxx\ComponentModelCache
and also delete .vs hidden folder under your solution folder, bin and obj folder.
4) type devenv /safemode under Developer Command Prompt for VS to start a pure VS and then try your project.
5) create a new project with your same code and check if this works.
Besides, if all do not help, you could try a small reproducible sample with us.
If debugging suddenly becomes slow, you might consider checking your symbol settings and debugging settings. If you for example enable .NET framework source stepping, debugging can be slow, or if you do not cache symbols or disable for example Just My Code or enable other stuff, like IntelliTrace or install a bad extension.
It might not be an alternative for you, but I am pleased to inform you that I have been using Visual Studio 2022 and it is radically faster. Yes, this is not opinionated, this is an observation. It IS faster. Maybe it is because I do not have many extensions on it, but it is also a 64-bit application with less memory pressure on the GC. So you can first check your settings and then give VS 2022 Preview versions for a spin. I have used it for months and the amount of bugs are rather small if you do typically development. For a Preview version, I am impressed with what they are working for nextgen Visual Studio.
You should also clean your solution and delete and bin and obj folders via for example Powershell script to make sure your binaries are updated. Then rebuild.
If you have "live share" extension enabled, perhaps can try to disable / uninstall that. This one was causing my problem.
Ok, #Mr Qian no 3 did the trick for me.
Situation: After a "Cleanup" (Microsoft Visual Studio\Installer\InstallCleanup.exe) my VS2019 was partially gone. Good tool. :-(
After (re)install, I had 2 folders "ComponentModelCache" over 2 folders of 16.0_xxx : 16.0_4f678462 and 16.0_119826cb
I renamed both "ComponentModelCache" folders (you can delete later, when it has effect)
Build ran as never before...
Thank you, Mr Qian
My problems started as I upgraded to Visual Studio 2022 (from 2019) and upgraded to Windows 11 (naughty naughty, two major changes).
Turns out Windows Defender didn't preserve my exceptions. Using this PowerShell script as a template saved a bit of time:
https://gist.github.com/Braytiner/be2497d1a06f5a9d943dc7760693d460
Performance is back to where is was pre my Windows 11/Visual Studio 2022 upgrade.
Visual studio 2019 (16.8.5) has this problem in debugging. I have updated it into 16.11.8 and it works properly.

files disappear from VS 2015 solution after saving

After installing VS 2015 Pro (14.0.25... with Update 3, licence key has been succesfully added), and creating a new project (especially in Javascript or TypeScript with Ionic 2 templates), when I open a file, (modified it or not), I save it and it disappear from Solution Explorer. Just before it disappear, the icon of the file is updated with a warning icon.
However, if I try to create a C++ project, there is no problem !
In a typescript project, after building, ts files appear again at the end of the build.
All my projects are located in c: disk. I've tried with and without using git.
The two extensions I've installed are : Ionic 2 templates and NPM Task runner. I uninstalled them, but the problem is still here.
When I restart VS, I can see again the files. But the problem is still here.
How to fix it ?
I had same issue on Windows 10.
It seems caused by windows update version 1709.
After I recovered my windows version to 1703, the problem was solved.
I can confirm that the 1709 (aka Fall Creator's Update) caused this. I was too low on space to keep the rollback. In another thread someone suggested that visual studio 2017 does not have this problem. I can confirm that is true; but this solution came (for me) with a few different problems. First, I can no longer deploy direct to my android phone. Second, my team-mates still on VS 2015 can no longer open the project at all! If you can move forward to VS 2017, you'll also need to install TypeScript SDK for Visual Studio 2017 before you can compile again.

xamarin project type incompatible

This error started showing from yesterday, I remember installing Web development packages and updates windows. Before that if was working fine.
If I reload project same error shows up.
The application which this project type is based on was not found.
Please try this link for further information:
http://go.microsoft.com/fwlink/?LinkID=299083&projecttype=EFBA0AD7-5A72-4C68-AF49-83D382785DCF
This link redirects https://www.xamarin.com/visual-studio page , which is nothing but xamarin download page.
I tried uninstalling Xamarin packages and reinstalling.
It did not solve the issue.
Now I am doing complete uninstall of MS Visual Studio 2017
Please note that no changes have been made to csproj or solution file.
I get the "xamarin project type incompatible" frequently. (VS2015)
The solution for me:
Close down VS.
In the src project folder delete the .vs folder.
Restart VS.
Complete uninstall of Visual Studio along with C++ distributables from Control Panel > Programs and Features and then re-installing Visual Studio fixed the issue. Seems its caused by errors in installation
Microsoft should code properly and let programmers know if there were errors and 'repair' option is supposed to fix them. I don't know why these things are missed out in roll-outs.

Visual Studio for Mac - Build very slow, stuck

I have ported a Xamarin Studio app that use Xamarin Forms, iOS/Android to Visual Studio for Mac. All my other apps build fine but for some reason this specific app doesn't want to build at all, it is stuck half way in the build process.
I deleted the bin and obj folders.
I have done a Clean, even the clean takes long.
The packages folder is up to date etc.
I do have the latest update from the Stable branch.
Not sure what is wrong here?
I had this too. I opened XCode on the mac and there was an prompt for installing additional components waiting for me. I answered yes and then restarted VS.net when it completed and now it builds fine.​
I can second this; there is no visual indication that anything is wrong with the build it just churns away. Opening XCode and clicking yes to the dialog that additional components still needed to be installed worked for me as well.

Add NuGet Packages on Xamarin Studio for Mac Not Working

I've tried searching on this issue (and I've come across many issues with people not being able to add NuGet packages), but have come across nothing that can solve my problem.
I'm using Xamarin Studio for Mac and I'm trying to add the SQLite package to my Xamarin Forms project. However, when I click to add a NuGet package (either by right-clicking on the project or from the Project tab at the top), nothing happens. No delay or anything — I click it, no lag, and I continue doing whatever else I want. Has anyone encountered this issue before? I've already tried quitting out of the app multiple times and this has not solved the problem. Thanks for any help you can provide.
In case you are still searching for an answer:
I've had the same strange problem.
This is a bug in Xamarin Studio 6.0.X (In some installation, probably depending on system configuration or something like that)
After updating to Xamarin Studio 6.1.X (alpha channel), it was working again ...
If I find the link where I've found this answer, I will post it later!

Resources