Can’t run program because it asks me to attach on process
Make sure you have your solution opened, then right click on your project > Set as Start Up Project
Make sure you have your solution opened, then right click on your project > Set as Start Up Project
You can use the DTE (VisualStudio Automation Model) to write a macro that will be invoked when a stop debug happens, below is a snippet of the idea. Private Sub DebuggerEvents_OnEnterBreakMode( ByVal Reason As EnvDTE.dbgEventReason, ByRef ExecutionAction As EnvDTE.dbgExecutionAction) Handles DebuggerEvents.OnEnterBreakMode If (Reason = dbgEventReason.dbgEventReasonStopDebugging) Then // DO YOUR CLEAN UP CODE HERE End If … Read more
“I would like to run some code when users presses a combination of keys.” Its tricky and to do it without any external dependencies resort to Keyboard hooking to achieve it with a VSTO Excel Add-in: Imports System Imports System.Runtime.CompilerServices Imports System.Runtime.InteropServices Imports System.Windows.Forms Friend Class KeyboardHooking ‘ Methods <DllImport(“user32.dll”, CharSet:=CharSet.Auto, SetLastError:=True)> _ Private Shared … Read more
/SUBSYSTEM:CONSOLE) is for console based applications. You should define main function in code. /SUBSYSTEM:WINDOWS) is for GUI applications. You should define WinMain function.
Run devenv.exe /installvstemplates with elevated privileges
Installing MS C++ 14.0 for python without Visual Studio To install Microsoft Visual C++ 14.0, you can download the Microsoft Build Tools for Visual Studio 2017, install and open it, select: Workloads → Visual C++ build tools(Even you can only select only the “Windows 10 SDK”): If above still not resolve your issue, you can … Read more
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
At last, I found the answer! When DLLs in Prism modules are referenced, the .NET assembly resolution mechanism looks for the referenced assemblies in the /bin folder of the hosting application (i.e., the one with the Shell and Bootstrapper) rather than in the module’s bin directory (assuming you have set up your modules as separate … Read more
As long as your DLLs are .NET assemblies, then ILMerge should be able to combine your exe and all of its dependencies into a single file.