Disable code popup in Visual Studio references
Stack Overflow » Visual Studio
by JHBonarius
3h ago
When I use visual studio to lookup all references to a specific type, and I have my mouse anywhere in the "references" window, a (dumb) code window pops up blocking my view to a number of results. I find this popup very annoying and disruptive in my concentration and would like to turn it off. But I haven't found a way in the menu. I've tried searching online, but it's hard to impossible to find a result (searching on something like "disable code popup in visual studio" will gives 99% visual studio code results.) If it can be disabled, which option should I change ..read more
Visit website
Can "less relevant" (mainly XAML) errors be suppressed in Visual Studio until needed?
Stack Overflow » Visual Studio
by komodosp
3h ago
Sorry about the vague subject line, but to explain: I am working on a large WPF / C# application with many projects and interdependencies. There are a lot of XAML files which refer to various things like controls, XML namespaces, etc. If I build the solution, and let's say it contains a C# compile error. That compile error will cause its project not to be built, which in turn might cause other projects not to be built, etc. Now all the references from these projects / namespaces in XAML files will produce further errors. The result being that the Error List could show hundreds of errors, only ..read more
Visit website
How to automatic switch file when split windows vscode?
Stack Overflow » Visual Studio
by comm1ted
3h ago
Now when i split window there two same file. How to automaticly close (or change) these files in any windows Try to find something in setting, but nothing ..read more
Visit website
How to change default xaml files code layout?
Stack Overflow » Visual Studio
by Snail
3h ago
I recently discovered the ability to edit the standard markup for .cs files created for Visual Studio. This was done thanks to: VS2022 (Enterprise): C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class\Class.cs But now I'm wondering if there is a similar ability to change the standard code for such .xaml files (UserControl, Page, or Window). It happens very often that there is a need to change the standard parameters for UserControl. For example, to set the DataContext or to set the Width or Height. In my case, these parameters are often r ..read more
Visit website
Install Reference Assemblies for .Net 4.0
Stack Overflow » Visual Studio
by Tinaye Tsinakwadi
3h ago
I am trying to run a legacy project for detecting USB devices on the computer, but the software was written a long time ago and also using .NET framework 4.0 which is now outdated. However, Microsoft still allows you to use version 4.5, but you have to reference the assemblies of the project. enter image description here That's where the problem begins. Firstly, no matter what I do, I can't find any instructions on how this is done. I initially selected the Reference file and right clicked for the option to add references, but the reference list is empty. enter image description here No matter ..read more
Visit website
How to set minimize application to system notification tray in xaml vb?
Stack Overflow » Visual Studio
by rurjaf
3h ago
How to set minimize application to system notification tray in xaml vb? I want when I click minimize app icon it automatically throw the application to system tray. I have this code in my MainWindow.xaml: <Image x:Name="minimizeapp" Source="/minus.png" Cursor="Hand"/> And then I have this code in my MainWindow.xaml.vb: Public Sub newInitialize() InitializeComponent() notifyIcon = New System.Windows.Forms.NotifyIcon() notifyIcon.Icon = New System.Drawing.Icon("./Resources/Chromatix-Aerial-Web.ico") notifyIcon.Visible = True End Sub Private Sub minimizeapp_MouseDown(sender ..read more
Visit website
How to copy paste a WPF Window (clone) and not have errors
Stack Overflow » Visual Studio
by sapbucket
3h ago
I am using .Net 4.5.2 with WPF and C# 5.0. I created a Window in a WPF project. I would like to copy paste this window in the solution explorer, making a second window, and rename it to a new name. When I do this, the new (copied) window's InitializeComponent() method always gives me an error. How does one cleanly copy a window (and it's code, etc.) in the solution explorer? This question was answered partially here: Copy pasting WPF window gives error however the answer did not solve my issue. My approach (that does not work): Create a window and title it WindowTest In the solution explorer ..read more
Visit website
How can I get build/rebuild realtime output
Stack Overflow » Visual Studio
by zdebyman
3h ago
I'm making Visual Studio package where I start devenv.exe and try to build other solution. I need to get building output in realtime, so user can see building progress/output, but I don't know how to do it and if it's even possible. I tried such way : string rebuildLog = string.Empty; string logFileName = System.IO.Path.GetTempFileName(); System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(); psi.FileName = @"devenv.exe"; psi.Arguments = "\"" + config.DmsPath + "\"" + @" /rebuild" + " Release|x64 ..read more
Visit website
Use Visual Studio web.config transform for debugging [duplicate]
Stack Overflow » Visual Studio
by Cutter
3h ago
Possible Duplicate: How can I use Web.debug.config in the built-in visual studio debugger server? I want to use the Web.config transformation that works fine for publish also for debugging. When I publish a web app, Visual Studio automatically transforms the Web.config based on my current build configuration. How can I tell Visual Studio to do the same when I start debugging? On debug start it simply uses the default Web.config without transformation. Any ideaa ..read more
Visit website
Preventing referenced assembly PDB and XML files copied to output
Stack Overflow » Visual Studio
by Jason Morse
3h ago
I have a Visual Studio 2008 C#/.NET 3.5 project with a post build task to ZIP the contents. However I'm finding that I'm also getting the referenced assemblies' .pdb (debug) and .xml (documentation) files in my output directory (and ZIP). For example, if MyProject.csproj references YourAssembly.dll and there are YourAssembly.xml and YourAssembly.pdb files in the same directory as the DLL they will show up in my output directory (and ZIP). I can exclude *.pdb when ZIP'ing but I cannot blanket exclude the *.xml files as I have deployment files with the same extension. Is there a way to prevent t ..read more
Visit website

Follow Stack Overflow » Visual Studio on Feedspot

Continue with Google
Continue with Apple
OR