After Publish event in Visual Studio

UPDATE: seems like in VS 2019 and .NET 5 you can now use Publish target. <Target Name=”Test” AfterTargets=”Publish”> <Exec Command=”blablabla” /> </Target> Here’s my old answer that also works: MS has confirmed, that when publishing to file system they don’t have any target to launch after that. “We currently do not support executing custom targets … Read more

How Can I Install TypeScript with Visual Studio 2010

TypeScript Version 0.9.1.1 Typescript 0.9.5+ have a dependency on Microsoft.VisualStudio.Shell.11.0.dll. Therefore, these instructions will no longer be updated. The following is provided for educational purposes. Please adhere to all licensing and redistribution requirements. For prior versions of TypeScript, please see the edit history for this answer. Close Visual Studio Intall the Wix Toolset Download TypeScript … Read more

How do I enable Visual Studio 2010 to break when a first chance exception happens?

You may want to check the Debug menu in Visual Studio 2010. In there you will find the Exception submenu, in where you can select which type of exception you want Visual Studio to stop. Setting the debugger to break when an exception is thrown The debugger can break execution at the point where an exception is … Read more

Unable to find the requested .Net Framework Data Provider in Visual Studio 2010 Professional

I have seen reports of people having and additional, self terminating node in the machine.config file. Removing it resolved their issue. machine.config is found in \Windows\Microsoft.net\Framework\vXXXX\Config. You could have a multitude of config files based on how many versions of the framework are installed, including 32 and 64 bit variants. <system.data> <DbProviderFactories> <add name=”Odbc Data … Read more

How to programmatically include a file in my project?

It worked for my just adding the it to the ProjectFolder, and also add the folder programmatically like this. var p = new Microsoft.Build.Evaluation.Project(@”C:\projects\BabDb\test\test.csproj”); p.AddItem(“Folder”, @”C:\projects\BabDb\test\test2″); p.AddItem(“Compile”, @”C:\projects\BabDb\test\test2\Class1.cs”); p.Save();

Visual Studio 2010 & 2008 can’t handle source files with identical names in different folders?

So @Hans Passant pointed in the right direction, Thanks!! You don’t have to list the file, a folder is sufficient. Then if you look in the defined macros at the bottom of the VS 2010 list, you’ll see: %(RelativeDir)/ Univariate/ The problem, as posted, was actually a simplified version of what I’m working on — … Read more

error code: 523