Hidden Features of Visual Studio (2005-2010)?
Make a selection with ALT pressed – selects a square of text instead of whole lines.
Make a selection with ALT pressed – selects a square of text instead of whole lines.
.NET 6 is not supported in VS2019. You might make it work by manually editing your project file, but for a fully supported experience you should upgrade to VS2022.
One could use http://powershellmsbuild.codeplex.com/ for 3.5. It’d be nice if there was a NuGet package for it that one could leverage via NuGet package restore. 4.0 has a Windows Powershell Task Factory which you can get in the code gallery has been rolled into MSBuild Extension Pack (one of the top task libraries – 400+ … Read more
This works (for me atleast, on vs 2008): (Essentially, return TRUE from the hooked function) int __cdecl CrtDbgHook(int nReportType, char* szMsg, int* pnRet) { return TRUE;//Return true – Abort,Retry,Ignore dialog will *not* be displayed return FALSE;//Return false – Abort,Retry,Ignore dialog *will be displayed* } int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]) { _CrtSetReportHook2(_CRT_RPTHOOK_INSTALL, CrtDbgHook); assert(false); … Read more
I was really bothered by the problem, so I turned to Microsoft support, and they solved my problem! The short solution is that apparently one of the DLL’s in the My Documents\Visual Studio 2005\Visualizers folder was corrupted. I deleted all the contents of the folder, and the visualizer came back. The long answer can be … Read more
For us, the vast majority of the time was spent invoking light (for the linking phase). light is very slow at compressing cabinets. Changing the DefaultCompressionLevel in the .wixproj from high to mszip (or low or none) helps a lot. However, our build was still too slow. It turns out that light handles cabinets independently, … Read more
Here is the C# version of your code: public static void IncludeNewFiles() { int count = 0; EnvDTE80.DTE2 dte2; List<string> newfiles; dte2 = (EnvDTE80.DTE2)System.Runtime.InteropServices.Marshal.GetActiveObject(“VisualStudio.DTE.10.0”); foreach (Project project in dte2.Solution.Projects) { if (project.UniqueName.EndsWith(“.csproj”)) { newfiles = GetFilesNotInProject(project); foreach (var file in newfiles) project.ProjectItems.AddFromFile(file); count += newfiles.Count; } } dte2.StatusBar.Text = String.Format(“{0} new file{1} included in the … Read more
Run devenv.exe /installvstemplates with elevated privileges
I believe this is what the /FA switch is for.
To execute a solution-wide Before and After targets, you would create two MSBuild project files named “after.<SolutionName>.sln.targets” and “before.<SolutionName>.sln.targets” in the same folder as your solution. To do this on all solutions, you would drop your custom solution-level after targets files into the path $(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportBefore\ or $(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportAfter. When those solutions are built, it will import … Read more