I am opening up a project in Xamarin Studio but the source files that I open in it are not kept synchronised to the Solution Explorer window.
How do I get the solution explorer window synchronised with the file that I am currently editing?
After a bit of investigation, it does sync, and keep the active document highlighted in Solution Explorer....
HOWEVER...
This does NOT work for files opened from a Shared Project.
Does anyone know how to get this to work with a Shared Project?
Related
I have a Windows Forms Project that I have been working on for the last several months.
In this solution, I have about 10 custom user controls. A few days ago I was working on the common library that is shared across all of the forms in the application, and then when I went to open the form none of my controls were recognized.
I reverted my changes to the library and the issue persisted. Soon I got to the point where even opening the form crashed VS.
I can compile the solution fine, but I cannot use the visual editor.
None of my custom controls will show up anymore in the toolbox either. However, I can open them just fine.
After 2 days of looking online, I have tried the following, to no avail.
Dynamically reallocated my computer's memory (rebooted)
Close the solution and reopen it
Cleaned and rebuilt solution
Downloaded last release version from source control to a new directory and opened it.
Removing the controls from the project and readded them
Deleted the bin and obj folders
Deleted the .vs folder (stopped VS from crashing as soon as I opened the solution)
Followed this MSDN Article
Refreshed toolbox
Repaired the Visual Studio Installation
Uninstalled and Reinstalled Visual Studio
Copied the solution files from one directory to another
Reverted my project to an earlier commit from my source control solution
Removed all NuGet packages
Removed controls one by one
The only thing that has changed since the last time I was working on this project was that Visual Studio 2017 had recently installed a new update.
I am at a complete loss, I even resorted to going to page 4 on google.
UPDATE
This issue becomes intermittent when I run it on a fresh installation of VS within a Virtual Machine.
I had a separate DLL file that I was calling from my project for EMGU.CV. Once I removed that reference it worked fine. I created my own DLL wrapper for grabbing a Bitmap Image from the EMGU.CV library and the issue have since been resolved.
This makes sense as after I had deleted the NuGet packages, the DLL still remained, but once removed the designer resumed working.
I've created a Windows Forms App which after a lot of testing can now be deployed and used in production.
When I have tested the solution, it has been by using F5 in Visual Studio, which then has opened up my Form.
In my Form I have an option to add some files, and then press "Run application".There is a C# script in the background which gathers data from these files and make some operations on them.
I have checked where my Solution is saved on my computer. Here I can see that I have some .cs files (and some other extensions such as .resx) corresponding to my Form, but no actual "Form" to run (as in open up the Form, and run it as I would by pressing F5 in Visual Studio).
I've been trying to find answers to my questions from Googling, but with now avail.
Can I, instead of opening up Visual Studio and run the solution, run the solution from the Form itself, i.e. open up the Form which is created when I run the program in Visual Studio? If this is possible, can I make shortcuts on for instance the Desktop with the Form?
If it is possible to use a Form as an executable file, do I have the option to deploy the Form itself to some folder, and the rest of the Project files to the same folder they are saved in now?
As mentioned in a comment - when you build the project it should create a .exe file named for the project (not the form). this would normally be built under <source>\bin\<configuration> - so c:\projects\my_app\bin\debug for example (this CAN be changed in the project properties page on the Build tab though). The startup form for the project would normally be governed by the code in the Program Static class in the Program.cs file for the project.
I have to make a setup project for an application, I used Visual Studio Installer since the previous one was made with that.
The setup works fine, the application gets installed. The only problem that I have is that the icon of the application does not show up in the taskbar.
The icon appears in the folder, in the .exe, but when it launches, it does not appear in the taskbar.
If I copy the same folder in the same directory and open the application from there, it works fine. The icon appears.
I'm guessing the problem is in the folder that the setup generates, something about permissions maybe?
The only time that I get this problem is when I launch the application from the folder that the setup generated.
Any suggestions? I've been searching for a while for a solution and I haven't found anything.
Thank you very much.
It's quite hard to answer, from my experience there may be some missing "working directory" in a shortcut.
So I set up the latest Azure SDK that integrates with Visual Studio 2015. It all seemed to work well and I was happily playing around with it for an hour or more in my small .net 4.6 MVC app with 3 projects in the solution. I went in to the Azure web portal and set up a new resource group there, and when I went back to VS I refreshed the Server Explorer my resource group was visible under App Service and data from the ApplicationInsightsExtension.log file appeared when I opened the file in a tab. All fine and dandy.
However, the next time I opened the solution VS hung and wouldn't respond. The active tab is the ApplicationInsightsExtension.log file and it seems to be trying to connect to Azure but is getting stuck. I've tried everything including rebooting etc but nothing works. I'm also opening VS in Admin mode
Is there a setting somewhere in the config / project files that specifies what tabs are opend when you open a solution? I'm thiinking if I stop the ApplicationInsightsExtension.log file from opening that might fix the issue. However I've looked in the .csproj and csproj.user files and can't see any setting that might correspond to this.
Visual Studio load error
You could reset your settings to prevent VS to restore your opened tabs.
Ensure your Visual Studio is Closed.
Navigate to your solution directory in windows explorer.
Ensure your are displaying hidden files on Solution Explorer. View Tab -> Show/hide ribbon group/ check Hidden items checkbox.
A folder named .vs must be shown now in Windows Explorer.
Navigate to .vs\<SolutionName>\v14
Delete .suo file in the directory.
Open your solution.
Now VS will not load any tabs by default, so maybe you can see what is happening.
Hope this helps!
I am having a program written and I am developing on 2 different pcs.
First PC: Windows 7 Professional 64bit with VS 2015 Community.
Second PC: Windows 10 64bit with VS 2013.
Problem:
On the first PC, when I build and run the program or even just run the exe, the icons for the buttons are not displaying. It shows only square boxes in place of icons. I am getting no errors either. Everything works fine on the second PC.
Any idea why this may be? I have googled and cannot seem to find an answer.
If you just copy and paste the images into the folder of your project using windows, it is unlikely that the build is gonna predict that you need this image as a part of your process.
You need to add an image item to your project using Visual Studio and set its properties (Copy To Ouput Directory => Always).
Or the best approach is go to your Project Settings > Resources and add an image resource from existing file there. And then use it inside your code using Properties.Resources.YouImageName you through the designer.