Setup project has empty properties window - visual-studio-2010

Hi I am using visual studio 2010 and I have a setup project.
The properties window of this project is empty and I need it!
I tried everything and it still doesn't show up.
NOTE: I can see the window, but it's empty.
Thanks a lot!

Initially closing all windows get the properties showing again.
Then I noticed clicking on controls didn't change the properties, although selecting the Properties dropdownlist to change control worked.
Rebooting the (remote) Windows 7 PC resolved the problem for me.
Other things to try include: deleting the suo file, a project clean, resetting VS.

Related

Cannot change thread mode after it is set

I have a C# app that I haven't worked on for a while. The last time I worked on this was with Visual Studio 2019. It still opens and runs in debug mode with VS 2019. IF OI open it with VS2022 it will not run in debug mode. I get and error:
Cannot change thread mode after it is set.
What causes this and what might the solution be?
Please follow the steps below:
Go to project properties by right-clicking your project name in the project explorer and choosing properties
In the project properties window, select Build on the left side of the list
On the right side make sure you uncheck "Prefer 32-bit"
Save the project
Debug and test your project. This should resolve the issue.
Screenshot of Project Properties

Visual Studio 2012 Not Recognizing Xaml Files, Design View Broken

Design View for Xaml on Visual Studio Professional RC 2012 used to work for me. But suddenly stopped for no reason I can figure.
Visual Studio 11 No longer Recognizes Xaml Files.
In properties, it treats XAML files like XML.
In solution Explorer it recognizes it as a xaml file
Right Click -> Design View opens a new Xaml code page
Controls Toolbox shows nothing
My OS is Windows 7 x64.
I have applied all updates up to July 2012 to VS11
I have tried Repairing Visual Studio & Resetting Settings but to no avail.
There is nothing in search or stackoverflow I could find to remedy this.
I have not tried un/reinstalling
Visual Studio 2012 RC designer does not recognize xaml for a Windows Metro app looks identical to my case but my problem suggests the issue is more general than his title.
Reinstalling fixed his issue but does not shed light on this frustrating problem.
Can someone help?
EDIT - Reinstalling nearly resolved the issue. Design view works, toolbox is populated, auto complete is back, XAML is available under tool-> options->text... and control element properties can be viewed.
Everything is normal except for the passing strange fact that XAML Code View no longer does syntax highlighting. This is not suprising since unlike what http://msdn.microsoft.com/en-us/library/bb907395(v=vs.90).aspx expects, there are no XAML prefixed items in the displayed items.
Perhaps relatively minor in the scheme of things but also a very annoying loss.
Suggestion 4 in this link worked for me:
devenv /resetuserdata in Command Prompt.
So at least in my case, re-installing and then the above command cleared all issues. It is possible that resetting user data could have made it unnecessary to re-install but I can't know that now.
I still can't say what caused this but it seems a pretty long tail issue that occurs sporadically and looks to have precursors in older versions.
Check the following:
Tools -> Options
Expand Text Editor -> XAML -> Miscellaneous
Make sure that "Always open documents in full XAML view" is not checked
Or perhaps the default program for opening .xaml files has changed:
Right-click your .xaml file in Solution Explorer
Click Open With...
Select XAML UI Designer
Click Set as Default button
Click OK
EDIT
This does appear to be a known bug with an earlier version of VS11.
If anybody is interested. I had the failure: Could not open XAML and config files in Visual Studio 2012. Now I detected the cause: the Solutions suo files were corrupted after a System Crash. So I (was not sure) rebuilt the sln file in a different Folder and copied the sln and suo files (they are hidden!) to the old Folder. That definitely brought me back the lost functionality. Maybe it is only necessary to delete the old suo files.
Juergen
I had the same issue in Vs 2012 express edition. Solved by running vs2012 command prompt and executing the code
WDExpress/ResetSettings
In Visual Studio 2013 I had a similar issue - I change my build action & from BundleResource to AndroidResource and I was able to get it working.
I downloaded my working last repo from github, and then I opened it to check it worked, which it did. I replaced the xaml, and cs files and it still didn't work. So I just copied all the files in the root,
App.config
App.xaml
App.xaml.cs
MainWindow.Xaml
MainWindow.xaml.cs
packages.config
.csproj
.sln
Everything loaded again, thank goodness.

Visual Studio Intellisense works in Class Library but not Web Project files

I'm not sure how this happened as up until this morning my Intellisense was working fine in Visual Studio.
Now, however, I have lost Intellisense in my web project's files. Also, I don't see the little toolbar at the top of the window that allows me to select objects and controls
i.e. This one:
I did notice however that Intellisense and the controls selection toolbar works in my class library.
Any idea how to fix this?
I've read somewhere about setting the Build Action of my web project files to "Compile", but I cannot find a BuildAction property anywhere.
Right click on your web project, Select "Property Pages"(Shift+F4) and Click on "Build" You will see a check box "Build Web site as part of the solution". Make sure that is checked. I would also check if there are any projects that are not loaded in your solution and also restart VS and try loading the solution once again. See if you still face this issue.

Controls do not show up when dragging from toolbox

When I drag controls from the toolbox to an .aspx page or the designer for that page nothing shows up. I am using Visual Studio 2010 with an existing website project.
** Update
It seems to work now... I'm not sure if this was specific to one project, or a combination of things.
Is the project under source control or in a read only state?
I think the project is so messed up it just doesn't work. If I start a new project it works, so I'm going to leave it at that

Visual Studio - Menu items and toolbar buttons missing after deleting a resource

Something very strange happened here in Visual Studio 2008 (C#).
After deleting an icon resource from my project all my menu items and toolbar buttons disappeared.
I checked my form Designer.cs file and the code to the items are still there.
Also, I tried to search for the deleted resource file name (warning.ico) in the entire solution, and nothing was found.
Does anyone knows what happened and how can I fix this?
Thanks
Just discovered.
Somehow, Visual Studio messed the Designer.cs file of my form.
After close inspection, the AddRange Method of my menu and toolbar was missing.
Just fixed manually by adding:
this.mainToolbar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.lsbPort });
This bug still persists in VS2010. It happened to me after changing the location of an image resource outside of VS. VS reported an error and I relinked to the new location. Everything appeared fine until the next start of Visual Studio. All controls (including separators) of any toolbar in my application were gone.
All I can say is: the fix still works as described.
Edit: And the bug persists in VS2015. And (as I have just found out) in VS2019

Resources